2-way sms question!!!

2-way sms question!!! SearchSearch
Author Message
Spencer Smith
New member
Username: Kaddour

Post Number: 3
Registered: 07-2006
Posted on Saturday, July 22, 2006 - 02:06 am:   

I have been trying to use the 2-way sms reception in nowsms gateway. I wrote a quick C++ console application that simply takes the input string then displays it on the console. I tested it on the command line and it works.

I put the following SMS command: abc
and the command to excecute: C:\TraSMS\vc1\tst1\Release\tst1.exe @@FULLSMS@@

But when the message "abc mtpg" arrives, nothing happen! it doesn't kick off the apps!!!
Any idea? please help....

S

P.S. From the debug file copied below, it looks as if it's tring to do the right thing. But then, why it doesn't kick off the apps?
May be I'm doing something stupid here, but I'm really stuck!!!

----------debug file --------
initialization complete: Sony Ericsson 750 USB WMC Data Modem #2
01:34:47:125 [2] ModemReceiveMessages:
+CMGL: 64,0,,35
0791448720003023040C9144xxxxxxxxxx000860702210439540100061006200630020006D007400 700067
OK
01:34:47:125 [2] ModemReceiveMessages: Decoding received message index 64 from message storage ME
01:34:47:125 [2] ModemReceiveMessages: 0791448720003023040C91xxxxxxxxxx000860702210439540100061006200630020006D00740070 0067
01:34:47:125 [2] ModemReceiveMessages: SMSC address len = 7
01:34:47:125 [2] ModemReceiveMessages: SMSC Address = +447802000332
01:34:47:125 [2] ModemReceiveMessages: SMS Message Type = SMS-DELIVER
01:34:47:125 [2] ModemReceiveMessages: Sender address len = 12
01:34:47:125 [2] ModemReceiveMessages: Sender Address = +44xxxxxxxxxx
01:34:47:125 [2] ModemReceiveMessages: PID = 00
01:34:47:125 [2] ModemReceiveMessages: DCS = 08
01:34:47:125 [2] ModemReceiveMessages: Anticipated user data length = 16
01:34:47:125 [2] ModemReceiveMessages: Binary Message = 0061006200630020006D007400700067
01:34:47:140 [2] ModemReceiveMessages: AT+CMGD=64
01:34:47:234 [2] ModemReceiveMessages:
OK
01:34:47:343 [3] ThreadProcessInboundSMS: Processing 44C172A7.in...
01:34:47:343 [3] smsData Before: abc mtpg
01:34:47:343 [3] smsData After: abc mtpg
01:34:47:343 [3] GetProgramToExecute: C:\TraSMS\vc1\tst1\Release\tst1.exe abc mtpg
01:34:47:343 [3] ThreadProcessInboundSMS: Executing C:\TraSMS\vc1\tst1\Release\tst1.exe abc mtpg
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 6225
Registered: 10-2002
Posted on Wednesday, July 26, 2006 - 04:43 pm:   

Hi,

It looks like the program is being executed. If there was a problem executing the program, then there would be an error indication in the debug log.

I can only figure that maybe there is some problem executing the program from within a service environment. Like maybe there is a reliance on DLLs that are not part of the system path when running in a service environment.

The first thing that I would try would be to modify the 2-way command to try running it under the command processor ...

To do this, put c:\windows\system32\cmd.exe /c before your program name.

I'm also wondering if maybe the program is hanging waiting for user input.

What happens if you send in 2 messages? Do you see a 5 minute delay between the "Processing" messages in the SMSDEBUG.LOG? If so, then the program would appear to be waiting for user input of some sort.

-bn