SMS self.ng_send_sms
Class method to send an SMS message through Ozeki NG SMS Gateway.
def ng_send_sms to, message, from=nil |
Method parameters
Parameter name | Value | Description | Default value | Mandatory |
ng_ip_address | string value e.g. '192.168.0.1' |
IP address of Ozeki NG SMS Gateway. | (None) | Yes |
username | string value, e.g. 'admin' |
The username to connect Ozeki NG SMS Gateway. | (None) | Yes |
password | string value, e.g. 'password' |
The password for the given username. | (None) | Yes |
to | string value e.g. '06123456789' |
Recipient of the SMS message. | (None) | Yes |
message | string value, e.g. 'Hello world!' |
The content of the SMS message. | (None) | Yes |
port | int value e.g. 9501 |
The Ozeki NG SMS Gateway listener port. | 9501 | No |
from | string value e.g. 'admin' |
Sender of the SMS message. | Empty string | No |
Example
puts sms.ng_send_sms '192.168.0.1', 'admin', 'password', '06123456789', 'Ni hao' |
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