Skip to content

Bad sms encoding #17

Description

@Regela

I am trying to receive SMS using your program and it usually works correctly. But instead of some messages, it shows bad message. Here is an example:

{"smsc":"10.1.2.11:7777","system_id":"krechet01","system_type":"","source":"PHONE_NUMBER","target":"krechet01","message":"tJM#G.Θ<t¿","deliver_time":"2023-07-13T15:02:52.449030921+03:00"}

I caught this message, I bring it:

Frame 478862: 131 bytes on wire (1048 bits), 147 bytes captured (1176 bits) on interface sshdump, id 0
Linux cooked capture v1
Internet Protocol Version 4, Src: 10.1.2.11, Dst: 10.1.3.164
Transmission Control Protocol, Src Port: 7777, Dst Port: 49876, Seq: 1, Ack: 1, Len: 63
Short Message Peer to Peer, Command: Deliver_sm, Seq: 100, Len: 63
    Length: 63
    Operation: Deliver_sm (0x00000005)
    Sequence #: 100
    Service type: (Default)
    Type of number (originator): Unknown (0x00)
    Numbering plan indicator (originator): Unknown (0x00)
    Originator address: PHONE_NUMPER
    Type of number (recipient): Unknown (0x00)
    Numbering plan indicator (recipient): Unknown (0x00)
    Recipient address: krechet01
    .... ..00 = Messaging mode: Default SMSC mode (0x0)
    ..00 00.. = Message type: Default message type (0x0)
    00.. .... = GSM features: No specific features selected (0x0)
    Protocol id.: 0x08
    Priority level: GSM: None      ANSI-136: Bulk         IS-95: Normal (0x00)
    Scheduled delivery time: Immediate delivery
    Validity period: SMSC default validity period
    .... ..00 = Delivery receipt: No SMSC delivery receipt requested (0x0)
    .... 00.. = Message type: No recipient SME acknowledgement requested (0x0)
    ...0 .... = Intermediate notif: No intermediate notification requested (0x0)
    .... ...0 = Replace: Don't replace (0x0)
    Data coding: SMSC default alphabet (0x00)
    Predefined message: 0
    Message length: 9
    Message bytes: 746573747465787430

Hex:

0000ffff00005e1258c7dd0a9073080045000073f2dc40007f06eef70a01020b0a0103a41e61c2d41aac67609746f175801816a0babe00000101080a033f90f1653986ea0000003f0000000500000000000000640000002b37393136373433363136370000006b726563686574303100000800000000000000097465737474657874301c980000005bddaf6471447936340000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions