Http command for 2-way not working | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through July 14, 2004 ⬆ |
◄ ► |
Author | Message | |||
Jeff Axup New member Username: Axup Post Number: 7 Registered: 04-2004 |
I'm trying to launch an http command for any new incoming sms. on 2-way tab I have command * (all prefixes) http://mydesign.com/dirs/index.pcgi?sender_num=@@SENDER@@&recip_num=@@RECIP@@&sms_prefix=@@SMSPREFIX@@&sms_body=@@SMS@@ the incoming sms's are in the SMS-IN folder stored as .in files, but the server never appears to be using the above url. I have tested the url in a browser with the variables replaced with sample text and the script recieves it just fine. Any ideas on why it wouldn't launch the http request? I am at a university with firewalls, etc, but usually http traffic gets out ok. thx | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 2740 Registered: 10-2002 |
Jeff, Normally I'd suggest enabling the debug log for troubleshooting this type of problem. But from other threads, it looks like you have resolved the issue: http://support.nowsms.com/discus/messages/1/4629.html For others, there are some good general 2-way troubleshooting tips at the following: http://support.nowsms.com/discus/messages/1/4520.html | |||
Jeff Axup New member Username: Axup Post Number: 12 Registered: 04-2004 |
Hi Bryce, i've got the local script problem sorted, but I still can't access an external server to store a record of the transactions. i've enabled dmsdebug.log which shows: 22:02:52:178 [4] ThreadProcessInboundSMS: Processing 40C6EE51.in... 22:02:52:188 [4] GetProgramToExecute: http://myserver.com/research_scripts/dir/index.pcgi?sender_num=%2B61403871234&re cip_num=&sms_body=J%201 22:02:52:188 [4] ThreadProcessInboundSMS: Executing http://myserver.com/research_scripts/dir/index.pcgi?sender_num=%2B61403871234&re cip_num=&sms_body=J%201 22:02:52:188 [4] RetrieveURL: Retrieving http://myserver.com/research_scripts/dir/index.pcgi?sender_num=%2B61403871234&re cip_num=&sms_body=J%201 22:02:52:188 [4] RetrieveURL: Looking up myserver.com There's no actual error being thrown in this log or anywhere else I can find, but it's never hitting the php script on the remote server. I've verified that the url being called in the 'command table' works fine from a normal browser url field. I'm concerned that my university may have a firewall which is blocking http connections. Is there a way to formulate the url in the command table to traverse a firewall? Would it be reasonable that I would be able to telnet to that remote url, access it via a browser, but not through nowsms? thx | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 2787 Registered: 10-2002 |
Hi Jeff, This means that either the DNS lookup failed, or the connection to the server failed. Unfortunately, neither of these are logged to the debug log. If the server is on the local machine, have you tried using 127.0.0.1 as the host name in the URL? I assume that the URL referenced in the debug log works if executed from the browser? -bn |