SMS 2 way problem

SMS 2 way problem SearchSearch
Author Message
pavan
New member
Username: Pathardepavan

Post Number: 1
Registered: 05-2011
Posted on Tuesday, May 03, 2011 - 07:45 pm:   

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
Posted on Wednesday, May 04, 2011 - 12:55 am:   

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
Posted on Wednesday, May 04, 2011 - 05:58 am:   

i have checked the "command returns reponse text" .
pavan
New member
Username: Pathardepavan

Post Number: 3
Registered: 05-2011
Posted on Wednesday, May 04, 2011 - 06:12 am:   

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
Posted on Wednesday, May 04, 2011 - 06:38 pm:   

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