As per smpp specifications registered_delivery can only be 0 or 1.

Other values don't exist in smpp, but they are handled by Kannel.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Gabriel Augusto Diaz Zapata
Sent: Tuesday, 23 August, 2011 07:27
To: users@kannel.org
Subject: Kannel and dlr-mask

 

Hello.

Im using Kannel. Im sending some messages with DLR Flag, but the problem is
that always Kannel sent to SMPP the SAME dlr-mask
If we put 2 at dlr-mask, kannel sent 1.. If I put 1, kannel sent 1.

 

My Logs: 

 

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: XML: <<?xml version='1.0'
?><message><submit><da><number>XXXX</number></da><oa><number>XXXX</number></
oa><ud>Prueba Entrega con Mask 2
10:00</ud><vp><delay></delay></vp><from><user>broadcast</user><pass>broadcas
t</pass><account>XXXX</account><dcs><mclass>1</mclass><coding></coding><mwi>
</mwi><statusrequest><compress></compress><alt-dcs></alt-dcs></dcs><dlr-mask
>2</dlr-mask><dlr-url>http://127.0.0.1/Aplicaciones/dlr.asp?phone=%p
<http://127.0.0.1/Aplicaciones/dlr.asp?phone=%25p&text=%25a&receiver=%25P&fl
ag=%25F&smsc_id=%25i>
&text=%a&receiver=%P&flag=%F&smsc_id=%i</dlr-url></statusrequest></from><to>
xxxx</to></submit></message>>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <from> value
<<user>xx</user><pass>xx</pass><account>xx</account><dcs><mclass>1</mclass><
coding></coding><mwi></mwi><statusrequest><compress></compress><alt-dcs></al
t-dcs></dcs><dlr-mask>2</dlr-mask><dlr-url>http://127.0.0.1/Aplicaciones/dlr
.asp?phone=%p
<http://127.0.0.1/Aplicaciones/dlr.asp?phone=%25p&text=%25a&receiver=%25P&fl
ag=%25F&smsc_id=%25i>
&text=%a&receiver=%P&flag=%F&smsc_id=%i</dlr-url></statusrequest>>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <user> value <XX>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <pass> value <XX>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <account> value <XX>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <oa> value
<<number>XX</number>>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <number> value <XX>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <da> value
<<number>X</number>>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <number> value <X>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <to> value <XXXr>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <dcs> value
<<mclass>1</mclass><coding></coding><mwi></mwi><statusrequest><compress></co
mpress><alt-dcs></alt-dcs>>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <mclass> value <1>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <mwi> value <>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <coding> value <>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <compress> value <>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <alt-dcs> value <>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <statusrequest> value
<<compress></compress><alt-dcs></alt-dcs></dcs><dlr-mask>2</dlr-mask><dlr-ur
l>http://127.0.0.1/Aplicaciones/dlr.asp?phone=%p
<http://127.0.0.1/Aplicaciones/dlr.asp?phone=%25p&text=%25a&receiver=%25P&fl
ag=%25F&smsc_id=%25i> &text=%a&receiver=%P&flag=%F&smsc_id=%i</dlr-url>>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <dlr-mask> value <2>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag <dlr-url> value
<http:/127.0.0.1/Aplicaciones/dlr.asp?phone=%p
<http://127.0.0.1/Aplicaciones/dlr.asp?phone=%25p&text=%25a&receiver=%25P&fl
ag=%25F&smsc_id=%25i> &text=%a&receiver=%P&flag=%F&smsc_id=%i>

 

 

Please note that dlr_mask is 2

 

BUT, at SMPP PDU..

 

 

 

2011-08-22 21:59:03 [26439] [16] DEBUG: SMPP PDU 0x19275e0 dump:

2011-08-22 21:59:03 [26439] [16] DEBUG:   type_name: submit_sm

2011-08-22 21:59:03 [26439] [16] DEBUG:   command_id: 4 = 0x00000004

2011-08-22 21:59:03 [26439] [16] DEBUG:   command_status: 0 = 0x00000000

2011-08-22 21:59:03 [26439] [16] DEBUG:   sequence_number: 9 = 0x00000009

2011-08-22 21:59:03 [26439] [16] DEBUG:   service_type: NULL

2011-08-22 21:59:03 [26439] [16] DEBUG:   source_addr_ton: 2 = 0x00000002

2011-08-22 21:59:03 [26439] [16] DEBUG:   source_addr_npi: 1 = 0x00000001

2011-08-22 21:59:03 [26439] [16] DEBUG:   source_addr: "90515"

2011-08-22 21:59:03 [26439] [16] DEBUG:   dest_addr_ton: 2 = 0x00000002

2011-08-22 21:59:03 [26439] [16] DEBUG:   dest_addr_npi: 1 = 0x00000001

2011-08-22 21:59:03 [26439] [16] DEBUG:   destination_addr: "xxxx"

2011-08-22 21:59:03 [26439] [16] DEBUG:   esm_class: 3 = 0x00000003

2011-08-22 21:59:03 [26439] [16] DEBUG:   protocol_id: 0 = 0x00000000

2011-08-22 21:59:03 [26439] [16] DEBUG:   priority_flag: 0 = 0x00000000

2011-08-22 21:59:03 [26439] [16] DEBUG:   schedule_delivery_time: NULL

2011-08-22 21:59:03 [26439] [16] DEBUG:   validity_period: NULL

2011-08-22 21:59:03 [26439] [16] DEBUG:   registered_delivery: 1 =
0x00000001

2011-08-22 21:59:03 [26439] [16] DEBUG:   replace_if_present_flag: 0 =
0x00000000

2011-08-22 21:59:03 [26439] [16] DEBUG:   data_coding: 241 = 0x000000f1

2011-08-22 21:59:03 [26439] [16] DEBUG:   sm_default_msg_id: 0 = 0x00000000

2011-08-22 21:59:03 [26439] [16] DEBUG:   sm_length: 31 = 0x0000001f

2011-08-22 21:59:03 [26439] [16] DEBUG:   short_message:

2011-08-22 21:59:03 [26439] [16] DEBUG:    Octet string at 0x19207d0:

2011-08-22 21:59:03 [26439] [16] DEBUG:      len:  31

2011-08-22 21:59:03 [26439] [16] DEBUG:      size: 32

2011-08-22 21:59:03 [26439] [16] DEBUG:      immutable: 0

 

 

 

Can you help me, please? Are some parameter to change to avoid this error (I
think is a bug )

 

Let me know and thank you in advanced

 

Gabriel

Reply via email to