AddConfig
The AddConfig command adds an extension configuration to the system.
Example HTTP request:
http://192.168.115.131:7780/?command=AddConfig&ExtensionType=SIP&ConfigXML=%26lt%3bConfig+knownType%3d%22SIPExtensionInfo...
<Config knownType="SIPExtensionInfo"> <AuthorizationName>100</AuthorizationName> <Password>100</Password> <Username>100</Username> <Enabled>true</Enabled> <ID>100</ID> <UserID>user100</UserID> </Config>
Example HTTP response:
<?xml version="1.0"?> <Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Code>200</Code> <Message>Command successfully executed</Message> </Response>
Request parameters
Parameter name | Value | Description | Mandatory |
command | string value, AddConfig | Specifies the type of the HTTP API command. | Yes |
ExtensionType | string value, e.g. SIP |
Extension type of the configuration XML to be saved. The available extension types can be requested with ListExtensionTypes command. | Yes |
ConfigXML | string value, e.g. see above |
Extension configuration to add to the system. This parameter must be in XML format recognized by the system, and need to be URL encoded. It must contain the following parameters: AuthorizationName, Password, Username, Enabled, ID, UserID | Yes |
These parameters are only required if office user authentication is set in the HTTP API: | |||
Parameter name | Value | Description | |
Username | string value, e.g. user1000 |
This is the username of an Ozeki Phone System office user. | |
Password | string value, e.g. mypassword12 |
This is the password belonging to the username. |
Response parameters
Parameter name | Value | Description |
Code | int value (200, 300, 301, 302, 303, 702, 703) |
Returns the status code of the response. For more infromation go to the status code reference page |
Message | string value, e.g. Command successfully executed |
Returns the description of the response code. For more infromation go to the status code reference page |
How to use it?
Step 1: Get an extension from the system with GetConfig command. Step 2: Use the XML configuration in the response as template for the new extension, and don't forget to define the system unique extension ID.
Step 3: URL encode this XML configuration and set it as the ConfigXML parameter of the request. Set the proper ExtensionType, SIP for example. To list available extension types use ListExtensionTypes command.
More information
- ListActiveCalls HTTP API command of Ozeki Phone System PBX
- Call HTTP API command of Ozeki Phone System PBX
- Forward HTTP API command of Ozeki Phone System PBX
- Hold HTTP API command of Ozeki Phone System PBX
- Unhold HTTP API command of Ozeki Phone System PBX
- BlindTransfer HTTP API command of Ozeki Phone System PBX
- AttendedTransfer HTTP API command of Ozeki Phone System PBX
- SendDTMF HTTP API command of Ozeki Phone System PBX
- Play HTTP API command of Ozeki Phone System PBX
- Speak HTTP API command of Ozeki Phone System PBX
- SendSMS HTTP API command of Ozeki Phone System PBX
- Hangup HTTP API command of Ozeki Phone System PBX
- AddConfig HTTP API command of Ozeki Phone System PBX
- GetConfig HTTP API command of Ozeki Phone System PBX
- ListExtensions HTTP API command of Ozeki Phone System PBX
- ListExtensionTypes HTTP API command of Ozeki Phone System PBX
- ModifyConfig HTTP API command of Ozeki Phone System PBX
- RemoveConfig HTTP API command of Ozeki Phone System PBX
- SendEmail HTTP API command of Ozeki Phone System PBX
- Record HTTP API command of Ozeki Phone System PBX
- GetCallHistory HTTP API command of Ozeki Phone System PBX