remove this from your config file

*msg-id-type = 0x00*

0x00 defines long value for the message id, but message id comes larger and
doesn't fit into long. removing the line makes kannel to define a C literal
(string) which fits the long message id


Best Regards,
Mohammed M I Sleem

http://www.abusleem.net  - Personal blog

http://www.freakle.com - The Search Freak <http://www.colorle.com>



On Thu, May 26, 2011 at 11:51 AM, Miranda Weasley <[email protected]
> wrote:

> Hi All,
>
> I need your help to find out the reason of incorrectly saved messaged_id.
>
> I use kannel 1.5.0 with sqlbox.
> I have two smsc_smpp: smsc1 and smsc2.
>
> The both smsc are configured with msg-id-type = 0x00 as they send message
> id in decimal based format in submit_sm_resp and deliver_sm PDUs.
>
> group = smsc
> smsc = smpp
> alt-charset = ISO-8859-1
> connection-timeout = 60
> host = X.X.X.X
> log-file = "/var/log/kannel/smsc1-1.log"
> log-level = 0
> max-pending-submits = 10
> msg-id-type = 0x00
> port = xxxx
> receive-port = xxxx
> smsc-id = smsc1
> smsc-password = xxxx
> smsc-username = xxxx
> system-type = xxxx
> transceiver-mode = 0
>
> group = smsc
> smsc = smpp
> alt-charset = ISO-8859-1
> connection-timeout = 60
> host = X.X.X.X
> log-file = "/var/log/kannel/smsc2-1.log"
> log-level = 0
> max-pending-submits = 10
> msg-id-type = 0x00
> port = xxxx
> smsc-id = smsc2
> smsc-password = xxxx
> smsc-username = xxxx
> system-type = xxxx
> transceiver-mode = 1
>
> Message id from smsc2 is saved correctly message_id=ts:
>
> 2011-05-13 20:29:33 [19825] [8] DEBUG: SMPP[smsc2]: Got PDU:
> 2011-05-13 20:29:33 [19825] [8] DEBUG: SMPP PDU 0x1c00b730 dump:
> 2011-05-13 20:29:33 [19825] [8] DEBUG:   type_name: submit_sm_resp
> 2011-05-13 20:29:33 [19825] [8] DEBUG:   command_id: 2147483652 =
> 0x80000004
> 2011-05-13 20:29:33 [19825] [8] DEBUG:   command_status: 0 = 0x00000000
> 2011-05-13 20:29:33 [19825] [8] DEBUG:   sequence_number: 25 = 0x00000019
> 2011-05-13 20:29:33 [19825] [8] DEBUG:   message_id: "1111051401593152030"
> 2011-05-13 20:29:33 [19825] [8] DEBUG: SMPP PDU dump ends.
> 2011-05-13 20:29:33 [19825] [8] DEBUG: DLR[mysql]: Adding DLR smsc=smsc2,
> ts=1111051401593152030, src=XXXXX, dst=XXXXXXXXXXXX, mask=19, boxc=TEST
> 2011-05-13 20:29:33 [19825] [8] DEBUG: adding DLR entry into database
>
> Whereas message id from smsc1 is saved incorrectly message_id<>ts:
>
> 2011-05-25 04:30:53 [17409] [8] DEBUG: SMPP[smsc1]: Got PDU:
> 2011-05-25 04:30:53 [17409] [8] DEBUG: SMPP PDU 0x1f55ffc0 dump:
> 2011-05-25 04:30:53 [17409] [8] DEBUG:   type_name: submit_sm_resp
> 2011-05-25 04:30:53 [17409] [8] DEBUG:   command_id: 2147483652 =
> 0x80000004
> 2011-05-25 04:30:53 [17409] [8] DEBUG:   command_status: 0 = 0x00000000
> 2011-05-25 04:30:53 [17409] [8] DEBUG:   sequence_number: 4195 = 0x00001063
> 2011-05-25 04:30:53 [17409] [8] DEBUG:   message_id:
> 2011-05-25 04:30:53 [17409] [8] DEBUG:    Octet string at 0x1f541ea0:
> 2011-05-25 04:30:53 [17409] [8] DEBUG:      len:  23
> 2011-05-25 04:30:53 [17409] [8] DEBUG:      size: 24
> 2011-05-25 04:30:53 [17409] [8] DEBUG:      immutable: 0
> 2011-05-25 04:30:53 [17409] [8] DEBUG:      data: 35 39 37 31 33 30 36 32
> 39 37 38 35 33 31 33 36   5971306297853136
> 2011-05-25 04:30:53 [17409] [8] DEBUG:      data: 33 30 39 38 32 35 30
>                          3098250
> 2011-05-25 04:30:53 [17409] [8] DEBUG:    Octet string dump ends.
> 2011-05-25 04:30:53 [17409] [8] DEBUG: SMPP PDU dump ends.
> 2011-05-25 04:30:53 [17409] [8] DEBUG: DLR[mysql]: Adding DLR smsc=smsc1,
> ts=9223372036854775807, src=XXXXX, dst=XXXXXXXXXXXX, mask=19, boxc=TEST
>
> ts=9223372036854775807 but it should be 59713062978531363098250 (by the way
> 9223372036854775807=0x7FFFFFFFFFFFFFFF)
>
> Any suggestion on why is this happening would be greatly appreciated.
>
> Best regards,
> Miranda Weasley
>
>

Reply via email to