SendMmsTextAndWaitDelivery

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command allows to send a specified MMS message from the specified GSM port. It requires that Data session on the specified GSM port be already up on the appropriate APN and MMS parameters set for sending MMS. This command sends MMS text to the specified destination number, with specified text (entered between double quotes, coded as UTF-8), from the specified GSM port. The MMS title can be specified as an optional parameter. For this MMS the Delivery Report is requested. Command waits until the SMS Delivery Report is received or optional timeout (entered in seconds) expired or general timeout expired.

COMMAND

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

OUTPUT

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

EXAMPLE

~# SendMmsTextAndWaitDelivery 0 0632279930 "MMS message"
DELIVERY REPORT RECEIVED

~# SendMmsTextAndWaitDelivery 0 0632279930 "MMS message" "No Title" 120
TIMEOUT EXPIRED