Asterisk Core Server Configuration

Version 5.1 by michaely on 2016/05/30 21:20
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.

Warning

This page is currently being written. Although the information below is probably accurate, it may not be complete or may have errors.

Information

The information on this page applies to iSymphony 3.1+.

Description

The Asterisk core server configuration REST resource allows access to the top level Asterisk specific configuration for a core server. This resource allows modification of the top level Asterisk configuration for a core server. 

 

On this page:

The [toc] macro is a standalone macro and it cannot be used inline. Click on this message for details.
 

Root Resource Path

communication_manager/rest/config/asterisk

JSON Representation

{
 "id": "ff2e69f0-01eb-43b0-a8cd-de47e0674229",
 "serverId": "fe205631-d5f8-4e88-9698-0e5a645e6bca",
 "tenantId": "",
 "ringStatusEnabled": true,
 "pageStatusEnabled": true,
 "confBridge": true,
 "originatingContext": "from-internal",
 "redirectingContext": "from-internal",
 "musicOnHoldClass": "default",
 "originateTimeout": 30000
}

Property

Type

Description

id

String

Configuration id of the top level Asterisk configuration object.

serverId

String

The core server id the Asterisk configuration is for.

tenantId

String

The tenant id of the core server.

ringStatusEnabled

Boolean

Flag specifying if ringing status should be shown or not. Not currently used.

pageStatusEnabled

Boolean

Flag specifying if page status should be shown or not. Not currently used.

confBridge

Boolean

Flag specifying if app_confbridge is used for dynamic conferences or not.

originatingContext

String

Entry point dialplan context for all call originations made in the panel.

redirectingContext

String

Entry point dialplan context for all call transfers made in the panel.

musicOnHoldClass

String

Music on hold class used when placing calls on hold in the panel.

originateTimeout

String

Number of milliseconds to ring the origination extension when making a new call in the panel, before timing out.

Resource Paths

communication_manager/rest/config/asterisk

Description

Accesses the top level Asterisk configuration for all core servers.

GET 

Gets the top level Asterisk configuration for all core servers.

 

communication_manager/rest/config/asterisk/{coreServerId}

Description

Accesses the top level Asterisk configuration for a specific core server.

Parameters:

  • coreServerId: The core server id.

GET

Gets the top level Asterisk configuration for a specific core server.

Errors:

  • 404 'Failed to locate the core server with the given id': Returned if no core server exists with the given id.

PUT

Updates the top level Asterisk configuration.

Errors:

  • 404 'Failed to locate the core server with the given id': Returned if no core server exists with the given id.
  • 412 'No originatingContext provided.': Returned if no originating context was provided.
  • 412 'No redirectingContext provided.': Returned if no redirecting context was provided.
  • 412 'No musicOnHoldClass provided.': Returned if not music on hold class was provided.

Sub/Child Resource Paths

communication_manager/rest/config/asterisk/{coreServerId}/pbxServers

Description

Access the sub/child resource for the PBX server connections.

Parameters:

  • coreServerId: The id of the core server.

Errors:

  • 404 'Failed to locate the core server with the given id': Returned if no core server exists with the given id.

 

communication_manager/rest/config/asterisk/{coreServerId}/extensions

Description

Access the sub/child resource for extensions.

Parameters:

  • coreServerId: The id of the core server.

Errors:

  • 404 'Failed to locate the core server with the given id': Returned if no core server exists with the given id.

 

communication_manager/rest/config/asterisk/{coreServerId}/queues

Description

Access the sub/child resource for queues.

Parameters:

  • coreServerId: The id of the core server.

Errors:

  • 404 'Failed to locate the core server with the given id': Returned if no core server exists with the given id.

 

communication_manager/rest/config/asterisk/{coreServerId}/parkingLots

Description

Access the sub/child resource for parking lots.

Parameters:

  • coreServerId: The id of the core server.

Errors:

  • 404 'Failed to locate the core server with the given id': Returned if no core server exists with the given id.

 

communication_manager/rest/config/asterisk/{coreServerId}/conferenceRooms

Description

Access the sub/child resource for conference rooms.

Parameters:

  • coreServerId: The id of the core server.

Errors:

  • 404 'Failed to locate the core server with the given id': Returned if no core server exists with the given id.

 

communication_manager/rest/config/asterisk/{coreServerId}/extensionGroups

Description

Access the sub/child resource for extension groups.

Parameters:

  • coreServerId: The id of the core server.

Errors:

  • 404 'Failed to locate the core server with the given id': Returned if no core server exists with the given id.

 

communication_manager/rest/config/asterisk/{coreServerId}/extensionGroups/voicemailAgentIdentifiers

Description

Access the sub/child resource for extension groups.

Parameters:

  • coreServerId: The id of the core server.

Errors:

  • 404 'Failed to locate the core server with the given id': Returned if no core server exists with the given id.

 

communication_manager/rest/config/asterisk/extensionGroups/voicemailAgents

Description

Access the sub/child resource for the voicemail agents connected to the system.

 

communication_manager/rest/config/asterisk/extensionGroups/recordingAgents

Description

Access the sub/child resource for the recording agents connected to the system.

Curl Examples

Get the top level Asterisk configuration for all core servers

curl --user manager:manag3rpa55word -k -i -H "Accept: application/json" http://localhost:58080/communication_manager/rest/config/asterisk

Get the top level Asterisk configuration for a specific core server

curl --user manager:manag3rpa55word -k -i -H "Accept: application/json" http://localhost:58080/communication_manager/rest/config/asterisk/56cf70a3-1ee0-4b09-8f40-297430eeeddf

Update the top level Asterisk configuration

curl --user manager:manag3rpa55word -k -i -H "Content-Type: application/json" -H "Accept: application/json" -X PUT -d '{"id":"ff2e69f0-01eb-43b0-a8cd-de47e0674229","serverId":"56cf70a3-1ee0-4b09-8f40-297430eeeddf","tenantId":"","ringStatusEnabled":true,"pageStatusEnabled":true,"confBridge":true,"originatingContext":"from-internal","redirectingContext":"from-internal","musicOnHoldClass":"default","originateTimeout":30000}' http://localhost:58080/communication_manager/rest/config/asterisk/56cf70a3-1ee0-4b09-8f40-297430eeeddf