problem in sending ucs2 sms

297 views
Skip to first unread message

Majid Ghaffuri

unread,
Jul 12, 2015, 5:40:58 AM7/12/15
to jasmin-sm...@googlegroups.com
Hi jasmin

When i send sms with length of less than 36 charachter and coding parameters set to 8 (UCS2) my mobile received sms correctly but when I test it by a string with a length of more than 35 charachter, charachters after index of 33 is corrupted. This only happens when coding set to 8!
I test this by messages that have more charachters, when charachters is more than 66 charachter, charachters after index of 66 is correctly send to mobile.

It seems that when messages length is more than 36 charachter, the pattern of message is '33char(correct) -> 33char(incorrect) -> 33char(correct) -> ...'
Is there a bug in jasmin gateway?!

zoufou

unread,
Jul 12, 2015, 7:36:09 PM7/12/15
to jasmin-sm...@googlegroups.com, majid...@gmail.com
Can you send a pcap capture file where we can see one correct message and one weird message with the pattern you described ?

Please help me reproduce the issue if it is one.

Majid Ghaffuri

unread,
Jul 13, 2015, 3:53:31 AM7/13/15
to jasmin-sm...@googlegroups.com, majid...@gmail.com
I checked the smpp messages, why my message concat to 33 character?! I use this code for sending this messages ->
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Python example
# http://jasminsms.com
import urllib2
import urllib
import binascii
import sys

reload(sys)
sys.setdefaultencoding('utf8')

baseParams = {'username':'omid', 'password':'omid@123', 'to':'+989212371918', 'content':'', 'from':'6715'}

# Sending UCS2 (UTF-16) arabic content
baseParams['content'] = '12345678901234567890123456789012345678901234567890'.encode('utf-16-be')
baseParams['coding'] = 8
print urllib2.urlopen("http://127.0.0.1:1401/send?%s" % urllib.urlencode(baseParams)).read()



incorrect.pcap
correct.pcap

zoufou

unread,
Jul 13, 2015, 7:04:34 PM7/13/15
to jasmin-sm...@googlegroups.com, majid...@gmail.com
Confirmed bug, will be resolved through this ticket: https://github.com/jookies/jasmin/issues/256
Please subscribe to it so you get notified when issue is resolved.

Thank you !


On Sunday, 12 July 2015 10:40:58 UTC+1, Majid Ghaffuri wrote:

Majid Ghaffuri

unread,
Jul 14, 2015, 2:45:30 AM7/14/15
to jasmin-sm...@googlegroups.com, majid...@gmail.com
Thank you zoufo

zoufou

unread,
Jul 18, 2015, 3:18:17 PM7/18/15
to jasmin-sm...@googlegroups.com, majid...@gmail.com
Dear Majid, issue is fixed in 0.6b37, can you please confirm your problem is fixed by using this release ?

Thanks !

Majid Ghaffuri

unread,
Jul 20, 2015, 5:00:34 AM7/20/15
to jasmin-sm...@googlegroups.com, majid...@gmail.com

Thank's zoufou
My problem is fixed.
Reply all
Reply to author
Forward
0 new messages