2 way SMS - replying to a withheld number | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through December 09, 2003 ⬆ |
◄ ► |
Author | Message | |||
Anonymous |
Hi, I've got the 2 way SMS interface working fine, via a perl script. How can I get the gateway to reply to number held internally, if the caller withholds his number ? I dont want to use the web gateway if possible. Regards Kevin | |||
Anonymous |
I am trying to get the 2-way sms working as in the documentation. Maybe you can help me. Regards, Tunu | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 1105 Registered: 10-2002 |
Kevin, I'm not sure what you mean ... generally you can't withold a number when sending an SMS (unless you send the SMS through a service provider, in which case you can't reply to an alpha sender as there is no path for the reply). Perhaps you can explain the scenario in some more detail if I am not understanding correctly? -bn | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 1106 Registered: 10-2002 |
Hi Tunu, Where do you seem to be running into problems with setting up the 2-way command? Can you explain what you're trying and what doesn't seem to be working? -bn | |||
Anonymous |
Hi Bruce, thanks for the response. Unix bod, so bear with me. ( Hey, that Linux version would be good too :*) ) I want a sms query from user A - to intiate a message to user B, whose number I hold internally. E.g. Query forces a check on a system, if one is found, another person is notified. --------- Am I right in saying that if I set @@RECIP@@ ( global variable right ?? ) , to another value in my command file, then the response will be sent to that new number ? Regards Kevin | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 1150 Registered: 10-2002 |
Hi Kevin, Luckily you don't have to get into any Windows specific programming on the 2-way commands. We call an HTTP script, so you can work in whatever web environment you prefer. The @@RECIP@@ variable is only used in passing information into your script. You configure a URL that the gateway calls, and this @@RECIP@@ variable is just a placeholder in the configuration ... when your script is actually called, this string will be replaced with the phone number that is indicated as being the recipient for this particular received message. (This @@RECIP@@ value can be useful if you are listening for SMS messages for multiple phone numbers or modems, and you need to apply different logic to messages received on different phone numbers.) So, just to be clear, your application never sees the text "@@RECIP@@" or "@@SENDER@@" or "@@FULLSMS@@", etc. Instead, these are just place holders in the URL that you configure in the "2-way" configuration dialog. When a message is received, NowSMS will call your HTTP script, substituting in the values for these variables. If you want to take some action other than replying back to the sender, then you need to uncheck "Command returns response text" for the command in the "2-way" dialog. To actually send a message from your script, you then need to either issue a new HTTP connection from the script (we have some PHP and ASP examples that I can point you to here in the discussion board if necessary) ... or you can return a "redirect" response back from the script which effectively sends an HTTP command to send a message back to the NowSMS gateway. This redirect technique is described at the following link: http://www.nowsms.com/support/bulletins/tb-nowsms-003.htm -bn | |||
Kevin Cornmell Unregistered guest |
Cheers Bruce, I'll play with that over the w/e Regards Kevin |