Sending MMS Messages to 1 modem only

Sending MMS Messages to 1 modem only SearchSearch
Author Message
Violet99
New member
Username: Violet99

Post Number: 5
Registered: 07-2011
Posted on Friday, August 21, 2015 - 02:49 pm:   

Hi Des,

You have helped me configure NowSMS if I have 5 modems, and I want to send MMS messages out so that they use any modem.

But, now what if I want to send MMS message and this message must be sent to 1 modem only?

Thanks,

V
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5411
Registered: 08-2008
Posted on Friday, August 21, 2015 - 05:21 pm:   

Hi V,

If you are submitting via HTTP (http://www.nowsms.com/doc/submitting-mms-messages/now-smsmms-proprietary-url-sub mission), 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.

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

When building the MMS message add:

$mmsMessage = MmsAddField ($mmsMessage, "MMSCRoute", "routename");

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

When building the MMS message add:

mms.addparameter ("MMSCRoute", "routename");

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

Include MMSCRoute=routename as a command line parameter.

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

When building the MMS message add:

form("MMSCRoute") = "routename"

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

When building the MMS message add:

form("MMSCRoute") = "routename";

--
Des
NowSMS Support
}
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5412
Registered: 08-2008
Posted on Friday, August 21, 2015 - 05:34 pm:   

I should add that is also possible to specify any of several routes.

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

route1:route2:route3

(i.e., separate route names with : character)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5413
Registered: 08-2008
Posted on Friday, August 21, 2015 - 05:38 pm:   

And for the sake of completeness, I should mention that sender address based routing is also available. So an MMSC Route can be 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). It must be manually configured in the modem settings under the SMSC list.

Also note that this phone number does not need to be the real 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.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5422
Registered: 08-2008
Posted on Thursday, August 27, 2015 - 01:36 pm:   

One more follow-up clarification regarding sender based routing mentioned in the previous post.

When submitting an MMS message, the sender address is specified in the MMSFrom parameter.

NowSMS will look for an MMSC Route with a matching sender address.

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.

--
Des
NowSMS Support