ListExtensions
The ListExtensions command lists configured extensions in the system.
Example HTTP request:
http://192.168.115.131:7780/?command=ListExtensions
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> <Extensions> <ExtensionSummary> <Id>1000</Id> <Type>SIP</Type> </ExtensionSummary> <ExtensionSummary> <Id>1001</Id> <Type>SIP</Type> </ExtensionSummary> <ExtensionSummary> <Id>1002</Id> <Type>SIP</Type> </ExtensionSummary> <ExtensionSummary> <Id>100</Id> <Type>SIP</Type> </ExtensionSummary> </Extensions> </Response>
The value between the <Id></Id> nodes are extension IDs. They are used in commands referring to the extension: GetConfig, ModifyConfig, RemoveConfig
Request parameters
Parameter name | Value | Description | Mandatory |
command | string value, ListExtensions | Specifies the type of the HTTP API command. | 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. |
Parameter name | Value | Description |
Code | int value (200, 300, 301, 302, 303) |
Returns the status code of the response. For more information 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 |
Extensions | string value | Between the ExtensionSummary nodes it contains the ID and the Type parameter of the extension as shown above in the HTTP response example. |
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