Meetings and callsAsterisk

Asterisk CLI permissions for AI agents

Choose what an agent may do with your calls and which checks hold whatever the settings say.

Let an AI agent work with your calls and keep the say over what it may do. pbx never changes the phone system, but an agent could still send recordings to a cloud speech service or change the marks on your calls.

For each profile, the name you gave one phone system, you decide what an agent may run, what asks you first and what it may not touch. You can keep every recording on your computer whatever the agent asks, or let it read calls and nothing else.

Each command has a permission key, its path such as meetings.transcribe, or a group such as tags, where the longer key wins. Each key has a level: deny, readonly, ask or allow. pbx office config set sets them, and --dry-run shows which keys a command checks.

On this page:

  1. The levels
  2. What is set before you change anything
  3. Agents and MCP
  4. Checks that hold whatever the permissions say

The levels

LevelWhat happens
denyThe command is refused, a read too.
readonlyReads work. A command that changes something is refused.
askThe command asks first at a terminal. Without one it is refused unless --yes is given. Over MCP it runs.
allowThe command runs without a question.
pbx office config set permissions.meetings.transcribe deny   # no recording is transcribed through this profile
pbx office config set permissions.tags readonly              # marks can be read, never added or removed
pbx office config show                                       # each setting with where it came from

A refusal is permission_error (exit code 5) and names the key. It does not mean the connection to the phone system is broken.

What is set before you change anything

KeyBuilt-in levelWhy
models.download, models.addaskA model is a large download from the internet.
doctor.reports.createaskA problem report is a file you may send to someone.
mcp.authoritydenyAn agent that changes settings could lift its own limits.
Every other commandallowpbx only reads the phone system.

Agents and MCP

Over MCP nobody is at a terminal to answer ask, so a command at ask goes ahead. Set readonly or deny for each command the agent must not run before you connect it, as MCP shows.

The commands that change what a later run may do, such as config set, config unset and skill install, are not offered over MCP while mcp.authority is deny. An agent then cannot change a permission or a setting for you.

Checks that hold whatever the permissions say

  • The phone system is only read. Master.csv and the recordings are opened for reading, and a database session is opened read-only and sends only a SELECT. See security.
  • Cloud transcription is a choice for one profile. transcribe_engine is read from the profile's own settings only, so a value in defaults sends no profile's recordings away.
  • PBX_READ_ONLY=1 refuses every command that changes your sign-in or settings.
  • No password reaches the agent. session start and session end are never offered over MCP.