2-Way SMS Response Script | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through September 26, 2009 ⬆ |
◄ ► |
Author | Message | |||
Scone Jackson New member Username: Scojackson Post Number: 1 Registered: 09-2009 |
Hi All, We are trying to port our software from Ozeki to NowSMS, but having difficulty getting it to respond. We have the 2-way string setup as follows, with the Command Requires Response box ticked: http://www.(ourwebpage).com/smsproc.php?phoneNumber=@@SENDER@@&receiver=@@RECIP@ @&message=@@FULLSMS@@ Within the PHP script to create a response message, for Ozeki we used the following: echo "{GSMSMS}{}{}{".$phoneNumber."}{".$welcomeMessage."}\n"; I can't seem to figure out what that response script should be to send a message back with NowSMS Here is a log file sample, where we are not getting a response: 0:17:43:609 [2] ModemReceiveMessages: OK 10:17:43:890 [11] ThreadProcessInboundSMS: Processing 4A99C0D0.in... 10:17:43:890 [11] GetProgramToExecute: http://www.(ourwebpage).com/smsproc.php?phoneNumber=@@SENDER@@&receiver=@@RECIP@ @&message=@@FULLSMS@@ 10:17:43:890 [11] GetProgramToExecute: http://www.(ourwebpage).com/smsproc.php?phoneNumber=%2B16027841562&receiver=1246 3426517&message=Mary 10:17:43:890 [11] ThreadProcessInboundSMS: Executing http://www.(ourwebpage).com/smsproc.php?phoneNumber=%2B16027841562&receiver=1246 3426517&message=Mary 10:17:43:890 [11] RetrieveURL: Retrieving http://www.(ourwebpage).com/smsproc.php?phoneNumber=%2B16027841562&receiver=1246 3426517&message=Mary 10:17:43:890 [11] RetrieveURL: Looking up www.(ourwebpage).com 10:17:44:031 [11] RetrieveURL: Retrieving smsproc.php?phoneNumber=%2B16027841562&receiver=12463426517&message=Mary 10:17:44:031 [11] RetrieveURL: GET /smsproc.php?phoneNumber=%2B16027841562&receiver=12463426517&message=Mary HTTP/1.1 User-Agent: Now SMS/MMS Gateway v2009.07.09 Accept: */* Host: www.(ourwebpage).com 10:17:44:187 [11] HttpResponseWait: Ok 10:17:44:187 [11] RetrieveURL: HTTP/1.1 200 OK Date: Tue, 01 Sep 2009 17:17:43 GMT Server: Apache/2.2.10 X-Powered-By: PHP/5.2.10 Content-Length: 0 Content-Type: text/plain 10:17:44:187 [11] RetrieveURL: Saving keep-alive socket 10:17:44:187 [11] RetrieveURL: got success response 10:17:44:187 [11] RetrieveURL: text/plain 10:17:44:187 [11] ThreadProcessInboundSMS: 10:17:44:187 [11] ThreadProcessInboundSMS: Command response is blank, no reply will be sent 10:17:50:187 [11] WaitForSocketClose: WinSock reported ioctlsocket complete Any help would be appreciated! Scone | |||
Scone Jackson New member Username: Scojackson Post Number: 2 Registered: 09-2009 |
Lil help? | |||
Scone Jackson New member Username: Scojackson Post Number: 3 Registered: 09-2009 |
Oh and FYI, the message "Mary" is set to give a response back within our PHP script - this is all tested and working within Ozeki, just not functioning now that we are trying to switch | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1196 Registered: 08-2008 |
Hi, What happens if you enter that same Url into a web browser? The debug log is telling me that your response is empty. Even the Content-Length header generated says 0 bytes. I can see that the MIME type is set to text/plain which is good, but the response itself is empty. -- Des NowSMS Support | |||
Scone Jackson New member Username: Scojackson Post Number: 4 Registered: 09-2009 |
the page just says done, nothing happens... | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 1202 Registered: 08-2008 |
Hi Scone, Apologies for the delay in follow-up. That is strange, because in the log file when NowSMS sends the command, it only receives back an empty response. Especially when I can clearly see "Content-Length: 0" in the response header from the web server, this is telling me that it is empty. From a web browser, try the exact same URL that you see in the SMSDEBUG.LOG. http://www.(ourwebpage).com/smsproc.php?phoneNumber=%2B16027841562&receiver=1246 3426517&message=Mary Maybe the %2B (for the "+") is causing confusion in the PHP script? -- Des NowSMS Support |