WaitAndReceiveAllSms

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command waits until SMS is received on the specified GSM port or optional timeout (entered in seconds) expired. With this function all SMS including system SMS like MMS, update are received. If timeout is not specified or is greater than general timeout, general timeout will be used.


COMMAND

Command Input arguments Returns
WaitAndReceiveAllSms Port index, [Timeout] SMS origin number and text, in the case of error, Error Code

OUTPUT

Command status in the following format:
"SMS RECEIVED from %s %s [%s]\n", origin_number, sms_text, sms_pdu
or
"SMS RECEIVED from MMS %s [%s]\n", sms_text, sms_pdu
"Incoming MMS from %s, Subject: %s, URL: [%s]", sender, subject, url
or
"%s\n", command_status

EXAMPLE

~# WaitAndReceiveAllSms 0 240
SMS RECEIVED from 0632279930 “How are you?” [07911326040000F0040B911346610089F60000208062917314080CC8F71D14969741F977FD07]

~ # WaitAndReceiveAllSms 0
SMS RECEIVED from MMS +381637380797 [07918361050090004406D0CDE61400F561401090346380550B05040B8423F00003A8020283687474703A2F2F3137322E31372E38362E352F6D6D732F776170656E633F6C6F636174696F6E3D3338313634363730353738325F636938692D303030313033267269643D30323200]
Incoming MMS from +381637380797/TYPE=PLMN, Subject: "", URL: [http://172.17.86.5/mms/wapenc?location=381646705782_ci8i-000103&rid=022]

~# WaitAndReceiveAllSms 0 240
TIMEOUT EXPIRED WaitAndReceiveSms Remote