Run a FreeSWITCH API command
freeswitch_apiExecute FreeSWITCH API commands via event socket and get raw output. Inspect switch status, channels, and registrations; optionally allow write commands with PBX_MCP_ALLOW_WRITE=true.
Instructions
Run a command through the FreeSWITCH event socket and return its raw output. In the default read-only mode only inspection commands such as 'status', 'show' and 'sofia status' are permitted. Set PBX_MCP_ALLOW_WRITE=true to lift that restriction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The API command, for example 'show calls' or 'sofia status gateway mytrunk'. |