OPS self.make_call

You could make a call with the aid of the make_call class method.

def self.make_call ops_ip_address, api_extension, dialed, http_api_service_port=7780, url=nil, error_url=nil, caller_id=nil, caller_displayed_name=nil, username=nil, password=nil
Code example 1 - Definition

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
api_extension string value
e.g. '9999'
The Ozeki Phone System API extension phone number. nil Yes
dialed string value
e.g. '1469'
The Ozeki Phone System API extension phone number. (None) Yes
http_api_service_port int value
e.g. 7780
The Ozeki Phone System HTTP API service listener port. 7780 No
url string value
e.g. '1469'
The PBX will send a request to this URL, when the call is connected, and awaits a response containing an OzML. Empty string No
error_url string value
e.g. '1469'
This URL will be requested if any errors occur during the call. Empty string No
caller_id string value
e.g. '1469'
Caller identifier. Empty string No
caller_displayed_name string value
e.g. '1469'
Displayed name. caller_id 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

Example

OPS.make_call '192.168.0.1', '9999', '2000', nil, nil, nil, nil, 'Rudolf', 'admin', 'password'

Code example 2 - Make a call with class method

More information