2-way processing on two smsc connections

2-way processing on two smsc connections SearchSearch
Author Message
Nana Kwabena Agyei-Owusu
New member
Username: Chico

Post Number: 1
Registered: 02-2007
Posted on Monday, February 19, 2007 - 05:31 pm:   

i need information on how to configure 2-way sms processing ,so that each modem will recieve its own unique sms and process it and return via the same modem.
example.Modem 1= recieves weather request and processes it and sends back through modem 1,Modem 2=recieves stock prices request and sends reply via modem .

Is it possible to achieve the above using one modem with or without the sms prefix

thanks
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6908
Registered: 10-2002
Posted on Friday, February 23, 2007 - 07:29 pm:   

Hi,

If both connections are modems, then in the SMSC list, highlight each modem individually and press "Properties". Then configure the "Phone Number" setting for each modem.

When NowSMS receives a message from one of these modems, it will apply this phone number as the "receive phone number" for the message.

In the 2-way command processing configuration, you can configure different commands based upon the "Receive Phone Number". (If you leave this field blank in the 2-way command configuration, the command applies for messages that come in for any phone number.)

The above explanation solves one part of your problem. It does not address the part about making sure that the reply goes back out via the same modem, so let me now explain that part...

When NowSMS routes a message for outbound delivery, it first looks to see if there is a "Sender address" associated with the message. If there is, it will try to route that message via an SMSC connection with a matching sender address ("Phone Number" setting for modems, "Default Sender Address" for other SMSC connection types).

So, in order to have your reply routed back to the same modem, the reply needs to have a "sender address" associated with it that matches the phone number of the modem. When you use a simple text response to a 2-way command, NowSMS does this automatically, applying the receive phone number for the originating message as the sender phone number for the reply.

However, if you are using the redirect technique, or issuing a new URL request to NowSMS, you need to include the "&Sender=" parameter in the URL request to indicate the appropriate sender address to be used.

(Also note that you can use the @@RECIP@@ parameter in a 2-way command to have the receive phone number passed to your 2-way command.)

-bn