SendMmsMessage

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command sends 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 for sending MMS. MMS message is composed from the content of the specified media files that cab be of the following File Type: UTF8, UTF16, UCS2, US_ASCII, JPEG, GIF, TIFF, PNG, WBMP, SMIL or SPECIFIC. Up to four media files can be specified. All email and number parameters can contain multiple addresses, separated with ',' character. Sender visibility flag can be TRUE or FALSE. Priority can be LOW, NORMAL or HIGH. Multipart type can be MIXED (without MMS presentation file) or RELATED (first specified file has to be MMS presentation SMIL file). If any of required parameters is not needed it can be specified a NULL string (""). Subject cannot be NULL string!
Command waits until MMS message is sent or general timeout expired.
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
SendMmsMessage Port index, MMSC URL, MMS Proxy, SenderName, Visibility, Priority, Subject, RecipientEmail, RecipientNumber, CcEmail, CcNumber, BccEmail, BccNumber, MultipartType, FileType, FilePath, ContentId, ContentType,[ FileType, FilePath, ContentId, ContentType] [ Timeout ] In the case of error, Error Code

STDOUT

Command status in the following format:
"%s\n", command_status (MMS MESSAGE SENT | DATA LINK IS DOWN | DESTINATION HOST NOT REACHABLE | FILE NOT FOUND | BAD PARAMETERS | TIMEOUT EXPIRED)

All error messages are available in Data Commands Status Message list

EXAMPLE

~# SendMmsMessage 3 "http://mms.telenor.no/servlets/mms" 2161933:8080 "Pierre Dubois" TRUE HIGH "MMS" "delacroix@yahoo.fr" "+33623982356, 0645535790" "" "" "" "" RELATED SMIL "/var/tmp/test.smil" "<001>" JPEG "/var/tmp/photo.jpg" "<002>" SPECIFIC "/var/tmp/video.mp4" "<003>" "video/3gpp"
MMS_MESSAGE SENT

~# SendMmsMessage 1 "http://mms.orange.fr" 1916200:8080 "Pierre Dubois" TRUE NORMAL "See this ;)" "delacroix@yahoo.fr" "0645535790" "" "" "" "" MIXED GIF "/var/tmp/photo.gif" "<002>"
FILE NOT FOUND