Tom --

The message ID is handed to you in HEX, 459D58BB -> 1167939771 (hex to
binary).  Your DLR report (delivery receipt) comes with id:1167939771 thus
matching your message.

http://kannel.org/download/1.3.2/userguide-1.3.2/userguide.html#AEN1535

Look at msg-id-type.  This tells kannel about the type of message id the
remote SMSC will give you, and the type of message id it will use in the
return DLR report.

For you, you need to set msg-id-type to 0x01, where submit_sm_resp
message_id is in hex, and deliver_sm is in decimal.

Add this to your smsc config in your kannel config:

msg-id-type 0x01

Reboot (ugh I hate that) kannel.

Make sense?  I recently figured this out too (ok, by reading the mail
archives...)

Beckman

On Tue, 1 Feb 2005 [EMAIL PROTECTED] wrote:

Hello Dave,

thanks for your answer,

Here is a dump of the smpp transactions, hopefully this will shed some
more light on what's going wrong ;
I'm wondering, maybe kannel does not find the right DLR because the DLR
for the message sent via <smsc> is returned to kannel via <smsc-rec>

2005-02-01 16:36:52 [6120] [8] DEBUG: SMPP PDU 0x81b6710 dump:
2005-02-01 16:36:52 [6120] [8] DEBUG:   type_name: submit_sm
[...]
2005-02-01 16:36:52 [6120] [8] DEBUG:   short_message: "Hello world"
2005-02-01 16:36:52 [6120] [8] DEBUG: SMPP PDU dump ends.
2005-02-01 16:36:52 [6120] [8] DEBUG: SMPP[<smsc>]: Got PDU:
2005-02-01 16:36:52 [6120] [8] DEBUG: SMPP PDU 0x81b6710 dump:
2005-02-01 16:36:52 [6120] [8] DEBUG:   type_name: submit_sm_resp
2005-02-01 16:36:52 [6120] [8] DEBUG:   command_id: 2147483652 = 0x80000004
2005-02-01 16:36:52 [6120] [8] DEBUG:   command_status: 0 = 0x00000000
2005-02-01 16:36:52 [6120] [8] DEBUG:   sequence_number: 2 = 0x00000002
2005-02-01 16:36:52 [6120] [8] DEBUG:   message_id: "459D58BB"
2005-02-01 16:36:52 [6120] [8] DEBUG: SMPP PDU dump ends.
[...]
2005-02-01 16:36:57 [6119] [7] DEBUG: SMPP[<smsc-rec>]: Got PDU:
2005-02-01 16:36:57 [6119] [7] DEBUG: SMPP PDU 0x81b71d8 dump:
2005-02-01 16:36:57 [6119] [7] DEBUG:   type_name: deliver_sm
2005-02-01 16:36:57 [6119] [7] DEBUG:   command_id: 5 = 0x00000005
[...]
2005-02-01 16:36:57 [6119] [7] DEBUG:   short_message:
2005-02-01 16:36:57 [6119] [7] DEBUG:    Octet string at 0x81b61b0:
2005-02-01 16:36:57 [6119] [7] DEBUG:      len:  113
2005-02-01 16:36:57 [6119] [7] DEBUG:      size: 114
2005-02-01 16:36:57 [6119] [7] DEBUG:      immutable: 0

[id:1167939771 sub:001 dlvrd:001 submit date: 0502011636 done date:0502011636 stat:DELIVRD err:000 text:Hello world

2005-02-01 16:36:57 [6119] [7] DEBUG: DLR[internal]: Looking for DLR
smsc=<smsc-rec>, ts=1167939771, dst=32XXXXXXXX, type=12005-02-01 16:36:57 
[6119] [7] WARNING: DLR[internal]: DLR for
DST<32XXXXXXXX> not found.2005-02-01 16:36:57 [6119] [7] ERROR: 
SMPP[<smsc-rec>]: got DLR but could
not find message or was not interestedin it ts<1167939771>
dst<32XXXXXXXX>, type<1>

--------------------------------------------------------------------------- Peter Beckman Internet Guy [EMAIL PROTECTED] http://www.purplecow.com/ ---------------------------------------------------------------------------



Reply via email to