Run a FreeSWITCH API command
freeswitch_apiExecute FreeSWITCH API commands through the event socket and return raw output, with read-only inspection enforced by default and write access enabled through configuration.
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'. |