2-WAY SMS with multiple modem installed in nowsms

2-WAY SMS with multiple modem installed in nowsms SearchSearch
Author Message
LOUIS LAU
New member
Username: Stakeshei

Post Number: 3
Registered: 04-2006
Posted on Friday, June 30, 2006 - 05:14 am:   

Hello everyone,
I am working on a 2-way sms project, in which user will reply their recevied sms, and the system will auto-reply a sms according to their reply and auto-reply something from the database to user. The auto-reply so far works fine but sometimes it will auto-reply the user using the wrong modem. For example, user A sends sms to modem 1, so the auto-reply should be from modem 1. But sometimes the auto-reply action goes to other modem, say modem 2. So is there anything I can set to make sure the auto-reply action is from the recevied sms modem. Thanks for your kind reply.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6154
Registered: 10-2002
Posted on Monday, July 03, 2006 - 03:45 pm:   

Hi,

If you are using GSM modems, select each modem individually from the "SMSC" list, press "Properties", and then configure the "Phone Number" for the modem.

If you do this, then when NowSMS sends the 2-way reply back, it will route it back to the correct modem.

This will work as long as you are using simple text responses back to the 2-way commands. If you are using the redirect technique (http://www.nowsms.com/support/bulletins/tb-nowsms-003.htm), then you need to include a "Sender=" parameter in your redirect URL ... and the value of this parameter should match the @@RECIP@@ value that is passed to your 2-way command.

If you are not using the redirect technique, then just setting the phone numbers for each modem should be sufficient.

-bn
LOUIS LAU
New member
Username: Stakeshei

Post Number: 4
Registered: 04-2006
Posted on Monday, July 03, 2006 - 05:54 pm:   

Hi Bryce,

Thank you for your kind reply, it makes things clear now.

In fact, in sending the sms message, I use the parameter "SMSCRoute=XXX", where XXX is the name of modem displayed on the "SMSC" list to specify which modem will be used to send out sms.

As you mentioned before, do u mean I can use "Sender=YYY", where YYY is the "Phone Number" configured for each modem to send out sms which is the same as using "SMSCRoute=XXX" paremeter?

and does the @@RECIP@@ value you mean is "Phone Number" configured for modems ?

Best Regards,
Louis LAU.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6164
Registered: 10-2002
Posted on Thursday, July 06, 2006 - 07:25 pm:   

Hi Louis,

If you configure a "Default Sender Address" (or "Phone Number" for GSM modems) setting for each SMSC connection, then you can simply specify which modem should process the message by including a sender address when you submit your message. NowSMS will look to route the message to a modem or SMSC with a matching sender address.

The "SMSCRoute=xxx" logic is for more advanced requirements.

The "@@RECIP@@" value can be included as a 2-way command parameter. This value will include the phone number that received the message (in the case of a GSM modem, it contains the configured "Phone Number" for the modem).

-bn