SMS self.ops_send_sms

Class method to send an SMS message through Ozeki Phone System.

def self.ops_send_sms ops_ip_address, api_extension, to, message, http_api_service_port=7780, from=nil, delivery_report_url=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
to string value
e.g. '1469'
Recipient of the SMS message. (None) Yes
message string value
e.g. 'Hello world!'
Content of the SMS message. (None) Yes
http_api_service_port int value
e.g. 7780
The Ozeki Phone System HTTP API service listener port. 7780 No
from string value
e.g. '1469'
Sender of the SMS message. Empty string No
delivery_report_url string value
e.g. 'http://yourapp.com/smsdelivered.php'
URL that will be requested with delivery details when delivery report arrives to this message. Empty string 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

SMS.ops_send_sms '192.168.0.1', '9999', '2000', 'Ni hao ma?', nil, nil, nil, 'admin', 'password'

Code example 2 - Send an SMS message

More information