Syntaxs related to command prefixes

Syntaxs related to command prefixes SearchSearch
Author Message
shreyas
New member
Username: Shreyas08

Post Number: 1
Registered: 12-2009
Posted on Sunday, December 13, 2009 - 04:32 am:   

hi i want to use 2 way facility of now sms.. but i just want to process a particular sender's sms.. for example a user with phone number XXXXX sends sms to nowsms gateway then i want to process it but if sender YYYYY sends the sms to gateway i dont want to process.. please tell me the procedure to achieve this goal.. thanks in advance..
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1543
Registered: 08-2008
Posted on Sunday, December 13, 2009 - 12:40 pm:   

Hi,

It is not possible to define a command that is filtered based upon the sender (only recipient, meaning multiple modems or short codes that you receive messages on).

However, it is easy to filter/take different actions based on the message sender, in your own script. Just include @@Sender@@ in your command, and your script can look at this value when deciding what to do.

-- Des
shreyas
New member
Username: Shreyas08

Post Number: 2
Registered: 12-2009
Posted on Tuesday, December 15, 2009 - 03:33 am:   

okay thanks a lot for your support...
i want to do one thing.. take for instance i have three users with phone numbers XXXXX,YYYYY,ZZZZZ now if sms is sent to gateway by XXXXX i want it to automatically redirect to YYYYY but not to ZZZZZ can you tell me the script for this..like what to define in command prefix and what to define in command to execute.. thanks in advance
shreyas
New member
Username: Shreyas08

Post Number: 3
Registered: 12-2009
Posted on Tuesday, December 15, 2009 - 04:02 am:   

okay i got the above thing by using first word of the text..
but i typed this in command to execute form..
http://127.0.0.1:8800/?phonenumber=XXXXX&text=@@sender@@

now the gateway is sending the sender's number continuously on the ph number XXXXX.. but i want it to be sent only once.. can you please help me out where i am going wrong?
thanks in advance..
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1557
Registered: 08-2008
Posted on Tuesday, December 15, 2009 - 06:51 pm:   

Post your SMSIN-yyyymmdd.LOG, SMSOUT-yyyymmdd.LOG and SMSGW.INI file.

This will tell me what messages have been received, what messages have been sent, and your configuration details.

--
Des
NowSMS Support
shreyas
New member
Username: Shreyas08

Post Number: 4
Registered: 12-2009
Posted on Wednesday, December 16, 2009 - 05:26 pm:   

hey des that prob is solved now.. thanks again
shreyas
New member
Username: Shreyas08

Post Number: 5
Registered: 12-2009
Posted on Thursday, December 17, 2009 - 04:15 am:   

hi,
i have recently downloaded the grouptext feature of nowsms.. but i am not able to understand how to create group in that.. i read the amnual but still not able to understand.. can you please help me out regarding that...
thanks in advance
shreyas
New member
Username: Shreyas08

Post Number: 6
Registered: 12-2009
Posted on Thursday, December 17, 2009 - 04:48 am:   

hi,
i have recently downloaded the grouptext feature of nowsms.. but i am not able to understand how to create group in that.. i read the amnual but still not able to understand.. can you please help me out regarding that...
thanks in advance
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1566
Registered: 08-2008
Posted on Thursday, December 17, 2009 - 05:05 pm:   

What have you tried?

Where are you stuck in following the directions?
shreyas
New member
Username: Shreyas08

Post Number: 7
Registered: 12-2009
Posted on Thursday, December 17, 2009 - 06:37 pm:   

i downloaded both the files smsgrouper and smsgroupcmd in the nowsms directory.. then i created the sms user with a phonenumber XXXXX then i sent sms from number XXXXX
create group1
i had also put a 2 way command with prefix * and command to be executed as
"C:\Program Files\NowSMS\smsgrouper.exe" /s @@SENDER@@ /r @@RECIP@@ /t @@FULLSMS@@
but i am not geting any positive response where am i going wrong??
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1574
Registered: 08-2008
Posted on Friday, December 18, 2009 - 06:57 pm:   

Enable the SMSDEBUG.LOG.

Then send in another message. Post the SMSDEBUG.LOG in reply here.
shreyas
New member
Username: Shreyas08

Post Number: 8
Registered: 12-2009
Posted on Sunday, December 20, 2009 - 05:59 pm:   

hi,
i am using 2 way command to create a distribution list dynamically.. the command i am giving is
http://127.0.0.1:8800/dlists?DListAction=Add&DListName=@@sms@@

ans its working fine but i want to add one more thing..it is that after creation of dlist it automatically sends a msg to the sender that the list has been created.. can you please suggest how to do this... thanks in advance..
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1586
Registered: 08-2008
Posted on Monday, December 21, 2009 - 03:46 pm:   

If you want to take multiple actions in response to a single SMS, you need to create your own script.

From within your script, you can initiate as many HTTP requests to perform other action as you want.

By script, I'm referring to a PHP script running on a separate web server, or a Windows script. The following link has some pointers to simple scripts: http://support.nowsms.com/discus/messages/1/4520.html

I don't have any examples that do exactly what you want however.
shreyas
New member
Username: Shreyas08

Post Number: 9
Registered: 12-2009
Posted on Tuesday, December 22, 2009 - 05:55 pm:   

hi,
sir i have very less knowledge regarding php can u please give detailed explanation how to achieve this goal... thanks in well advance
shreyas
New member
Username: Shreyas08

Post Number: 10
Registered: 12-2009
Posted on Wednesday, December 23, 2009 - 03:41 am:   

hello instead php i created a vb script to process a command and when i m passing command like this

c:\windows\system32\wscript.exe c:\create.vbs %@@SENDER@@%@@SMSPREFIX@@%@@SMS@@

where i have kept my file in c drive of my pc..

can u please debug why is it not working.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1607
Registered: 08-2008
Posted on Wednesday, December 23, 2009 - 02:59 pm:   

In the definition of the 2-way command, check "Command Returns Response Text".

This means that NowSMS will trap any output from the command and send it back in an SMS reply.

Then put some debug code in your VBS comand to figure out what it is doing wrong.

Also try running the command from a command line with test data and make sure it is working like you expect.