SMS 2 way problem | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through August 10, 2011 ⬆ |
◄ ► |
Author | Message | |||
pavan New member Username: Pathardepavan Post Number: 1 Registered: 05-2011 |
Hi, I was able to send the sms through java code . But at the receiving side i have a problem. In the local tom cat server i have created a jsp page which reads in the @@SENDER@@ and @@FULLSMS@@ . The command to execute i have given is http://localhost:8080/webs/script/receivesms.jsp?sender=@@SENDER@@&text=@@FULLSM S@@ the receivesms.jsp prints the output as @@SENDER@@@@FULLSMS@@ I dont know what is the problem please help me to receive the sms. whenever we send sms to the modem (GSM MOBILE) there is no alert or some thing from gateway. Please guide me .. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 3140 Registered: 08-2008 |
Hi, Is "Command returns response text" checked in the 2-way command definition? If it is not, any response from the command is ignored. -- Des NowSMS Support | |||
pavan New member Username: Pathardepavan Post Number: 2 Registered: 05-2011 |
i have checked the "command returns reponse text" . | |||
pavan New member Username: Pathardepavan Post Number: 3 Registered: 05-2011 |
Do i have to write some code for the response objet ? .. like res.setContentType("text/plain"); the jsp program is it correct path ? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 3143 Registered: 08-2008 |
Yes, normally you would need to set the content-type as "text/plan" ... but if you did not, you would receive an SMS reply back that says "Command not completed. Request returned invalid content type". Since you are not receiving any reply, I guessed that "command returns response text" was not enabled. Let me ask this ... are you able to send other SMS messages ok? Enable the SMSDEBUG.LOG (checkbox on Serial # page). Send in another message to be processed by your command, and let me see the resulting SMSDEBUG.LOG. -- Des NowSMS Support |