2WaySMS - using two diffrernt scripts | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through September 15, 2006 ⬆ |
◄ ► |
Author | Message | |||
Dror Golan New member Username: Drorgo Post Number: 7 Registered: 06-2006 |
Hi, I'm using 2 GSM Modems that are hooked to the same SMSC(NowSMS/Win2003) , each one should fire a different script file once an incomming SMS arrives. I could only do that at the script level (e.g. finding out what is the @@RECIP@@) and making the script route the message) and not at the Gateway level (e.g. defining two scripts and using some sore of "command prefix like" logic for routing them) Is there any way of making this distinction at the Gateway level ? Does the only way of doing it is hooking each Modem to a different Gateway (e.g. running two instances of a GW at the same computer) ? Thanks. | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 6344 Registered: 10-2002 |
Hi, When you define the script on the "2-way" page, you can specify a "Receive Phone Number". The script will only be executed if the phone number for which the message was received (i.e., the @@RECIP@@ parameter) matches this value. Note that when you are using GSM modems, you must manually set the "Receive Phone Number" value under "Properties" for the modem on the "SMSC" page of the NowSMS configuration. -bn |