Warning
For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.
communication_manager/rest/config/asterisk/{coreServerId}/pbxServers
{
"id": "91a7d992-a442-4c30-baa4-39c0db0a2153",
"displayName": "FreePBX",
"host": "pbx.mydomain.com",
"port": 5038,
"username": "cxpanel",
"password": "cxmanager*con",
"enabled": true,
"cdrName": "asteriskcdrdb",
"cdrHost": "pbx.mydomain.com",
"cdrPort": 3306,
"cdrUsername": "freepbxuser",
"cdrPassword": "mycdrpass",
"recordingAgentIdentifier": "local-rec"
}
| | |
---|
| | Configuration id of the PBX server. |
| | The display name of the PBX server. |
| | The hostname or ip for the PBX server connection. |
| | The port for the PBX server connection. |
| | The username used for authentication with the PBX server. |
| | The password used for authentication with the PBX server. |
| | Flag specifiying if the PBX server is enabled or not. |
| | The name of the CDR database. |
| | The hostname or ip for the CDR database connection. |
| | The port for the CDR database connection. |
| | The username used for authentication with the CDR database. |
| | The password used ro authentication with the CDR database. |
| | The agent identifier of the recording agent that is bound to this PBX server. |
communication_manager/rest/config/asterisk/{coreServerId}/pbxServers |
---|
| Accesses all the PBX server connections in the core server. |
| Gets the configuration for all the PBX server connections in the core server. |
| Adds a PBX server connection to the configuration. Errors: - 409 'A PBXServer with the given id already exists.': Returned if a PBX server with the given id already exists.
- 409 'Specified recordingAgentIdentifier is already set on another pbxServer.': Returned if a recording agent identifier is already bound to another PBX server.
- 412 'No displayName provided.': Returned if no display name was provided.
- 412 'No host provided.': Returned if no host was provided.
- 412 'No username provided.': Returned if no username was provided.
- 412 'No password provided.': Returned if no password was provided.
|
|
communication_manager/rest/config/asterisk/{coreServerId}/pbxServers/{pbxServerId} |
---|
| Accesses the configuration of a specific PBX server connection. Parameters: - pbxServerId: The configuration id of the PBX server.
|
| Gets the configuration of the specified PBX server connection. Errors: - 404 'A PBX Server with the given id does not exist': Returned if no PBX server exists with the given id.
|
| Updates the specified PBX server configuration. Errors: - 404 'A queue with the given id does not exist': Returned if no queue exists with the given id.
- 409 'Specified recordingAgentIdentifier is already set on another pbxServer.': Returned if a recording agent identifier is already bound to another PBX server.
- 412 'No displayName provided.': Returned if no display name was provided.
- 412 'No host provided.': Returned if no host was provided.
- 412 'No username provided.': Returned if no username was provided.
- 412 'No password provided.': Returned if no password was provided.
|
| Deletes the specified PBX server connection. Errors: - 404 'A PBXServer with the given id does not exist': Returned if no PBX server exists with the given id.
|
curl --user manager:manag3rpa55word -k -i -H "Accept: application/json" http://localhost:58080/communication_manager/rest/asterisk/ee828da8-5ee6-412d-82ac-1273f598659d/pbxServers
curl --user manager:manag3rpa55word -k -i -H "Accept: application/json" http://localhost:58080/communication_manager/rest/asterisk/ee828da8-5ee6-412d-82ac-1273f598659d/pbxServer/56cf70a3-1ee0-4b09-8f40-297430eeeddf
curl --user manager:manag3rpa55word -k -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"id":"91a7d992-a442-4c30-baa4-39c0db0a2153","displayName":"FreePBX","host":"pbx.mydomain.com","port":5038,"username":"cxpanel","password":"cxmanager*con","enabled":true,"cdrName":"asteriskcdrdb","cdrHost":"pbx.mydomain.com","cdrPort":3306,"cdrUsername":"freepbxuser","cdrPassword":"myspass","recordingAgentIdentifier":"local-rec"}' http://localhost:58080/communication_manager/rest/asterisk/ee828da8-5ee6-412d-82ac-1273f598659d/pbxServers
curl --user manager:manag3rpa55word -k -i -X DELETE http://localhost:58080/communication_manager/rest/asterisk/ee828da8-5ee6-412d-82ac-1273f598659d/pbxServers/56cf70a3-1ee0-4b09-8f40-297430eeeddf
curl --user manager:manag3rpa55word -k -i -H "Content-Type: application/json" -H "Accept: application/json" -X PUT -d '{"id":"91a7d992-a442-4c30-baa4-39c0db0a2153","displayName":"FreePBX New","host":"pbx.mydomain.com","port":5038,"username":"cxpanel","password":"cxmanager*con","enabled":true,"cdrName":"asteriskcdrdb","cdrHost":"pbx.mydomain.com","cdrPort":3306,"cdrUsername":"freepbxuser","cdrPassword":"myspass","recordingAgentIdentifier":"local-rec"}' http://localhost:58080/communication_manager/rest/asterisk/ee828da8-5ee6-412d-82ac-1273f598659d/pbxServers/91a7d992-a442-4c30-baa4-39c0db0a2153