How to select a modem

How to select a modem SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through October 31, 2007 » How to select a modem « Previous || Next »
Author Message
Armando De Lorenzis
New member
Username: Delorenzis

Post Number: 2
Registered: 06-2007
Posted on Saturday, June 23, 2007 - 02:54 am:   


i have 2 modems connected in sms gateway.
How i can select a modem to send an SMS depending of an variable, for example:

how i can send sms and select the modem that was to send it.
Armando De Lorenzis
New member
Username: Delorenzis

Post Number: 3
Registered: 06-2007
Posted on Monday, June 25, 2007 - 01:40 am:   

Hi Bryce, why dont respond me?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7265
Registered: 10-2002
Posted on Monday, June 25, 2007 - 04:57 pm:   

Hi Armando,

If you need control over routing to particular SMSC connections (or modems), the logic in NowSMS works like this:

When NowSMS routes a message, it first looks to see if a sender address has been specified for the message submission (normally there is not a sender address specified, unless you submitted the message via HTTP and specified a "Sender=" parameter). If a sender address was specified, then NowSMS checks to see if the sender address matches the "Default Sender Address" that is configured for any of the SMSC links (or the "Phone Number" associated with a GSM modem). If NowSMS finds a match, then it will route the message only via an SMSC connection with a matching sender address.

If NowSMS does not find a match on the sender address, then it evaluates the recipient address, and it will look to see if it finds a match in the "Preferred SMSC Connection for" recipient address masks associated with any
of the SMSC connections. (These recipient address masks can be wildcards such as "+44*" to match any phone number that starts with "+44".) If NowSMS finds a match, then it looks for the longest mask that provides a match, and routes the message via the connection with the longest matching mask. (For example, if you were sending to +441624999999, and you had one connection with a mask of "+44*", and another with "+441624*", then the connection with the mask of "+441624*" would be used as it is a longer match than "+44*".)

If there is no match on the recipient address mask, then the message will be routed via any connection that has "Support any outbound message traffic" checked.

(Note: It should also be mentioned that if NowSMS found multiple matches on the sender address, it evaluates the "Preferred SMSC Connection for" recipient address masks for each of the connections that had a sender address match.)

For additional control of SMSC/modem selection, there is an additional HTTP parameter setting that can be used to explicitly route a message via a particular SMSC or modem, so that you don't have to use the sender/recipient matching logic if it is not appropriate for your configuration.

It works like this, when you submit a message via HTTP, the HTTP interface supports a parameter of "&SMSCRoute=xxxxx", where the value of this setting can be the name of a defined SMSC (e.g., "Bluetooth Modem" or "SMPP - a.b.c.d:xyz"). Or, rather than using the SMSC name, it can be a route name that is defined as associated with an SMSC. To define a route name for an SMSC, it is necessary to manually edit SMSGW.INI, and under the appropriate section header (e.g., [Modem - Bluetooth Modem] or [SMPP - a.b.c.d:xyz]), add RouteName=xxxxx. It is possible for multiple SMSCs to share the same route name, meaning that if a message is submitted with "&SMSCRoute=xxxxx", it will be routed outbound over the first available SMSC that is configured with RouteName=xxxxx.

In your configuration, the simple thing to do would be to define the "Phone Number" associated with each modem under "Properties" for the modem in the "SMSC" list. Then you could include a "&Sender=phonenumber" parameter in your URL request to signal which modem to use.


Login Login / Register Logout Logout Search Last 30 Days Topics Topics