2 way sms problem | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through January 22, 2009 ⬆ |
◄ ► |
Author | Message | |||
Ramanuj Sinha New member Username: Ramanujaec Post Number: 1 Registered: 12-2008 |
i am using nokia 6070 as a modem.i configured the comman as http://192.168.100.7:8800/AES/ramanuj.php?sender=@@SENDER@@&message=@@FULLSMS@@ i am unable to parse the sender and text message.My script is <?php header ("Content-Type: text/plain"); if (isset($_REQUEST['sender'])) { if (isset($_REQUEST['message'])) { echo "I recieved your message : " . $_REQUEST['message']; } else { echo "ERROR : 'message' parameter missing\r\n"; } } else { echo "ERROR : 'sender' parameter missing!\r\n"; } ?> when i send an sms to the no which is attached with the modem i m geting "Command not completed.Request returned invalid content type:text/html as an auto reply".plz help me as soon as to figure out the problem. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 324 Registered: 08-2008 |
Hi, Please enable the SMSDEBUG.LOG. (Checkbox option on the "Serial #" page of the configuration dialog.) Send in another message, then open the SMSDEBUG.LOG to view it. This will show you the URL request that NowSMS is making when the message is received, as well as the HTTP response that is coming back from your server. If this does not help tell you what the problem is, then please post the SMSDEBUG.LOG in reply here so that we can help you. As a test ... what happens if you issue the following command from a web browser: http://192.168.100.7:8800/AES/ramanuj.php?sender=123&message=test Do you get an error? If yo do get an error, there may be somthing wrong with eithe the script, or your PHP configuration on the web server, and hopefully this error will provide you with more information as to what is wrong. -- Des NowSMS Support | |||
Ramanuj Sinha New member Username: Ramanujaec Post Number: 2 Registered: 12-2008 |
when i test this http://192.168.100.7:8800/AES/ramanuj.php?sender=123&message=test in my browser it shows no error. my smsdebug.log file is as follows: 11:14:31:765 [10] ModemReceiveMessages: Decoding received message index 11 from message storage SM 11:14:31:765 [10] ModemReceiveMessages: 0791198972004210240C911979702036890000802131114451430DC8329BFD06C9C3EDB0BBAE06 11:14:31:765 [10] ModemReceiveMessages: SMSC address len = 7 11:14:31:765 [10] ModemReceiveMessages: SMSC Address = +919827002401 11:14:31:765 [10] ModemReceiveMessages: SMS Message Type = SMS-DELIVER 11:14:31:765 [10] ModemReceiveMessages: Sender address len = 12 11:14:31:765 [10] ModemReceiveMessages: Sender Address = +919707026398 11:14:31:765 [10] ModemReceiveMessages: PID = 00 11:14:31:765 [10] ModemReceiveMessages: DCS = 00 11:14:31:765 [10] ModemReceiveMessages: Anticipated user data length = 13 11:14:31:765 [10] ModemReceiveMessages: Message = Hello ramanuj 11:14:31:765 [10] ModemReceiveMessages: AT+CMGD=11 11:14:32:328 [9] ThreadProcessInboundSMS: Processing 494205A0.in... 11:14:32:328 [9] GetProgramToExecute: http://192.168.100.7:8800/AES/anuj.php?sender=@@SENDER@@&message=@@FULLSMS@@ 11:14:32:328 [9] GetProgramToExecute: http://192.168.100.7:8800/AES/anuj.php?sender=%2B919707026398&message=Hello%20ra manuj 11:14:32:328 [9] ThreadProcessInboundSMS: Executing http://192.168.100.7:8800/AES/anuj.php?sender=%2B919707026398&message=Hello%20ra manuj 11:14:32:328 [9] RetrieveURL: Retrieving http://192.168.100.7:8800/AES/anuj.php?sender=%2B919707026398&message=Hello%20ra manuj 11:14:32:328 [9] RetrieveURL: Retrieving AES/anuj.php?sender=%2B919707026398&message=Hello%20ramanuj 11:14:32:328 [11] ThreadProcessConnection: Processing connection from 192.168.100.7... 11:14:32:328 [9] RetrieveURL: GET /AES/anuj.php?sender=%2B919707026398&message=Hello%20ramanuj HTTP/1.1 User-Agent: Now SMS/MMS Gateway v2008.06.03 Accept: */* Connection: close Host: 192.168.100.7:8800 11:14:32:328 [11] ThreadProcessConnection: Processing request /AES/anuj.php?sender=%2B919707026398&message=Hello%20ramanuj 11:14:32:328 [9] HttpResponseWait: ioctlsocket indicates end of request 11:14:32:328 [9] RetrieveURL: got success response 11:14:32:328 [9] RetrieveURL: text/html 11:14:32:328 [11] WaitForSocketClose: WinSock reported ioctlsocket complete 11:14:32:328 [11] ThreadProcessConnection: Request processing complete 11:14:32:328 [9] ThreadProcessInboundSMS: Command not completed. Request returned invalid content type: text/html 11:14:32:656 [10] ModemReceiveMessages: OK 11:14:32:656 [10] ThreadProcessModem: Processing 494205A1.req... 11:14:32:656 [10] ThreadProcessModem: OUT: AT+CMGS=77 11:14:33:078 [10] ThreadProcessModem: IN: > 11:14:33:078 [10] ThreadProcessModem: OUT: 0001020C91197970203689000049C377BB1D769341EE371D347EB7E1EC32BD4C768140D272BC5E9E D341F232BD2E7797C9A0B4DB1E66A7C9A0F1DB4D2FBBE plz help me............... | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 333 Registered: 08-2008 |
Hi, This line doesn't seem to be working: header ("Content-Type: text/plain"); The response coming back from the web server is indicating "text/html". Make sure that the header command that sets the content type to "text/plain" is the first line of the script afer the <?php marker. | |||
Ramanuj Sinha New member Username: Ramanujaec Post Number: 3 Registered: 12-2008 |
sir i can not understand your words properly... In my script header command is set to "text/plain". | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 337 Registered: 08-2008 |
What I am saying is that the response coming back from the script is "text/html". So for some reason, the line in the script that says: header ("Content-Type: text/plain"); ... is being ignored. The web server running the script appears to be setting the Content-Type to "text/html" (which is the default), instead of "text/plain". This can happen if this "header" command is not the first command after the <?php marker at the start of the file. If your script looks exactly like you have indicated above, it should be ok. What do you see if you issue the following command in your web browser? http://192.168.100.7:8800/AES/anuj.php?sender=%2B919707026398&message=Hello%20ra manuj It might also help to download the updated version of NowSMS at http://www.nowsms.com/download/nowsms200811.zip. And then let's take a look at the SMSDEBUG.LOG again with that version. This update will not fix any problem ... it will show additional information in the SMSDEBUG.LOG so we can better understand the response that is coming back from the web server, so that we can troubleshoot the problem better. -- Des NowSMS Support |