2- way function

2- way function SearchSearch
Author Message
Anonymous
 
Posted on Friday, April 22, 2005 - 09:05 am:   

Hi!all,

How can i have the incoming SMS content in my SMS-IN folder and excute the command at the same time while my SMS gateway receiving a sms?If i set command return response text,it won't have any incoming sms content in SMS-IN folder

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

Post Number: 4370
Registered: 10-2002
Posted on Monday, April 25, 2005 - 06:56 pm:   

Hi,

I'm sorry, but I do not understand your question.

Are you saying that you want NowSMS to execute your command, but also still keep a copy of the received message in the SMS-IN directory?

That is not possible. If you want to save the content of the received SMS message, your 2-way command would need to save the content.

(Of course, the SMSIN-yyyymmdd.LOG should also have details about the received messages, if you really didn't want to do your own logging.)
Anonymous
 
Posted on Tuesday, April 26, 2005 - 05:51 am:   

Thanks for your response.You have answered my question.
Anonymous
 
Posted on Wednesday, April 27, 2005 - 10:13 am:   

Bryce,

which command can keep a copy of the received message in the SMS-IN directory?

thanks,
Anonymous
 
Posted on Wednesday, April 27, 2005 - 10:17 am:   

Bryce,

another question, is there other command to show information about received sms except @@SENDER@@ @@FULLSMS@@ @@RECIP@@
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4424
Registered: 10-2002
Posted on Wednesday, April 27, 2005 - 08:38 pm:   

Messages are only kept in the SMS-IN directory if there is no matching command.

Otherwise, if you use a 2-way command, your 2-way command must make a copy of the message to save it ... or you could extract data out of the SMSIN-yyyymmdd.LOG files.)


quote:

another question, is there other command to show information about received sms except @@SENDER@@ @@FULLSMS@@ @@RECIP@@




Those parameters contain the bulk of the information about the SMS message.

The web page also details @@SMSPREFIX@@ and @@SMS@@ which contain a subset of @@FULLSMS@@. (See http://www.nowsms.com/documentation/ProductDocumentation/2_way_sms_support.htm.)

There are also some extensions if your script needs to also receive binary messages, mentioned in the following discussion thread: http://support.nowsms.com/discus/messages/485/624.html

-bn
Anonymous
 
Posted on Tuesday, May 03, 2005 - 03:35 am:   

Dear Bryce,

Excuse me, do you know how NowSMS name a incoming sms ? does it have a rule?

thanks,
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4466
Registered: 10-2002
Posted on Tuesday, May 03, 2005 - 09:33 pm:   

No, there's not really a rule.

It just gets a unique filename generated with a ".IN" extension in the SMS-IN directory.

After the 2-way commands are evaluated, if no command matches, it is renamed with a ".SMS" extension in that directory.

I would encourage you to use 2-way commands instead of processing these files directly ... mainly because Unicode messages are left in binary format in the SMS-IN directory, and translated back to text when running a 2-way command.

Anonymous
 
Posted on Tuesday, May 10, 2005 - 08:43 am:   

Hi Bryce,
how do i get 2-way to be able to send back a text message to me on my mobile phone? Can you pls give me a step-by-step advice on how to do this, I am new to NOWSMS. Please help cos this is very urgent.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4504
Registered: 10-2002
Posted on Tuesday, May 10, 2005 - 07:01 pm:   

There's a pretty good description of a simple ECHO implementation in the following link:

http://www.nowsms.com/documentation/ProductDocumentation/2_way_sms_support.htm

It explains what you need to define.

There is also some troubleshooting suggestions, and links to other examples in the following thread:

http://support.nowsms.com/discus/messages/1/4520.html

-bn
suresh
Unregistered guest
Posted on Monday, May 30, 2005 - 06:35 am:   

I can able to receive sms in my pc from the USB
connected mobile using NOW and also getting text response back in my mobile.
The query is
1.In the "command to execute" column in 2-way menu,whether i can execute command launching notepad application or other 'c' exe file on receiving sms?
2.On receiving sms from my mobile,i want to pass the replacable parameters like @@SMS@@ to a subroutine written in 'c' language for some processing.Is it possible?.
Please suggest me in this accord!