Route sms between 2 sms clients connect to NowSMS

Route sms between 2 sms clients connect to NowSMS SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through November 14, 2013 » Route sms between 2 sms clients connect to NowSMS « Previous || Next »
Author Message
Nelson Lam
New member
Username: Nelsonlam

Post Number: 6
Registered: 02-2013
Posted on Monday, September 23, 2013 - 08:11 am:   

Dear Support

We have 2 SMS clients defined under NowSMS's "SMS Users" list:
e.g. User1 and User2

Is it capable for NowSMS to route SMS received on User1 (submit_sm)
and re-route it to User2 (deliver_sm) ? If that is possible, will there
be be any impact on the Delivery-Report send from User2 back to User1 ?

Thanks.

Best Regards
Nelson
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4666
Registered: 08-2008
Posted on Monday, September 23, 2013 - 05:25 pm:   

Hi Nelson,

Yes, this is possible.

The only difficulty is in how you control the routing. If you can route based upon recipient prefix, in the "SMS Users" account definition, check "Accept Received Messages" AND define the recipient prefixes in "Recipient address(es) to route to this user". (? to match 1 digit, * to match 0 or more digits, separate with comma ... e.g. +44*,+1*)

If that is not sufficient, accounting callbacks can be implemented to control. Accounting callbacks for routing is described here: http://www.nowsms.com/dynamic-sms-message-routing-with-http-callbacks

That link only explains how to route a message to an outbound SMSC connection, but recent versions of NowSMS (2011.08.11 and later) also support routing to a local "SMS Users" account. To do this, you preface the account name with "localuser:" ... for example:

SMSCRoute=localuser:User1

If you're not familiar at all with these callbacks, the following thread might help: http://support.nowsms.com/discus/messages/1/71643.html It's a rather long discussion but there is a good simple example callback script.

--
Des
NowSMS Support

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