A zero (0) in the sms content when i use php to return response...

A zero (0) in the sms content when i use php to return response... SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through June 24, 2009 » A zero (0) in the sms content when i use php to return response « Previous || Next »
Author Message
karite vert
New member
Username: Karite

Post Number: 2
Registered: 04-2009
Posted on Thursday, April 30, 2009 - 08:04 am:   

my small application consists to return a sms response. i use php language.
my probleme is in the sms received, there are a zero (0) and some empty added at the end of the text message on the phone.

Mys script is :
<?php header("Content-type: text/plain");
echo ".ceci est un test" ;
?>

thank you for your help.
karite vert
New member
Username: Karite

Post Number: 3
Registered: 04-2009
Posted on Thursday, April 30, 2009 - 09:07 am:   

This is the log of SMSOUT
---------------
"
2009-04-29 09:45:48,49F821CB.req,Auto-response to +22652136461,+22652136461,OK -- SMPP - 192.168.3.111:2775,Text="ceci est un test



0

"
----------------------
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 725
Registered: 08-2008
Posted on Friday, May 01, 2009 - 01:54 pm:   

I'm glad you posted the follow-up with information from the SMSOUT log. When I first saw your posting in the other thread, I thought you were referring to a null character, not an actual "0" character.

It looks like a chunked HTTP response that NowSMS is not parsing properly.

Are you running an older version of NowSMS? What version of NowSMS are you using?

I'm pretty sure that NowSMS has supported chunked responses from 2-way commands for quite some time.

Can you enable the SMSDEBUG.LOG and send another message in to your 2-way command. Reply back with the SMSDEBUG.LOG as an attachment ... I'd like to see the response coming back from the 2-way command, as maybe for some reason NowSMS is not able to determine that it is a chunked response.

--
Des
NowSMS Support
karite vert
New member
Username: Karite

Post Number: 4
Registered: 04-2009
Posted on Saturday, May 02, 2009 - 11:48 am:   

Thank you for your help.
I don't find SMSDEBUG.LOG file in the nowsms repertory. How can i enable Debug SMS option.

I use the old version of nowsms : V.5.51 for my tests. But if all the tests are ok, i would take the lattest version. So can you give me the sale contact for to obtain the price.
karite vert
New member
Username: Karite

Post Number: 5
Registered: 04-2009
Posted on Saturday, May 02, 2009 - 11:55 am:   

Thank you for your help.
I don't find SMSDEBUG.LOG file in the nowsms repertory. How can i enable Debug SMS option.

I use the old version of nowsms : V.5.51 for my tests. But if all the tests are ok, i would take the lattest version. So can you give me the sale contact for to obtain the price.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 731
Registered: 08-2008
Posted on Monday, May 04, 2009 - 03:38 pm:   

In that version, to enable SMSDEBUG.LOG, you need to manually edit SMSGW.INI, and under the [SMSGW] header, add a new line with Debug=Yes on it.

Then restart the NowSMS services for the setting to take effect.

I did some searching on the discussion board here for posts that mention chunking, and I found the following: http://support.nowsms.com/discus/messages/1/10965.html

That sounds like the same problem that you are having. I'm not sure if the link to the old patch is still valid or not, but that might make a difference.

For sales info, use the contact info at http://www.nowsms.com/contact.htm ... call, e-mail, or fill in the form on the web page.

--
Des
NowSMS Support
karite vert
New member
Username: Karite

Post Number: 6
Registered: 04-2009
Posted on Wednesday, May 06, 2009 - 01:04 pm:   

Thans for your help. It's ok now. I used the patch available on www.nowsms.com/download/latestpatch.zip to fixe the problem.

Login Login / Register Logout Logout Search Last 30 Days Topics Topics