OPS self.list_active_calls
You could get the list of active calls with the aid of the list_active_calls class method.
def self.list_active_calls ops_ip_address, http_api_service_port=7780, username=nil, password=nil |
Method parameters
Parameter name | Value | Description | Default value | Mandatory |
ops_ip_address | string value e.g. '192.168.0.1' |
IP address of Ozeki Phone System PBX. | (None) | Yes |
http_api_service_port | int value e.g. 7780 |
The Ozeki Phone System HTTP API service listener port. | 7780 | No |
username | string value, e.g. 'admin' |
The username to connect Ozeki Phone System PBX. | nil | No |
password | string value, e.g. 'password' |
The password for the given username. | nil | No |
Return value
If the answer is parsable, and an error occures (for example Authentication required, and no authentication data has been provided) it will return a Response object. Otherwise it will return an array of active calls, filled with Call objects.
Example
calls = OPS.list_active_calls '192.168.115.193', nil, 'admin', 'password' |