Problem receiving long english message

Problem receiving long english message SearchSearch
Author Message
akram alkhateeb
New member
Username: Akram_alkhateeb

Post Number: 1
Registered: 05-2014
Posted on Tuesday, May 27, 2014 - 08:34 pm:   

hi all,
i have a problem receiving long english messages, when i send a long sms message ( over 160 charachter ) from my mobile phone , nowsms recieve it as a greek character set ( i guess not sure tho ). i have unchecked the option of 7bit packing, but still i can receive a proper long english message. there is no problem in sending the long english message. any adivce about this issue ?

regards,
akram alkhateeb
New member
Username: Akram_alkhateeb

Post Number: 2
Registered: 05-2014
Posted on Tuesday, May 27, 2014 - 09:02 pm:   

sorry , ( but still i can't receive a proper long english message. )
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4907
Registered: 08-2008
Posted on Tuesday, May 27, 2014 - 10:37 pm:   

Hi,

You are connected to a provider using SMPP?

It is very strange that you would be able to send long messages in the correct format, not receive. It is very likely the provider's system is simply broken when it comes to long message handling.

To provide advice, we need to see the actual data received, in raw SMPP format. This can be captured either by enabling the SMSDEBUG.LOG in NowSMS (setting on "Serial #" page) or using Wireshark. If using the NowSMS debug log, it is actually the SMPPDEBUG.LOG that we need to see.

Send in another long message to the system and show us the SMPP details from SMPPDEBUG.LOG or Wireshark capture. Post in reply here or email to nowsms@nowsms.com with Attention: Des in the subject line. Also tell us what text should be in the message, so we can better understand if there is any way to recover from the scrambled encoding.

Before doing this, I do have one idea, try manually editing the SMSGW.INI file. Locate the [SMPP - server:port] header in that file that contains settings for the SMPP connection. In that section add GSMPackReceive=Yes. This setting forces NowSMS to treat all received long messages as being encoded in 7-bit packed format. Normally the same format is used for both sending and receiving, but this handles the receive format differently. If this setting does not fix the problem, remove the setting to avoid future confusion.

--
Des
NowSMS Support
akram alkhateeb
New member
Username: Akram_alkhateeb

Post Number: 3
Registered: 05-2014
Posted on Tuesday, May 27, 2014 - 11:26 pm:   

hi Des,

Thanks for your fast reply, i have done a packet capturing after trying to modify the SMSGW.INI ( it didnt work ). here is the wireshark cap file uploaded. appearantly the message comes to nowsms in good format but the application fail to reassimbling it properly. the sms i've sent is ( hi fit hi fit ..... hi fitakram), here is how nowsms reassimbled it :

[SMS-IN]
Sender=+249922601162
PhoneNumber=6631
ModemName=SMPP - 196.29.171.6:6200
Binary=0
Data=4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò4i¡ΣKFÅò41¡ΣKFΔhR£1Π\ræΔ P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b,Ξ: P%¥b4t¡ KùDY4t¡ KùDY4t¡@AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ih£AΠ\rò3ihéÄ&.X6

please check the attached file, it comes in the proper format from the SMPP provider.


thanks,

application/x-pcapng
SMPP.pcapng (2.2 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4909
Registered: 08-2008
Posted on Tuesday, May 27, 2014 - 11:41 pm:   

Indeed, that looks like a very normal format. (The GSMPackReceive=Yes setting that I mentioned should not be used.)

What version of NowSMS are you running?

What settings are defined in SMSGW.INI for that [SMPP - server:port] connection?

--
Des
NowSMS Support
akram alkhateeb
New member
Username: Akram_alkhateeb

Post Number: 4
Registered: 05-2014
Posted on Wednesday, May 28, 2014 - 11:16 am:   

Dear Des,

sorry for the late reply, here is the SMSGW.INI uploaded
application/x-wine-extension-ini
smsgw.INI (0.6 k)


regards,
akram alkhateeb
New member
Username: Akram_alkhateeb

Post Number: 5
Registered: 05-2014
Posted on Wednesday, May 28, 2014 - 11:48 am:   

I'm using NowSMS v5.0
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4910
Registered: 08-2008
Posted on Wednesday, May 28, 2014 - 01:20 pm:   


quote:

I'm using NowSMS v5.0




That would explain the problem.

That version was released in 2003 and is more than 10 years old.

I'm sorry, but you need to use a more modern version, such as the trial versions offered for download on our web site.

--
Des
NowSMS Support
akram alkhateeb
New member
Username: Akram_alkhateeb

Post Number: 6
Registered: 05-2014
Posted on Wednesday, May 28, 2014 - 01:35 pm:   

ok i will try a more modren version. thanks for your support :)

regards,
akram alkhateeb
akram alkhateeb
New member
Username: Akram_alkhateeb

Post Number: 7
Registered: 05-2014
Posted on Wednesday, May 28, 2014 - 03:52 pm:   

Dear Des,
i installed the latest version of nowsms, when i send a long english message it comes in this format :
[SMS-IN]
ModemName=SMPP - 196.29.171.6:6200
Sender=+249922601162
PhoneNumber=6631
UDH=050003670303
Data=D274103A0D32A7E920741A644ED34120741A644ED341E834C89CA683D06990394D07A1D3207 39A0E42A741E6341D844E83CC693A089D0699D374103A0D32A7E920741A644ED341E834C89CA683D 06990394D07A1D320739A0E42A741E6341D844E83CC693A089D0699D374103A0D32A7E920741A644 ED341E834C89CA687D7F2701B
Binary=1

which incoding format is it ?

thanks,
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 4911
Registered: 08-2008
Posted on Wednesday, May 28, 2014 - 04:30 pm:   


quote:

which incoding format is it ?




The short answer = A format that you do not want to try to decode directly. (The long answer, GSM 7-bit packed encoding if Binary=1 and DCS=0 or DCS not present.)

This is one segment of a multipart message. You will want to allow NowSMS to reassemble all of the parts before processing.

The preferred way to process received messages is to define a 2-way command. This is an HTTP or local command that is automatically run every time a message is received. Long messages will be reassembled and Unicode messages will be decoded.

If you prefer to use the file-based interface, we recommend you enable 2-way commands ("Process received messages"), but don't define any commands. Scan for *.SMS files in the SMS-IN directory. Ignore *.IN files as they are waiting further processing.

--
Des
NowSMS Support