SendSmsTextAndWaitDelivery

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. For this SMS the Delivery Reportis demanded. Command waits until the SMS Delivery Report is received or optional timeout (entered in seconds) expired or general timeout expired. Timeout = -1 allows to ask for DLR but DLR is not wait to release the command.

COMMAND

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

OUTPUT

Command status in the following format:
"%s\n", command_status

EXAMPLE

~# SendSmsTextAndWaitDelivery 0 0632279930 "SMS message"
DELIVERY REPORT RECEIVED
Message reference(s): 90

~# SendSmsTextAndWaitDelivery 0 0632279930 "SMS message" 120
TIMEOUT EXPIRED
SendSmsTextAndWaitDelivery Remote