Selecting MMS Route when sending MMS

Posted by on Oct 30, 2018 in Support Blog

Topic Keywords: , , , ,

When submitting an MMS message, it is frequently desirable to direct the message to a specific connection. The method for doing this varies depending on the protocol being used to submit the MMS message.

HTTP URL or POST Submission

If you are submitting via HTTP (https://nowsms.com/doc/submitting-mms-messages/now-smsmms-proprietary-url-su bmission), you can specify an MMSCRoute=xxxx parameter, where xxxx is the name of the “MMSC Routing” definition. This will force the MMS message to go out the named route.

PHP

If you are using our PHP example at https://nowsms.com/doc/submitting-mms-messages/send-mms-message-with-php

When building the MMS message add:

$mmsMessage = MmsAddField ($mmsMessage, “MMSCRoute”, “routename”);

Java

If you are using our Java example at https://nowsms.com/doc/submitting-mms-messages/send-mms-message-with-java

When building the MMS message add:

mms.addparameter (“MMSCRoute”, “routename”);

Command Line Interface

If you are using our command line example at https://nowsms.com/doc/submitting-mms-messages/send-mms-message-from-command – line

Include MMSCRoute=routename as a command line parameter.

VB.Net

If you are using our VB.Net example at https://nowsms.com/doc/submitting-mms-messages/send-mms-message-with-vb-net

When building the MMS message add:

form(“MMSCRoute”) = “routename”

C#.Net

If you are using our C#.Net example at https://nowsms.com/doc/submitting-mms-messages/send-mms-message-with-c-net

When building the MMS message add:

form(“MMSCRoute”) = “routename”;

Other Protocols

Sender address based routing is also available, where the outbound MMSC Route is selected based upon a match between the From address in the MMS message and the phone number of the modem.

Note that the modem phone number is not automatically configured by NowSMS (it is not readily available on some operator networks). For modems, this is the phone number configured for the modem in the SMSC list.

For other types of connections, this is the default sender address in the MMSC Routing definition.

Note that this phone number does not need to be the actual phone number, it can be an internal number that is only used for coordinating modem selection. In this way, if multiple modems are configured with the same phone number, a matching sender address can be routed via any matching modem.

Multiple Routes

It is also possible to specify that any of several routes can be used.

Instead of specifying only one routename in any of the above examples, use the following syntax in place of the route name:

route1:route2:route3

(i.e., separate route names with : character)

For comments and further discussion, please click here to visit the NowSMS Technical Forums (Discussion Board)...