OPS make_call
You could make a call with the aid of the make_call instance method.
def make_call dialed, url=nil, error_url=nil, caller_id=nil, caller_displayed_name=nil |
Method parameters
Parameter name | Value | Description | Default value | Mandatory |
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 |
Example
ops = OPS.new '192.168.0.1', nil, '9999', 'admin', 'password' puts ops.make_call '2000', nil, nil, nil, 'Rudolf' |
More information
- NG initialize
- NG send_SMS
- NG send_SMS
- OPS initialize
- OPS make_call
- OPS send_SMS
- OPS send_email
- OPS list_active_calls
- OPS self.make_call
- OPS self.send_SMS
- OPS self.send_email
- OPS self.list_active_calls
- Call attended_transfer
- Call blind_transfer_callee
- Call blind_transfer_caller
- Call forward
- Call hangup
- Call hold
- Call play_file
- Call play_file_to_callee
- Call play_file_to_caller
- Call record_mp3
- Call record_wav
- Call dtmf
- Call dtmf_to_callee
- Call dtmf_to_caller
- Call speak
- Call speak_to_callee
- Call speak_to_caller
- Call unhold
- Class NG
- Class OPS
- Class Response
- Class OPS
- SMS self.ng_send_SMS
- SMS self.ops_send_SMS
- Class SMS