2-way SMS does not parse

2-way SMS does not parse SearchSearch
Author Message
Vance Harris
New member
Username: Vance

Post Number: 1
Registered: 11-2003
Posted on Friday, November 07, 2003 - 03:42 pm:   

Hi there
I am having some difficulty with the 2-way SMS functionality. I have two entries, a * and a 'C'. If I send a C, the system correctly captures the SMS and the debug log indicates that it is executing the cmd file (I used your example). That said, the cmd console does not actually run even if I use /k instead of /c to keep it on screen.
If I send an 'A' it runs the * script.
It does not seem to parse out if I send Cxxxxx where xxxxx is some other information. The message simply sits in SMS-IN. I would expect it to see the 'C' and then process the other information as text body but I may be mistaken as to how this all works.
So, two things. Why does the cmd not ACTUALLY run (I tried something like calc.exe also) and what do I need to do to make C12345 run a program becasue it saw C and then use the information 12345?
Many thanks in advance.

Best regards

Vance
Shumie
New member
Username: Shumie

Post Number: 3
Registered: 11-2003
Posted on Saturday, November 08, 2003 - 01:24 am:   

Try to use this:C 12345

You need to set a space between the C and your Data 12345.

Kind regards,
Shumie
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1058
Registered: 10-2002
Posted on Tuesday, November 11, 2003 - 07:49 pm:   

Hi Vance,

Shumie is correct. The prefix matching is not character based, it looks for an exact match between the prefix and the first word (up to the first white space) of the message.

We've had a number of requests for more wildcard support (so that you could use a prefix like C* for your situation), but that is not something that we currently support.

My advice, if you can't use an approach like Shumie describes, would be to route all "2-way" requests through a single script. Your script could then do more sophisticated parsing against the message to meet your specific application needs.

-bn
Vance Harris
New member
Username: Vance

Post Number: 2
Registered: 11-2003
Posted on Friday, November 14, 2003 - 08:47 am:   

That is exactly what I am doing now and it worls fine.
Thanks for your help and thanks Shumie for your input also.

Best regards

Vance