SendSmsText

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command sends SMS to the specified destination number, with specified text (entered between double quotes, coded as UTF-8), from the specified GSM port. The SMS Center number can be specified as an optional parameter. Command exits as soon as the SMS is submitted to SMSC.
In the case of SetSimLocation mode SIM_EMUL, call be placed even if GSM port is not registered. An optional timeout (in seconds) can be specified. If timeout is not specified or is greater than general timeout, general timeout will be used.

COMMAND

Command Input arguments Returns
SendSmsText Port index, Destination number, SMS text, [SMSC number, Timeout)] In the case of error, Error Code

OUTPUT

None

EXAMPLE

~# SendSmsText 0 0632279930 "SMS message from BASH script"
SMS SENT
Message reference(s): 89

~# SendSmsText 0 0632279930 "SMS message from BASH script" +333600100100
SMS SENT
Message reference(s): 54
SendSmsText Remote