Hi Kyriacos,
Find attached another case for a customer sent " 9" (a0 1c) in PDU data ,
was translated by kannel to xA0 xC6 before sending to my Java app
--
Regards
Ahmed Adel
On Mon, Mar 7, 2016 at 3:57 PM, Ahmed Adel <ahmedade...@gmail.com> wrote:
> Thank you Kyriacos,
>
> I have many cases with free text which is completely mis-translated, I can
> send you another case.
>
> meanwhile, what I thought of, is returning that hex to my Java
> application, and do the rest of the translation Java side, do you know how
> can I achieve that?
>
> as you can see in the following screenshot, using a Java library called
> smslib (attached) , I could translate "3118" to "10" , and so was any other
> free text I capture their PDU from kannel logs.
>
>
>
> appreciate your support.
>
>
> --
> Regards
> Ahmed Adel
>
> On Mon, Mar 7, 2016 at 3:09 PM, Kyriacos Sakkas <kyria...@netsmart.com.cy>
> wrote:
>
>> 31 18 => 1Σ according to GSM (
>> http://www.developershome.com/sms/gsmAlphabet.asp) and in kannel log is
>> displayed as octets.
>>
>> The site you mention treats multiple characters in the translation filed
>> as septets, and shifts boundaries, so it is actually translating hex18 as
>> hex30 which is 0, but it is doing this in error.
>>
>> In any case the text in that PDU is "1Σ", possibly whatever was used to
>> inject a 10 as an incoming message has a similar packing/unpacking problem
>> and injected 3118 where you were trying to put in 3130 (10).
>>
>> Hope this helps,
>> Kyriacos
>>
>>
>> On 07/03/2016 13:04, Ahmed Adel wrote:
>>
>> Hi Kyriacos,
>>
>> Thanks for your reply, find attached that full PDU.
>>
>> --
>> Regards
>> Ahmed Adel
>>
>> On Mon, Mar 7, 2016 at 12:42 PM, Kyriacos Sakkas <
>> kyria...@netsmart.com.cy> wrote:
>>
>>> Can you post the full incoming sms pdu?
>>>
>>> Thanks,
>>> Kyriacos
>>>
>>>
>>> On 07/03/2016 11:03, Ahmed Adel wrote:
>>>
>>> Hi, my Kannel installation wrongly translate GSM 7-bit.
>>>
>>> find here my problem described:
>>>
>>> <http://stackoverflow.com/questions/35801244/kannel-sms-gateway-cannot-decode-gsm-7-bit-encoded-message-properly>
>>> http://stackoverflow.com/questions/35801244/kannel-sms-gateway-cannot-decode-gsm-7-bit-encoded-message-properly
>>>
>>> I appreciate if someone can help me.
>>> --
>>> Regards
>>> Ahmed Adel
>>>
>>>
>>> --
>>> Kyriacos Sakkas
>>> Development Team
>>> Netsmart
>>> Tel: + 357 22 452565
>>> Fax: + 357 22 452566
>>> Email: kyria...@netsmart.com.cyhttp://www.netsmart.com.cy
>>>
>>> Taking Business to a New Level!
>>>
>>> ** Confidentiality Notice: The information contained in this email
>>> message may be privileged, confidential and protected from disclosure.
>>> If you are not the intended recipient, any dissemination, distribution,
>>> or copying of this email message is strictly prohibited.
>>> If you think that you have received this email message in error, please
>>> email the sender at kyria...@netsmart.com.cy **
>>>
>>>
>>
>> --
>> Kyriacos Sakkas
>> Development Team
>> Netsmart
>> Tel: + 357 22 452565
>> Fax: + 357 22 452566
>> Email: kyria...@netsmart.com.cyhttp://www.netsmart.com.cy
>>
>> Taking Business to a New Level!
>>
>> ** Confidentiality Notice: The information contained in this email
>> message may be privileged, confidential and protected from disclosure.
>> If you are not the intended recipient, any dissemination, distribution,
>> or copying of this email message is strictly prohibited.
>> If you think that you have received this email message in error, please
>> email the sender at kyria...@netsmart.com.cy **
>>
>>
>
2016-02-25 17:28:52 [15729] [6] DEBUG: SMPP[Smsc50496]: Got PDU:
2016-02-25 17:28:52 [15729] [6] DEBUG: SMPP PDU 0x7f29d8000e40 dump:
2016-02-25 17:28:52 [15729] [6] DEBUG: type_name: submit_sm_resp
2016-02-25 17:28:52 [15729] [6] DEBUG: command_id: 2147483652 = 0x80000004
2016-02-25 17:28:52 [15729] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-25 17:28:52 [15729] [6] DEBUG: sequence_number: 74085 = 0x00012165
2016-02-25 17:28:52 [15729] [6] DEBUG: message_id:
2016-02-25 17:28:52 [15729] [6] DEBUG: Octet string at 0x7f29d8000ff0:
2016-02-25 17:28:52 [15729] [6] DEBUG: len: 35
2016-02-25 17:28:52 [15729] [6] DEBUG: size: 36
2016-02-25 17:28:52 [15729] [6] DEBUG: immutable: 0
2016-02-25 17:28:52 [15729] [6] DEBUG: data: 30 31 2f 2f 34 31 63 66 31 64
62 34 36 39 30 30 01//41cf1db46900
2016-02-25 17:28:52 [15729] [6] DEBUG: data: 62 63 65 38 2f 31 32 33 35 33
38 37 34 36 39 33 bce8/12353874693
2016-02-25 17:28:52 [15729] [6] DEBUG: data: 31 37 35
175
2016-02-25 17:28:52 [15729] [6] DEBUG: Octet string dump ends.
2016-02-25 17:28:52 [15729] [6] DEBUG: SMPP PDU dump ends.
2016-02-25 17:28:52 [15729] [6] DEBUG: SMPP[Smsc50496]: Got PDU:
2016-02-25 17:28:52 [15729] [6] DEBUG: SMPP PDU 0x7f29d8000e40 dump:
2016-02-25 17:28:52 [15729] [6] DEBUG: type_name: submit_sm_resp
2016-02-25 17:28:52 [15729] [6] DEBUG: command_id: 2147483652 = 0x80000004
2016-02-25 17:28:52 [15729] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-25 17:28:52 [15729] [6] DEBUG: sequence_number: 74086 = 0x00012166
2016-02-25 17:28:52 [15729] [6] DEBUG: message_id:
2016-02-25 17:28:52 [15729] [6] DEBUG: Octet string at 0x7f29d8001ee0:
2016-02-25 17:28:52 [15729] [6] DEBUG: len: 35
2016-02-25 17:28:52 [15729] [6] DEBUG: size: 36
2016-02-25 17:28:52 [15729] [6] DEBUG: immutable: 0
2016-02-25 17:28:52 [15729] [6] DEBUG: data: 30 31 2f 2f 34 31 63 66 31 64
62 34 36 39 30 30 01//41cf1db46900
2016-02-25 17:28:52 [15729] [6] DEBUG: data: 62 63 65 39 2f 31 32 33 35 33
38 37 34 36 39 33 bce9/12353874693
2016-02-25 17:28:52 [15729] [6] DEBUG: data: 31 37 35
175
2016-02-25 17:28:52 [15729] [6] DEBUG: Octet string dump ends.
2016-02-25 17:28:52 [15729] [6] DEBUG: SMPP PDU dump ends.
2016-02-25 17:28:59 [15729] [8] DEBUG: boxc_receiver: heartbeat with load value
0 received
2016-02-25 17:29:11 [15729] [6] DEBUG: SMPP[Smsc50496]: Sending enquire link:
2016-02-25 17:29:11 [15729] [6] DEBUG: SMPP PDU 0x7f29d8000e40 dump:
2016-02-25 17:29:11 [15729] [6] DEBUG: type_name: enquire_link
2016-02-25 17:29:11 [15729] [6] DEBUG: command_id: 21 = 0x00000015
2016-02-25 17:29:11 [15729] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-25 17:29:11 [15729] [6] DEBUG: sequence_number: 74087 = 0x00012167
2016-02-25 17:29:11 [15729] [6] DEBUG: SMPP PDU dump ends.
2016-02-25 17:29:11 [15729] [6] DEBUG: SMPP[Smsc50496]: Got PDU:
2016-02-25 17:29:11 [15729] [6] DEBUG: SMPP PDU 0x7f29d8000e40 dump:
2016-02-25 17:29:11 [15729] [6] DEBUG: type_name: enquire_link_resp
2016-02-25 17:29:11 [15729] [6] DEBUG: command_id: 2147483669 = 0x80000015
2016-02-25 17:29:11 [15729] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-25 17:29:11 [15729] [6] DEBUG: sequence_number: 74087 = 0x00012167
2016-02-25 17:29:11 [15729] [6] DEBUG: SMPP PDU dump ends.
2016-02-25 17:29:41 [15729] [6] DEBUG: SMPP[Smsc50496]: Sending enquire link:
2016-02-25 17:29:41 [15729] [6] DEBUG: SMPP PDU 0x7f29d8000e40 dump:
2016-02-25 17:29:41 [15729] [6] DEBUG: type_name: enquire_link
2016-02-25 17:29:41 [15729] [6] DEBUG: command_id: 21 = 0x00000015
2016-02-25 17:29:41 [15729] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-25 17:29:41 [15729] [6] DEBUG: sequence_number: 74088 = 0x00012168
2016-02-25 17:29:41 [15729] [6] DEBUG: SMPP PDU dump ends.
2016-02-25 17:29:42 [15729] [6] DEBUG: SMPP[Smsc50496]: Got PDU:
2016-02-25 17:29:42 [15729] [6] DEBUG: SMPP PDU 0x7f29d8000e40 dump:
2016-02-25 17:29:42 [15729] [6] DEBUG: type_name: enquire_link_resp
2016-02-25 17:29:42 [15729] [6] DEBUG: command_id: 2147483669 = 0x80000015
2016-02-25 17:29:42 [15729] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-25 17:29:42 [15729] [6] DEBUG: sequence_number: 74088 = 0x00012168
2016-02-25 17:29:42 [15729] [6] DEBUG: SMPP PDU dump ends.
2016-02-25 17:30:11 [15729] [6] DEBUG: SMPP[Smsc50496]: Sending enquire link:
2016-02-25 17:30:11 [15729] [6] DEBUG: SMPP PDU 0x7f29d8000e40 dump:
2016-02-25 17:30:11 [15729] [6] DEBUG: type_name: enquire_link
2016-02-25 17:30:11 [15729] [6] DEBUG: command_id: 21 = 0x00000015
2016-02-25 17:30:11 [15729] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-25 17:30:11 [15729] [6] DEBUG: sequence_number: 74089 = 0x00012169
2016-02-25 17:30:11 [15729] [6] DEBUG: SMPP PDU dump ends.
2016-02-25 17:30:11 [15729] [6] DEBUG: SMPP[Smsc50496]: Got PDU:
2016-02-25 17:30:11 [15729] [6] DEBUG: SMPP PDU 0x7f29d8000e40 dump:
2016-02-25 17:30:11 [15729] [6] DEBUG: type_name: enquire_link_resp
2016-02-25 17:30:11 [15729] [6] DEBUG: command_id: 2147483669 = 0x80000015
2016-02-25 17:30:11 [15729] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-25 17:30:11 [15729] [6] DEBUG: sequence_number: 74089 = 0x00012169
2016-02-25 17:30:11 [15729] [6] DEBUG: SMPP PDU dump ends.
2016-02-25 17:30:41 [15729] [6] DEBUG: SMPP[Smsc50496]: Sending enquire link:
2016-02-25 17:30:41 [15729] [6] DEBUG: SMPP PDU 0x7f29d8000e40 dump:
2016-02-25 17:30:41 [15729] [6] DEBUG: type_name: enquire_link
2016-02-25 17:30:41 [15729] [6] DEBUG: command_id: 21 = 0x00000015
2016-02-25 17:30:41 [15729] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-25 17:30:41 [15729] [6] DEBUG: sequence_number: 74090 = 0x0001216a
2016-02-25 17:30:41 [15729] [6] DEBUG: SMPP PDU dump ends.
2016-02-25 17:30:41 [15729] [6] DEBUG: SMPP[Smsc50496]: Got PDU:
2016-02-25 17:30:41 [15729] [6] DEBUG: SMPP PDU 0x7f29d8000e40 dump:
2016-02-25 17:30:41 [15729] [6] DEBUG: type_name: enquire_link_resp
2016-02-25 17:30:41 [15729] [6] DEBUG: command_id: 2147483669 = 0x80000015
2016-02-25 17:30:41 [15729] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-25 17:30:41 [15729] [6] DEBUG: sequence_number: 74090 = 0x0001216a
2016-02-25 17:30:41 [15729] [6] DEBUG: SMPP PDU dump ends.
2016-02-25 17:31:07 [15729] [6] DEBUG: Optional parameter tag (0x0204)
2016-02-25 17:31:07 [15729] [6] DEBUG: Optional parameter length read as 2
2016-02-25 17:31:07 [15729] [6] DEBUG: Optional parameter tag (0x0201)
2016-02-25 17:31:07 [15729] [6] DEBUG: Optional parameter length read as 1
2016-02-25 17:31:07 [15729] [6] DEBUG: SMPP[Smsc50496]: Got PDU:
2016-02-25 17:31:07 [15729] [6] DEBUG: SMPP PDU 0x7f29d8000e40 dump:
2016-02-25 17:31:07 [15729] [6] DEBUG: type_name: deliver_sm
2016-02-25 17:31:07 [15729] [6] DEBUG: command_id: 5 = 0x00000005
2016-02-25 17:31:07 [15729] [6] DEBUG: command_status: 0 = 0x00000000
2016-02-25 17:31:07 [15729] [6] DEBUG: sequence_number: 1748 = 0x000006d4
2016-02-25 17:31:07 [15729] [6] DEBUG: service_type: NULL
2016-02-25 17:31:07 [15729] [6] DEBUG: source_addr_ton: 1 = 0x00000001
2016-02-25 17:31:07 [15729] [6] DEBUG: source_addr_npi: 1 = 0x00000001
2016-02-25 17:31:07 [15729] [6] DEBUG: source_addr: "353879950900"
2016-02-25 17:31:07 [15729] [6] DEBUG: dest_addr_ton: 6 = 0x00000006
2016-02-25 17:31:07 [15729] [6] DEBUG: dest_addr_npi: 9 = 0x00000009
2016-02-25 17:31:07 [15729] [6] DEBUG: destination_addr: "50496"
2016-02-25 17:31:07 [15729] [6] DEBUG: esm_class: 0 = 0x00000000
2016-02-25 17:31:07 [15729] [6] DEBUG: protocol_id: 0 = 0x00000000
2016-02-25 17:31:07 [15729] [6] DEBUG: priority_flag: 0 = 0x00000000
2016-02-25 17:31:07 [15729] [6] DEBUG: schedule_delivery_time: NULL
2016-02-25 17:31:07 [15729] [6] DEBUG: validity_period: NULL
2016-02-25 17:31:07 [15729] [6] DEBUG: registered_delivery: 0 = 0x00000000
2016-02-25 17:31:07 [15729] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000
2016-02-25 17:31:07 [15729] [6] DEBUG: data_coding: 0 = 0x00000000
2016-02-25 17:31:07 [15729] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000
2016-02-25 17:31:07 [15729] [6] DEBUG: sm_length: 2 = 0x00000002
2016-02-25 17:31:07 [15729] [6] DEBUG: short_message:
2016-02-25 17:31:07 [15729] [6] DEBUG: Octet string at 0x7f29d8002080:
2016-02-25 17:31:07 [15729] [6] DEBUG: len: 2
2016-02-25 17:31:07 [15729] [6] DEBUG: size: 3
2016-02-25 17:31:07 [15729] [6] DEBUG: immutable: 0
2016-02-25 17:31:07 [15729] [6] DEBUG: data: a0 1c
..
2016-02-25 17:31:07 [15729] [6] DEBUG: Octet string dump ends.
2016-02-25 17:31:07 [15729] [6] DEBUG: user_message_reference: 255 =
0x000000ff
2016-02-25 17:31:07 [15729] [6] DEBUG: privacy_indicator: 0 = 0x00000000
2016-02-25 17:31:07 [15729] [6] DEBUG: SMPP PDU dump ends.
2016-02-25 17:31:07 [15765] [4] INFO: Starting to service <F> from
<+353879950900> to <50496>
2016-02-25 17:31:07 [15765] [9] DEBUG: Parsing URL
`http://127.0.0.1:9091/services/smsReceiver?msisdn=%2B353879950900&coding=0&content=%A0%C6&smsText=%A0%C6&DCS=-1&charset=ISO-8859-1':
2016-02-25 17:31:07 [15765] [9] DEBUG: Scheme: http://
2016-02-25 17:31:07 [15765] [9] DEBUG: Host: 127.0.0.1
2016-02-25 17:31:07 [15765] [9] DEBUG: Port: 9091
2016-02-25 17:31:07 [15765] [9] DEBUG: Username: (null)
2016-02-25 17:31:07 [15765] [9] DEBUG: Password: (null)
2016-02-25 17:31:07 [15765] [9] DEBUG: Path: /services/smsReceiver
2016-02-25 17:31:07 [15765] [9] DEBUG: Query:
msisdn=%2B353879950900&coding=0&content=%A0%C6&smsText=%A0%C6&DCS=-1&charset=ISO-8859-1
2016-02-25 17:31:07 [15765] [9] DEBUG: Fragment: (null)
2016-02-25 17:31:07 [15765] [9] DEBUG: HTTP: Opening connection to
`127.0.0.1:9091' (fd=28).
2016-02-25 17:31:07 [15765] [9] DEBUG: Socket connecting
2016-02-25 17:31:07 [15765] [8] DEBUG: Get info about connecting socket
2016-02-25 17:31:07 [15765] [8] DEBUG: HTTP: Sending request:
2016-02-25 17:31:07 [15765] [8] DEBUG: Octet string at 0x7f5848000940:
2016-02-25 17:31:07 [15765] [8] DEBUG: len: 204
2016-02-25 17:31:07 [15765] [8] DEBUG: size: 1024
2016-02-25 17:31:07 [15765] [8] DEBUG: immutable: 0
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 47 45 54 20 2f 73 65 72 76 69 63
65 73 2f 73 6d GET /services/sm
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 73 52 65 63 65 69 76 65 72 3f 6d
73 69 73 64 6e sReceiver?msisdn
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 3d 25 32 42 33 35 33 38 37 39 39
35 30 39 30 30 =%2B353879950900
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 26 63 6f 64 69 6e 67 3d 30 26 63
6f 6e 74 65 6e &coding=0&conten
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 74 3d 25 41 30 25 43 36 26 73 6d
73 54 65 78 74 t=%A0%C6&smsText
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 3d 25 41 30 25 43 36 26 44 43 53
3d 2d 31 26 63 =%A0%C6&DCS=-1&c
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 68 61 72 73 65 74 3d 49 53 4f 2d
38 38 35 39 2d harset=ISO-8859-
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 31 20 48 54 54 50 2f 31 2e 31 0d
0a 48 6f 73 74 1 HTTP/1.1..Host
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 3a 20 31 32 37 2e 30 2e 30 2e 31
3a 39 30 39 31 : 127.0.0.1:9091
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 0d 0a 55 73 65 72 2d 41 67 65 6e
74 3a 20 4b 61 ..User-Agent: Ka
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 6e 6e 65 6c 2f 31 2e 34 2e 31 0d
0a 58 2d 4b 61 nnel/1.4.1..X-Ka
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 6e 6e 65 6c 2d 46 72 6f 6d 3a 20
2b 33 35 33 38 nnel-From: +3538
2016-02-25 17:31:07 [15765] [8] DEBUG: data: 37 39 39 35 30 39 30 30 0d 0a 0d
0a 79950900....
2016-02-25 17:31:07 [15765] [8] DEBUG: Octet string dump ends.