SMS-MO Decoding

114 views
Skip to first unread message

Charles Bernard

unread,
Oct 13, 2022, 7:55:40 AM10/13/22
to Jasmin SMS Gateway
Hi, 

it looks to me that Jasmin is not decoding SMS as per GSM -7.

I sent this message:  !$%&*<>@^_~?|{}[]   forcing my phone to encode it in GSM-7; it's been encoded as 210225262a3c3e001b14111b3d3f1b401b281b291b3c1b3e by the SMSC.

When sending it to the HTTP connector, the content is not correct (it looks like it's decoded as ASCII or UTF-8).

2022-10-11 15:51:57 DEBUG    1 Calling http://192.168.99.40:30500/webhooks/receive-sms-mo with args {'id': '45d4b83b-f653-48b8-b294-d48a96171868', 'from': b'999995010002', 'to': b'244101', 'origin-connector': 'zar-par-smsc', 'content': b'!\x02%&*<>\x00\x1b\x14\x11\x1b=?\x1b@\x1b(\x1b)\x1b<\x1b>', 'binary': b'210225262a3c3e001b14111b3d3f1b401b281b291b3c1b3e', 'priority': 1, 'coding': b'\x00'} using POST method.

I checked, 210225262a3c3e001b14111b3d3f1b401b281b291b3c1b3e is the correct way of encoding !$%&*<>@^_~?|{}[] and decoding 210225262a3c3e001b14111b3d3f1b401b281b291b3c1b3e  with this (for example): https://www.developershome.com/sms/gsmAlphabet.asp will get you this:
!$%&*<>@^_~?|{}[]

Charles


Reply all
Reply to author
Forward
0 new messages