2-Way Message, program hangs | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through January 23, 2007 ⬆ |
◄ ► |
Author | Message | |||
Edward He New member Username: Xuphey Post Number: 1 Registered: 11-2006 |
Hi, I've been reading a lot threads here to setup 2-way sms with now sms. When my device receives a message, i can see the temp message file in SMS-IN directory. The log file is shown as follows... 14:22:02:750 [5] ThreadProcessInboundSMS: Processing 45483D05.in... 14:22:02:750 [5] GetProgramToExecute: C:\WINDOWS\system32\wscript.exe c:\temp\NowSMS\incall.vbs %@@SENDER@@%@@SMSPREFIX@@%@@SMS@@ 14:22:02:750 [5] GetProgramToExecute: Converting character set for received SMS message to utf-8 14:22:02:750 [5] smsData Before: www 14:22:02:750 [5] UTF8ToLocalString: Error 87 from WideCharToMultiByte 14:22:02:750 [5] UTF8ToLocalString: Error 87 from WideCharToMultiByte 14:22:02:750 [5] smsData After: www 14:22:02:750 [5] GetProgramToExecute: C:\WINDOWS\system32\wscript.exe c:\temp\NowSMS\incall.vbs %+8613501134591%www% 14:22:02:750 [5] ThreadProcessInboundSMS: Executing C:\WINDOWS\system32\wscript.exe c:\temp\NowSMS\incall.vbs %+8613501134591%www% The wscript.exe never return, it just keep running in the background. I can see it running in the Windows Task Manager. No log file is created as it should be. I run this command: C:\WINDOWS\system32\wscript.exe c:\temp\NowSMS\incall.vbs %+8613501134591%www% In a dos window, everything seems to work. A TEST.log file is created. The example above is what i found here http://support.nowsms.com/discus/messages/1/333.html I've also tried the "echo" example. "cmd.exe" doesn't return as well. So what's happening here? How can i get everything working? I'm running nowsms on Windows XP Pro. -Edward | |||
Edward He New member Username: Xuphey Post Number: 2 Registered: 11-2006 |
Hi, me again. I've read some other posts here. Seems they have the same problem as I do. Like this one, http://support.nowsms.com/discus/messages/1/9078.html You said use the cmd.exe to execute the program. The problem is that, if I receive 100 messages, there would be 100 separated cmd.exe processes in the background. I have kill all of them 100 times manually. | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 6775 Registered: 10-2002 |
Hi Edward, I don't have any idea what could cause these programs to hang only when they are run as a 2-way command process. Do you see a 5 minute delay between processing of each received message? When we run a local command in the 2-way processor, we wait for up to 5 minutes for it to complete. If it does not complete, we go ahead and process the next message after this 5 minute delay, which will start another process. The only thing that I can think of is that maybe there is a virus scanner that is trying to pop-up a window asking if the action should be allowed, but this cannot be seen because it is running in a background service process. I have no idea why a virus scanner would do this ... but if you have one running, then I would suggest trying to disable it and see if that makes any difference. The only other thing that I can think of is if you have some directory security enabled, and this is causing an issue (although I don't think XP Pro has this type of functionality, I thought it was only server versions of Windows). The NowSMS service, by default, runs in the localsystem account ... but you can go into the Services manager and specify a user account under which it should run. But it would seem to me that this would be a longshot. Here's an idea ... What if you uncheck "Command returns response text" in the 2-way command definition? This will prevent the command from being able to return a response, but I'm just curious if this makes a difference. -bn | |||
Edward He New member Username: Xuphey Post Number: 3 Registered: 11-2006 |
Hi BN, You were right, it is true that my Anti Virus Software was blocking the programs. Thanks for your tips. You helped a lot. | |||
subhash vatyani New member Username: Subhash_vatyani Post Number: 1 Registered: 12-2006 |
sir pl help me i want to get balance from my software and send sms by nowsms in 2way method how to use received parameter in my program to get balance pl help subhah vatyani | |||
Malcolm - Now Support New member Username: Malcolm Post Number: 35 Registered: 12-2006 |
Hi, I'm sorry, but I do not understand your question. Here are some links that describe 2-way SMS, and maybe they will help: http://www.nowsms.com/documentation/ProductDocumentation/2_way_sms_support.htm http://support.nowsms.com/discus/messages/1/4520.html In particular, the second link has some examples. Basically, the information from the received SMS is either passed as command-line parameters for a local executable, or as HTTP GET URL (CGI-style/like "submit" on a web form) parameters for an HTTP command. -- Malcolm Now Wireless Support |