Re: DLR but could not find message or was not interested Issue

2020-05-12 Thread lbrezs...@gmx.co.uk

Are the messages in questions are "oversized"? We are experiencing the
same issue, and had determined that the issue is connected to the
message length and how kannel is handling multipart messages.

When sending a concatenated MT, kannel keeps normally a reference for
the first part only and ignores the other parts. If provider sends you
dlrs for parts other then 1st, kannel cannot mach.

Regards,

Lelik.

On 2020-05-11 23:30, Wan Md Arif Noor Bin. Wan Nizam wrote:


Hi,

Thanks for the reply, tried it and same issue. Just to note that the
issue is pretty random but happening regularly.

Logs :

2020-05-12 11:16:34 [SMSC:6SeriesSHT] [from:62033] [to:601]
[msg:154:RM0 <#> Kod WhatsApp Anda: 664-190..Anda boleh ketik pautan
ini untuk mengesahkan nombor anda: v.whatsapp.com/..Jangan kongsikan
kod ini.4sgLq1p5sV6] [FID:1A7A1C61]

2020-05-12 11:22:57 [SMSC:6SeriesSHT] [from:+601] [to:62033]
[msg:122:id:0444210273 sub:000 dlvrd:000 submit date:2005121116 done
date:2005121122 stat:DELIVRD err:000 text:RM0 <#> Kod WhatsApp]
[FID:1A7A1C61]

2020-05-12 11:22:57 [85037] [7] ERROR: SMPP[6SeriesSHT]: got DLR but
could not find message or was not interested in it id<444210273>
dst<601>, type<1>

Best Regards.

Arif Noor

*From:* Gorki Alfaro 
*Sent:* Tuesday, May 12, 2020 11:19 AM
*To:* Wan Md Arif Noor Bin. Wan Nizam 
*Cc:* kannel users@kannel.org 
*Subject:* Re: DLR but could not find message or was not interested Issue

Hello

Try to changing your msg-id-type = 0x01

Regards

Gorki

On Mon, May 11, 2020 at 9:12 PM Wan Md Arif Noor Bin. Wan Nizam
mailto:md.a...@forest-interactive.com>> wrote:

Hello Guys,

I’ve been struggling to find what is the issue with the DLR which
regularly getting error “DLR but could not find message or was not
interested”. From the debug logs it looks just fine but from the
access logs it becomes like those normal MO instead of DN.

38029:2020-05-12 05:07:42 [1640] [9] DEBUG: SMPP[6SeriesSHT]: Got PDU:

38030:2020-05-12 05:07:42 [1640] [9] DEBUG: SMPP PDU
0x7f087c014d70 dump:

38031:2020-05-12 05:07:42 [1640] [9] DEBUG:   type_name: deliver_sm

38032:2020-05-12 05:07:42 [1640] [9] DEBUG:   command_id: 5 =
0x0005

38033:2020-05-12 05:07:42 [1640] [9] DEBUG:   command_status: 0 =
0x

38034:2020-05-12 05:07:42 [1640] [9] DEBUG:   sequence_number:
253886944 = 0x0f2201e0

38035:2020-05-12 05:07:42 [1640] [9] DEBUG:   service_type: NULL

38036:2020-05-12 05:07:42 [1640] [9] DEBUG:   source_addr_ton: 1 =
0x0001

38037:2020-05-12 05:07:42 [1640] [9] DEBUG:   source_addr_npi: 1 =
0x0001

38038:2020-05-12 05:07:42 [1640] [9] DEBUG:   source_addr:
"601"

38039:2020-05-12 05:07:42 [1640] [9] DEBUG:   dest_addr_ton: 0 =
0x

38040:2020-05-12 05:07:42 [1640] [9] DEBUG:   dest_addr_npi: 1 =
0x0001

38041:2020-05-12 05:07:42 [1640] [9] DEBUG:   destination_addr:
"63660"

38042:2020-05-12 05:07:42 [1640] [9] DEBUG:   esm_class: 4 =
0x0004

38043:2020-05-12 05:07:42 [1640] [9] DEBUG:   protocol_id: 0 =
0x

38044:2020-05-12 05:07:42 [1640] [9] DEBUG:   priority_flag: 0 =
0x

38045:2020-05-12 05:07:42 [1640] [9] DEBUG:
schedule_delivery_time: NULL

38046:2020-05-12 05:07:42 [1640] [9] DEBUG:   validity_period: NULL

38047:2020-05-12 05:07:42 [1640] [9] DEBUG: registered_delivery: 0
= 0x

38048:2020-05-12 05:07:42 [1640] [9] DEBUG:
replace_if_present_flag: 0 = 0x

38049:2020-05-12 05:07:42 [1640] [9] DEBUG:   data_coding: 0 =
0x

38050:2020-05-12 05:07:42 [1640] [9] DEBUG:   sm_default_msg_id: 0
= 0x

38051:2020-05-12 05:07:42 [1640] [9] DEBUG:   sm_length: 122 =
0x007a

38052:2020-05-12 05:07:42 [1640] [9] DEBUG:   short_message:

38053:2020-05-12 05:07:42 [1640] [9] DEBUG:    Octet string at
0x7f087c014330:

38054:2020-05-12 05:07:42 [1640] [9] DEBUG:  len:  122

38055:2020-05-12 05:07:42 [1640] [9] DEBUG:  size: 123

38056:2020-05-12 05:07:42 [1640] [9] DEBUG:  immutable: 0

38057:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 69 64 3a 30
34 31 36 32 39 33 38 30 38 20 73 75 id:0416293808 su

38058:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 62 3a 30 30
30 20 64 6c 76 72 64 3a 30 30 30 20   b:000 dlvrd:000

38059:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 73 75 62 6d
69 74 20 64 61 74 65 3a 32 30 30 35   submit date:2005

38060:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 31 32 30 35
30 37 20 64 6f 6e 65 20 64 61 74 65   120507 done date

38061:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 3a 32 30 30
35 31 32 30 35 30 37 20 73 74 61 74 :2005120507 stat

38062:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 3a 55 4e 44
45 4c 49 56 20 65

RE: DLR but could not find message or was not interested Issue

2020-05-11 Thread Wan Md Arif Noor Bin. Wan Nizam
Hi,

Thanks for the reply, tried it and same issue. Just to note that the issue is 
pretty random but happening regularly.

Logs :

2020-05-12 11:16:34 [SMSC:6SeriesSHT] [from:62033] [to:601] 
[msg:154:RM0 <#> Kod WhatsApp Anda: 664-190..Anda boleh ketik pautan ini untuk 
mengesahkan nombor anda: v.whatsapp.com/..Jangan kongsikan kod ini.4sgLq1p5sV6] 
[FID:1A7A1C61]
2020-05-12 11:22:57 [SMSC:6SeriesSHT] [from:+601] [to:62033] 
[msg:122:id:0444210273 sub:000 dlvrd:000 submit date:2005121116 done 
date:2005121122 stat:DELIVRD err:000 text:RM0 <#> Kod WhatsApp] [FID:1A7A1C61]

2020-05-12 11:22:57 [85037] [7] ERROR: SMPP[6SeriesSHT]: got DLR but could not 
find message or was not interested in it id<444210273> dst<601>, type<1>

Best Regards.
Arif Noor

From: Gorki Alfaro 
Sent: Tuesday, May 12, 2020 11:19 AM
To: Wan Md Arif Noor Bin. Wan Nizam 
Cc: kannel users@kannel.org 
Subject: Re: DLR but could not find message or was not interested Issue

Hello
Try to changing your msg-id-type = 0x01
Regards
Gorki

On Mon, May 11, 2020 at 9:12 PM Wan Md Arif Noor Bin. Wan Nizam 
mailto:md.a...@forest-interactive.com>> wrote:
Hello Guys,

I’ve been struggling to find what is the issue with the DLR which regularly 
getting error “DLR but could not find message or was not interested”. From the 
debug logs it looks just fine but from the access logs it becomes like those 
normal MO instead of DN.

38029:2020-05-12 05:07:42 [1640] [9] DEBUG: SMPP[6SeriesSHT]: Got PDU:
38030:2020-05-12 05:07:42 [1640] [9] DEBUG: SMPP PDU 0x7f087c014d70 dump:
38031:2020-05-12 05:07:42 [1640] [9] DEBUG:   type_name: deliver_sm
38032:2020-05-12 05:07:42 [1640] [9] DEBUG:   command_id: 5 = 0x0005
38033:2020-05-12 05:07:42 [1640] [9] DEBUG:   command_status: 0 = 0x
38034:2020-05-12 05:07:42 [1640] [9] DEBUG:   sequence_number: 253886944 = 
0x0f2201e0
38035:2020-05-12 05:07:42 [1640] [9] DEBUG:   service_type: NULL
38036:2020-05-12 05:07:42 [1640] [9] DEBUG:   source_addr_ton: 1 = 0x0001
38037:2020-05-12 05:07:42 [1640] [9] DEBUG:   source_addr_npi: 1 = 0x0001
38038:2020-05-12 05:07:42 [1640] [9] DEBUG:   source_addr: "601"
38039:2020-05-12 05:07:42 [1640] [9] DEBUG:   dest_addr_ton: 0 = 0x
38040:2020-05-12 05:07:42 [1640] [9] DEBUG:   dest_addr_npi: 1 = 0x0001
38041:2020-05-12 05:07:42 [1640] [9] DEBUG:   destination_addr: "63660"
38042:2020-05-12 05:07:42 [1640] [9] DEBUG:   esm_class: 4 = 0x0004
38043:2020-05-12 05:07:42 [1640] [9] DEBUG:   protocol_id: 0 = 0x
38044:2020-05-12 05:07:42 [1640] [9] DEBUG:   priority_flag: 0 = 0x
38045:2020-05-12 05:07:42 [1640] [9] DEBUG:   schedule_delivery_time: NULL
38046:2020-05-12 05:07:42 [1640] [9] DEBUG:   validity_period: NULL
38047:2020-05-12 05:07:42 [1640] [9] DEBUG:   registered_delivery: 0 = 
0x
38048:2020-05-12 05:07:42 [1640] [9] DEBUG:   replace_if_present_flag: 0 = 
0x
38049:2020-05-12 05:07:42 [1640] [9] DEBUG:   data_coding: 0 = 0x
38050:2020-05-12 05:07:42 [1640] [9] DEBUG:   sm_default_msg_id: 0 = 0x
38051:2020-05-12 05:07:42 [1640] [9] DEBUG:   sm_length: 122 = 0x007a
38052:2020-05-12 05:07:42 [1640] [9] DEBUG:   short_message:
38053:2020-05-12 05:07:42 [1640] [9] DEBUG:Octet string at 0x7f087c014330:
38054:2020-05-12 05:07:42 [1640] [9] DEBUG:  len:  122
38055:2020-05-12 05:07:42 [1640] [9] DEBUG:  size: 123
38056:2020-05-12 05:07:42 [1640] [9] DEBUG:  immutable: 0
38057:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 69 64 3a 30 34 31 36 32 
39 33 38 30 38 20 73 75   id:0416293808 su
38058:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 62 3a 30 30 30 20 64 6c 
76 72 64 3a 30 30 30 20   b:000 dlvrd:000
38059:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 73 75 62 6d 69 74 20 64 
61 74 65 3a 32 30 30 35   submit date:2005
38060:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 31 32 30 35 30 37 20 64 
6f 6e 65 20 64 61 74 65   120507 done date
38061:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 3a 32 30 30 35 31 32 30 
35 30 37 20 73 74 61 74   :2005120507 stat
38062:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 3a 55 4e 44 45 4c 49 56 
20 65 72 72 3a 32 34 35   :UNDELIV err:245
38063:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 20 74 65 78 74 3a 52 4d 
30 2e 30 30 20 3a 20 59text:RM0.00 : Y
38064:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 6f 75 72 20 53 68 6f 70 
65 65 our Shopee
38065:2020-05-12 05:07:42 [1640] [9] DEBUG:Octet string dump ends.
38066:2020-05-12 05:07:42 [1640] [9] DEBUG:   message_state: 5 = 0x0005
38067:2020-05-12 05:07:42 [1640] [9] DEBUG:   receipted_message_id: "18D023B0"
38068:2020-05-12 05:07:42 [1640] [9] DEBUG: SMPP PDU dump ends.
38069:2020-05-12 05:07:42 [1640] [9] DEBUG: SMPP[6SeriesSHT] handle_pdu, got DLR
38070:2020-05-12 05:07:42 [1640] [9] DEBUG: DLR[mysql]: Looking for DLR 
smsc=6SeriesSHT, ts=18D023B0, 

Re: DLR but could not find message or was not interested Issue

2020-05-11 Thread Gorki Alfaro
Hello
Try to changing your msg-id-type = 0x01
Regards
Gorki

On Mon, May 11, 2020 at 9:12 PM Wan Md Arif Noor Bin. Wan Nizam <
md.a...@forest-interactive.com> wrote:

> Hello Guys,
>
>
>
> I’ve been struggling to find what is the issue with the DLR which
> regularly getting error “DLR but could not find message or was not
> interested”. From the debug logs it looks just fine but from the access
> logs it becomes like those normal MO instead of DN.
>
>
>
> 38029:2020-05-12 05:07:42 [1640] [9] DEBUG: SMPP[6SeriesSHT]: Got PDU:
>
> 38030:2020-05-12 05:07:42 [1640] [9] DEBUG: SMPP PDU 0x7f087c014d70 dump:
>
> 38031:2020-05-12 05:07:42 [1640] [9] DEBUG:   type_name: deliver_sm
>
> 38032:2020-05-12 05:07:42 [1640] [9] DEBUG:   command_id: 5 = 0x0005
>
> 38033:2020-05-12 05:07:42 [1640] [9] DEBUG:   command_status: 0 =
> 0x
>
> 38034:2020-05-12 05:07:42 [1640] [9] DEBUG:   sequence_number: 253886944 =
> 0x0f2201e0
>
> 38035:2020-05-12 05:07:42 [1640] [9] DEBUG:   service_type: NULL
>
> 38036:2020-05-12 05:07:42 [1640] [9] DEBUG:   source_addr_ton: 1 =
> 0x0001
>
> 38037:2020-05-12 05:07:42 [1640] [9] DEBUG:   source_addr_npi: 1 =
> 0x0001
>
> 38038:2020-05-12 05:07:42 [1640] [9] DEBUG:   source_addr: "601"
>
> 38039:2020-05-12 05:07:42 [1640] [9] DEBUG:   dest_addr_ton: 0 = 0x
>
> 38040:2020-05-12 05:07:42 [1640] [9] DEBUG:   dest_addr_npi: 1 = 0x0001
>
> 38041:2020-05-12 05:07:42 [1640] [9] DEBUG:   destination_addr: "63660"
>
> 38042:2020-05-12 05:07:42 [1640] [9] DEBUG:   esm_class: 4 = 0x0004
>
> 38043:2020-05-12 05:07:42 [1640] [9] DEBUG:   protocol_id: 0 = 0x
>
> 38044:2020-05-12 05:07:42 [1640] [9] DEBUG:   priority_flag: 0 = 0x
>
> 38045:2020-05-12 05:07:42 [1640] [9] DEBUG:   schedule_delivery_time: NULL
>
> 38046:2020-05-12 05:07:42 [1640] [9] DEBUG:   validity_period: NULL
>
> 38047:2020-05-12 05:07:42 [1640] [9] DEBUG:   registered_delivery: 0 =
> 0x
>
> 38048:2020-05-12 05:07:42 [1640] [9] DEBUG:   replace_if_present_flag: 0 =
> 0x
>
> 38049:2020-05-12 05:07:42 [1640] [9] DEBUG:   data_coding: 0 = 0x
>
> 38050:2020-05-12 05:07:42 [1640] [9] DEBUG:   sm_default_msg_id: 0 =
> 0x
>
> 38051:2020-05-12 05:07:42 [1640] [9] DEBUG:   sm_length: 122 = 0x007a
>
> 38052:2020-05-12 05:07:42 [1640] [9] DEBUG:   short_message:
>
> 38053:2020-05-12 05:07:42 [1640] [9] DEBUG:Octet string at
> 0x7f087c014330:
>
> 38054:2020-05-12 05:07:42 [1640] [9] DEBUG:  len:  122
>
> 38055:2020-05-12 05:07:42 [1640] [9] DEBUG:  size: 123
>
> 38056:2020-05-12 05:07:42 [1640] [9] DEBUG:  immutable: 0
>
> 38057:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 69 64 3a 30 34 31
> 36 32 39 33 38 30 38 20 73 75   id:0416293808 su
>
> 38058:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 62 3a 30 30 30 20
> 64 6c 76 72 64 3a 30 30 30 20   b:000 dlvrd:000
>
> 38059:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 73 75 62 6d 69 74
> 20 64 61 74 65 3a 32 30 30 35   submit date:2005
>
> 38060:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 31 32 30 35 30 37
> 20 64 6f 6e 65 20 64 61 74 65   120507 done date
>
> 38061:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 3a 32 30 30 35 31
> 32 30 35 30 37 20 73 74 61 74   :2005120507 stat
>
> 38062:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 3a 55 4e 44 45 4c
> 49 56 20 65 72 72 3a 32 34 35   :UNDELIV err:245
>
> 38063:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 20 74 65 78 74 3a
> 52 4d 30 2e 30 30 20 3a 20 59text:RM0.00 : Y
>
> 38064:2020-05-12 05:07:42 [1640] [9] DEBUG:  data: 6f 75 72 20 53 68
> 6f 70 65 65 our Shopee
>
> 38065:2020-05-12 05:07:42 [1640] [9] DEBUG:Octet string dump ends.
>
> 38066:2020-05-12 05:07:42 [1640] [9] DEBUG:   message_state: 5 = 0x0005
>
> 38067:2020-05-12 05:07:42 [1640] [9] DEBUG:   receipted_message_id: "
> 18D023B0"
>
> 38068:2020-05-12 05:07:42 [1640] [9] DEBUG: SMPP PDU dump ends.
>
> 38069:2020-05-12 05:07:42 [1640] [9] DEBUG: SMPP[6SeriesSHT] handle_pdu,
> got DLR
>
> 38070:2020-05-12 05:07:42 [1640] [9] DEBUG: DLR[mysql]: Looking for DLR
> smsc=6SeriesSHT, ts=18D023B0, dst=601, type=2
>
> 38071:2020-05-12 05:07:42 [1640] [9] DEBUG: sql: SELECT `mask`, `service`,
> `url`, `source`, `destination`, `boxcid` FROM `smpp_dlr` WHERE `smsc`=? AND
> `ts`=?  LIMIT 1
>
> 38072:2020-05-12 05:07:42 [1640] [9] DEBUG: column=mask buffer_type=3
> max_length=0 length=10
>
> 38073:2020-05-12 05:07:42 [1640] [9] DEBUG: column=service buffer_type=253
> max_length=0 length=40
>
> 38074:2020-05-12 05:07:42 [1640] [9] DEBUG: column=url buffer_type=253
> max_length=0 length=255
>
> 38075:2020-05-12 05:07:42 [1640] [9] DEBUG: column=source buffer_type=253
> max_length=0 length=40
>
> 38076:2020-05-12 05:07:42 [1640] [9] DEBUG: column=destination
> buffer_type=253 max_length=0 length=40
>
> 38077:2020-05-12 05:07:42 [1640] [9] DEBUG: column=boxcid buffer_type=253
> max_length=0 length=40
>
> 38078:2020-05-12 

Re: DLR-MO store increases

2019-11-19 Thread Amritesh Rachelwar
Hello vinayak,

Good to see you after a while. I was trying to contact you regarding
opensmpp box with DND feature. Let me know if you have it.


I have also found this issues, when we send MT SMS, in store it goes like
MO SMS instead of MT correct?

I had fixed this issues. Let me know if I understood it correctly.

Regards,
Amritesh

On Wed, Nov 13, 2019, 14:45 vinayak mv  wrote:

> Hi,
>
> When we are sending MT SMS about 1 lakhs or more , the kannel store is
> filled with DLR-MO messages and these messages are routing back to SQLBOX
> or OPENSMPPBOX at a slow ratio at that time tps is reduced but when i
> restart the SQLBOX or OPENSMPPBOX the size of the store gets decreases
> rapidly coz all the DLR are routed back to SQLBOX.Does anyone know this
> strange behaviour?? And how to overcome
>
> --
> Thanks & Regards,
> Vinayak
>
> ==
>
> *Confucius* once said,
> "*Life is really simple, but we insist on making it complicated.*"
>
> *Leonardo da Vinci* once said,
> "*Simplicity is the ultimate sophistication.*"
>
> *Albert Einstein* once said,
> "*Everything should be made as simple as possible, but not simpler.*"
>
>
>


Re: DLR-MO store increases

2019-11-13 Thread vinayak mv
Hi,
Im talking about the kannel storage, not about the dlr table and i didnt
flush the database.store increases to more than 2lakhs MO-DLR






On Wed, 13 Nov 2019 at 3:39 PM, Web Min  wrote:

> How size is the DLR Table? And did you try to empty the DLR it?
>
> On Wed, Nov 13, 2019 at 12:15 PM vinayak mv 
> wrote:
>
>> Hi,
>>
>> When we are sending MT SMS about 1 lakhs or more , the kannel store is
>> filled with DLR-MO messages and these messages are routing back to SQLBOX
>> or OPENSMPPBOX at a slow ratio at that time tps is reduced but when i
>> restart the SQLBOX or OPENSMPPBOX the size of the store gets decreases
>> rapidly coz all the DLR are routed back to SQLBOX.Does anyone know this
>> strange behaviour?? And how to overcome
>>
>> --
>> Thanks & Regards,
>> Vinayak
>>
>> ==
>>
>> *Confucius* once said,
>> "*Life is really simple, but we insist on making it complicated.*"
>>
>> *Leonardo da Vinci* once said,
>> "*Simplicity is the ultimate sophistication.*"
>>
>> *Albert Einstein* once said,
>> "*Everything should be made as simple as possible, but not simpler.*"
>>
>>
>> --
Thanks & Regards,
Vinayak

==

*Confucius* once said,
"*Life is really simple, but we insist on making it complicated.*"

*Leonardo da Vinci* once said,
"*Simplicity is the ultimate sophistication.*"

*Albert Einstein* once said,
"*Everything should be made as simple as possible, but not simpler.*"


Re: DLR-MO store increases

2019-11-13 Thread Web Min
How size is the DLR Table? And did you try to empty the DLR it?

On Wed, Nov 13, 2019 at 12:15 PM vinayak mv 
wrote:

> Hi,
>
> When we are sending MT SMS about 1 lakhs or more , the kannel store is
> filled with DLR-MO messages and these messages are routing back to SQLBOX
> or OPENSMPPBOX at a slow ratio at that time tps is reduced but when i
> restart the SQLBOX or OPENSMPPBOX the size of the store gets decreases
> rapidly coz all the DLR are routed back to SQLBOX.Does anyone know this
> strange behaviour?? And how to overcome
>
> --
> Thanks & Regards,
> Vinayak
>
> ==
>
> *Confucius* once said,
> "*Life is really simple, but we insist on making it complicated.*"
>
> *Leonardo da Vinci* once said,
> "*Simplicity is the ultimate sophistication.*"
>
> *Albert Einstein* once said,
> "*Everything should be made as simple as possible, but not simpler.*"
>
>
>


Re: DLR queued, using mysql storage

2018-01-17 Thread Gert Tamm

Hello.

You need to empty the database table, what is holding your DLR's. 
kannel_dlr is the table.


1/17/2018 15:16 christopher kamutumwa kirjutas:

Hello support,

Am wondering how to delete/flush queued dlrs as its showing in my 
status and seems to be slowing down things


DLR: received 1109, sent 0
DLR: inbound (0.51,0.51,0.54) msg/sec, outbound (0.00,0.00,0.00) msg/sec
DLR: 2339007 queued, using mysql storage

your assistance would be of greatvalue

Chris


--
Tervitades/Best Wishes,
Gert Tamm
Süsteemiadministraator/System administrator
E-mail: g...@messenger.ee
Direct Messenger OÜ



Re: DLR - SMSC emi

2017-03-04 Thread Sayed Hadi Rastgou Haghi
Dear Filipe,

Are you use same smsc-id for 2 bearerboxes?

You can use REDIS DLR storage ( it's in memory key-value storage and vary
fast)

Redis can run on both servers as cluster or one of them or third server :)

I think you should solve your storage connection and bearerbox need that to
work.


Can you have one bearer box with 2 connections to instead of  2 separate
bearerboxes?

Regards,
Hadi

On Thu, Feb 23, 2017 at 12:26 AM, Filipe Carvalho <
filipe.f.carva...@gmail.com> wrote:

>
>
> Hello Kannel Users,
>
> I've two bearerboxes (lets call them A and B and they are different
> servers) connected to the same SMSC, and configured dlr-storage as
> internal.
>
> But SMSC does not send the DLR always for the same bearerbox which
> sends the SMS. For example, bearerbox A send the SMS and bearerbox B
> receive the DLR. Off course in this case bearerbox B does not find DLR
> record and therefore I lose the DLR information.
>
> To overcome this problem I try to change DLR from internal to DB
> (pgsql), but it seams if the connection to DB fails, bearerbox stop send
> SMS. I need bearerbox always sends the messages even if it can not
> connect to DB to get/update DLR.
>
> Can you help me find a way to have DLR consistent but if the
> connection to the DB fail do not compromise the SMS delivery?
>
> Best Regards,
> Filipe
>
>
>
>


-- 
Sincerely,

Sayed Hadi Rastgou Haghi


Re: DLR of Rejected SMS

2016-10-13 Thread Milan P. Stanic
On Thu, 2016-10-13 at 15:06, vinayak mv wrote:
> You can also use sqlbox which logs all sms mo mt and dlr

I know that but I prefer to have full control of the message flow
end-to-end in my program than to rely on sqlbox (or any other box)
especially for (near to) realtime message processing.

> On Thursday 13 October 2016, Milan P. Stanic  wrote:
> 
> > On Thu, 2016-10-13 at 12:59, ahmed qadeer wrote:
> > > Can you please let me know how can we get DLR's of SMS being rejected due
> > > to invalid number on SMSC level as operator is rejecting the SMS by the
> > > following error
> > >
> > >
> > > SMSC returned error code 0x009b (Unknown/Reserved) in response to
> > > submit_sm PDU
> > >
> > > and due to which the sender awaits delivery of the sent message
> > >
> > > Is there any workaround to send failed delivery to the message sender
> >
> > Please, read carefully userguide and especially section about delivery
> > report. After that describe your configuration and the problem you have.
> > Then you can expect that the someone could answer your question.
> > Anyway, from my experience best way to handle SMS with Kannel is to
> > write small program in scripting languages of your preference and
> > knowledge. I wrote some simple skripts in perl ten years ago that worked
> > (and I think still works) for SMS parking payment in one country.
> >
> >
> 
> -- 
> Thanks & Regards,
> Vinayak
> 
> ==
> 
> *Confucius* once said,
> "*Life is really simple, but we insist on making it complicated.*"
> 
> *Leonardo da Vinci* once said,
> "*Simplicity is the ultimate sophistication.*"
> 
> *Albert Einstein* once said,
> "*Everything should be made as simple as possible, but not simpler.*"



Re: DLR of Rejected SMS

2016-10-13 Thread vinayak mv
You can also use sqlbox which logs all sms mo mt and dlr

On Thursday 13 October 2016, Milan P. Stanic  wrote:

> On Thu, 2016-10-13 at 12:59, ahmed qadeer wrote:
> > Can you please let me know how can we get DLR's of SMS being rejected due
> > to invalid number on SMSC level as operator is rejecting the SMS by the
> > following error
> >
> >
> > SMSC returned error code 0x009b (Unknown/Reserved) in response to
> > submit_sm PDU
> >
> > and due to which the sender awaits delivery of the sent message
> >
> > Is there any workaround to send failed delivery to the message sender
>
> Please, read carefully userguide and especially section about delivery
> report. After that describe your configuration and the problem you have.
> Then you can expect that the someone could answer your question.
> Anyway, from my experience best way to handle SMS with Kannel is to
> write small program in scripting languages of your preference and
> knowledge. I wrote some simple skripts in perl ten years ago that worked
> (and I think still works) for SMS parking payment in one country.
>
>

-- 
Thanks & Regards,
Vinayak

==

*Confucius* once said,
"*Life is really simple, but we insist on making it complicated.*"

*Leonardo da Vinci* once said,
"*Simplicity is the ultimate sophistication.*"

*Albert Einstein* once said,
"*Everything should be made as simple as possible, but not simpler.*"


Re: DLR of Rejected SMS

2016-10-13 Thread Milan P. Stanic
On Thu, 2016-10-13 at 12:59, ahmed qadeer wrote:
> Can you please let me know how can we get DLR's of SMS being rejected due
> to invalid number on SMSC level as operator is rejecting the SMS by the
> following error
> 
> 
> SMSC returned error code 0x009b (Unknown/Reserved) in response to
> submit_sm PDU
> 
> and due to which the sender awaits delivery of the sent message
> 
> Is there any workaround to send failed delivery to the message sender

Please, read carefully userguide and especially section about delivery
report. After that describe your configuration and the problem you have.
Then you can expect that the someone could answer your question.
Anyway, from my experience best way to handle SMS with Kannel is to
write small program in scripting languages of your preference and
knowledge. I wrote some simple skripts in perl ten years ago that worked
(and I think still works) for SMS parking payment in one country.



Re: re DLR Missing on Hug Request

2016-07-08 Thread Web Services
Hello Fajar,


thanks for your reply

can you please let me know what server configuration you using for sending
150k sms per day and what TPS you using for sending.

Thanks

Deepak

On Mon, Jul 4, 2016 at 5:39 AM, Fajar <bebas...@yahoo.com> wrote:

> if you sure you have map correctly msgid with DLR url. you'll need to
> check how fast you can submit message to SMSC, you'll need to match with
> your submit to kannel. i'm sending around 150k messages per day, only miss
> around 100 DLR if smsc work correctly. if smsc got slow, kannel will build
> queue upto 10k messages. at that that DLR miss will be more 1k...
>
> thanks
>
> fajar
>
>
> --
> *From:* Web Services <coinhost...@gmail.com>
> *To:* users@kannel.org
> *Sent:* Saturday, 2 July 2016, 18:55
> *Subject:* re DLR Missing on Hug Request
>
> Can anyone help on this ??
>
>
>
> Hello,
>
> am using kannel 1.4.4 with Ubuntu 14.4 but am facing an issue with large
> volume of sms.
>
> i mean my application and kannel works perfectly if i send upto 100's
> message but on large volume like 10,000 or more i missed lots of DLR
> reports. am using external storage with spool and dlr url
>
>
>
> kindly suggest
>
> Deepak
>
>
>
>


Re: re DLR Missing on Hug Request

2016-07-03 Thread vinayak mv
Please use sqlbox so u dont miss any dlr

On Monday 4 July 2016, Fajar <bebas...@yahoo.com> wrote:

> if you sure you have map correctly msgid with DLR url. you'll need to
> check how fast you can submit message to SMSC, you'll need to match with
> your submit to kannel. i'm sending around 150k messages per day, only miss
> around 100 DLR if smsc work correctly. if smsc got slow, kannel will build
> queue upto 10k messages. at that that DLR miss will be more 1k...
>
> thanks
>
> fajar
>
>
> --
> *From:* Web Services <coinhost...@gmail.com
> <javascript:_e(%7B%7D,'cvml','coinhost...@gmail.com');>>
> *To:* users@kannel.org <javascript:_e(%7B%7D,'cvml','users@kannel.org');>
> *Sent:* Saturday, 2 July 2016, 18:55
> *Subject:* re DLR Missing on Hug Request
>
> Can anyone help on this ??
>
>
>
> Hello,
>
> am using kannel 1.4.4 with Ubuntu 14.4 but am facing an issue with large
> volume of sms.
>
> i mean my application and kannel works perfectly if i send upto 100's
> message but on large volume like 10,000 or more i missed lots of DLR
> reports. am using external storage with spool and dlr url
>
>
>
> kindly suggest
>
> Deepak
>
>
>
>

-- 
Thanks & Regards,
Vinayak


Re: re DLR Missing on Hug Request

2016-07-03 Thread Fajar
if you sure you have map correctly msgid with DLR url. you'll need to check how 
fast you can submit message to SMSC, you'll need to match with your submit to 
kannel. i'm sending around 150k messages per day, only miss around 100 DLR if 
smsc work correctly. if smsc got slow, kannel will build queue upto 10k 
messages. at that that DLR miss will be more 1k...
thanks
fajar

  From: Web Services <coinhost...@gmail.com>
 To: users@kannel.org 
 Sent: Saturday, 2 July 2016, 18:55
 Subject: re DLR Missing on Hug Request
   
Can anyone help on this ??

Hello,

am using kannel 1.4.4 with Ubuntu 14.4 but am facing an issue with large
volume of sms.i mean my application and kannel works perfectly if i send upto 
100's
message but on large volume like 10,000 or more i missed lots of DLR
reports. am using external storage with spool and dlr url



kindly suggest

Deepak

   

re DLR Missing on Hug Request

2016-07-02 Thread Web Services
Can anyone help on this ??



Hello,

am using kannel 1.4.4 with Ubuntu 14.4 but am facing an issue with large
volume of sms.

i mean my application and kannel works perfectly if i send upto 100's
message but on large volume like 10,000 or more i missed lots of DLR
reports. am using external storage with spool and dlr url



kindly suggest

Deepak


Re: Dlr issue

2016-06-22 Thread Alvaro Cornejo
Hi

Check msg-type parameter. message id format must match between kannel and
smsc.

Regards

Alvaro

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
  Visitenos en www.perusms.com

On Tue, Jun 21, 2016 at 5:13 PM, John Ivon  wrote:

> Dear Team
>
> I having this error in my logs and i don t know what to do, need help.
>
> 2016-06-21 22:06:11 [6136] [51] ERROR: SMPP[xxx]: got DLR but could not 
> find message or was not interested in it id<0484812104> dst, type<1>
>
> BR
>
>
> 2016-06-21 22:12 GMT+00:00 John Ivon :
>
>> Dear Team
>>
>> I having this error in my logs and i don t know what to do, need help.
>>
>>
>>
>


Re: Dlr issue

2016-06-21 Thread John Ivon
Dear Team

I having this error in my logs and i don t know what to do, need help.

2016-06-21 22:06:11 [6136] [51] ERROR: SMPP[xxx]: got DLR but
could not find message or was not interested in it id<0484812104>
dst, type<1>

BR


2016-06-21 22:12 GMT+00:00 John Ivon :

> Dear Team
>
> I having this error in my logs and i don t know what to do, need help.
>
>
>


Re: DLR Q Incresing

2016-02-11 Thread Juan Nin
exactly

On Sat, Feb 6, 2016 at 2:06 AM, Robin C  wrote:

> Hi Juan,
>
>  Thank you so much for your information. Those queued
> ones contain the contents of of group = dlr-db in the kannel configuration
> ?
>
> On Sat, Feb 6, 2016 at 9:31 AM, Juan Nin  wrote:
>
>> Hi Robin!
>>
>> Those queued ones are not DLRs that you have received, it's the info that
>> Kannel stores (on this case in MySQL) so as to be able to process DLRs.
>> So, when you receive a DLR from the remote SMSC, Kannel will search in
>> MySQL for a record that matches. Those records are deleted when you receive
>> a final status DLR (basically that the MT was delivered, or that it failed).
>>
>> So, that queued number equals the number of MTs for which you have not
>> yet received a final DLR.
>>
>> Makes sense?
>>
>> Regards.
>>
>> On Tue, Feb 2, 2016 at 9:00 AM, Robin C  wrote:
>>
>>>
>>> Hi All,
>>>
>>>  SMS: received 0 (0 queued), sent 269993 (0 queued), store
>>> size 179
>>>
>>> SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (9.32,7.86,4.31) msg/sec
>>>
>>> DLR: received 189199, sent 0
>>> DLR: inbound (4.60,3.58,3.02) msg/sec, outbound (0.00,0.00,0.00) msg/sec
>>> DLR: 113925 queued, using mysql storage
>>>
>>>  The above figure shows my kannel status.  From that you can
>>> see the total sent messages is 269993 . Total Dlr received is 189199.  
>>> Remaining
>>> DLRs are DLR: 113925 queued, using mysql storage.  Why this happens?
>>> Why DLRs are queued in mysql storage. What should i do to avoid this .
>>> Anyone Please help me.
>>>
>>> Thanks in Advance.
>>>
>>> --
>>>
>>>*Thanks & Regards,*
>>>
>>>
>>>
>>>   Robin C
>>>
>>>  Linux System Administrator
>>>
>>>
>>>
>>> *ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
>>> Development, Web & Graphic Designing.*
>>>
>>>
>>> *www.zincron.co.in  | www. easyhops.co.in
>>>  | www.equipe.co.in   *
>>>
>>> *Corporate Office: NRA-99, Observatory Lane, Palayam, Trivandrum, Kerala*
>>>
>>>
>>> *Mobile: +919544861010 <%2B919544861010> *| Phone: 91-471- 4140414 |
>>>  Fax : 91-471-4010413 | Raise Your Ticket: zincron-ticketing.com
>>>
>>>
>>> Connect with us @ Facebook
>>> 
>>>  | LinkedIn
>>> 
>>>
>>> Disclaimer:  This message contains confidential information and is
>>> intended only for the individual named.  If you are not the named addressee
>>> you should not disseminate, distribute or copy this e-mail.  Please notify
>>> the sender immediately by e-mail if you have received this e-mail by
>>> mistake and delete this e-mail from your system.  E-mail transmission
>>> cannot be guaranteed to be secure or error-free as information could be
>>> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
>>> contain viruses.  The sender therefore does not accept liability for any
>>> errors or omissions in the contents of this message, which arise as a
>>> result of e-mail transmission.  If verification is required please request
>>> a hard-copy version.
>>>
>>> *7* Switch off as you go |*q *Recycle always | P Print only if
>>> absolutely necessary
>>>
>>
>>
>
>
> --
>
>*Thanks & Regards,*
>
>
>
>   Robin C
>
>  Linux System Administrator
>
>
>
> *ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
> Development, Web & Graphic Designing.*
>
>
> *www.zincron.co.in  | www. easyhops.co.in
>  | www.equipe.co.in   *
>
> *Corporate Office: NRA-99, Observatory Lane, Palayam, Trivandrum, Kerala*
>
>
> *Mobile: +919544861010 <%2B919544861010> *| Phone: 91-471- 4140414 |  Fax
> : 91-471-4010413 | Raise Your Ticket: zincron-ticketing.com
>
>
> Connect with us @ Facebook
> 
>  | LinkedIn
> 
>
> Disclaimer:  This message contains confidential information and is
> intended only for the individual named.  If you are not the named addressee
> you should not disseminate, distribute or copy this e-mail.  Please notify
> the sender immediately by e-mail if you have received this e-mail by
> mistake and delete this e-mail from your system.  E-mail transmission
> cannot be guaranteed to be secure or error-free as information could be
> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
> contain viruses.  The sender therefore does not accept liability for any
> errors or omissions in the contents of this message, which arise as a
> result of e-mail transmission.  If verification is required please request
> a hard-copy version.
>
> *7* Switch off as you go 

Re: DLR Q Incresing

2016-02-05 Thread Juan Nin
Hi Robin!

Those queued ones are not DLRs that you have received, it's the info that
Kannel stores (on this case in MySQL) so as to be able to process DLRs.
So, when you receive a DLR from the remote SMSC, Kannel will search in
MySQL for a record that matches. Those records are deleted when you receive
a final status DLR (basically that the MT was delivered, or that it failed).

So, that queued number equals the number of MTs for which you have not yet
received a final DLR.

Makes sense?

Regards.

On Tue, Feb 2, 2016 at 9:00 AM, Robin C  wrote:

>
> Hi All,
>
>  SMS: received 0 (0 queued), sent 269993 (0 queued), store
> size 179
>
> SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (9.32,7.86,4.31) msg/sec
>
> DLR: received 189199, sent 0
> DLR: inbound (4.60,3.58,3.02) msg/sec, outbound (0.00,0.00,0.00) msg/sec
> DLR: 113925 queued, using mysql storage
>
>  The above figure shows my kannel status.  From that you can
> see the total sent messages is 269993 . Total Dlr received is 189199.  
> Remaining
> DLRs are DLR: 113925 queued, using mysql storage.  Why this happens? Why
> DLRs are queued in mysql storage. What should i do to avoid this . Anyone
> Please help me.
>
> Thanks in Advance.
>
> --
>
>*Thanks & Regards,*
>
>
>
>   Robin C
>
>  Linux System Administrator
>
>
>
> *ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
> Development, Web & Graphic Designing.*
>
>
> *www.zincron.co.in  | www. easyhops.co.in
>  | www.equipe.co.in   *
>
> *Corporate Office: NRA-99, Observatory Lane, Palayam, Trivandrum, Kerala*
>
>
> *Mobile: +919544861010 <%2B919544861010> *| Phone: 91-471- 4140414 |  Fax
> : 91-471-4010413 | Raise Your Ticket: zincron-ticketing.com
>
>
> Connect with us @ Facebook
> 
>  | LinkedIn
> 
>
> Disclaimer:  This message contains confidential information and is
> intended only for the individual named.  If you are not the named addressee
> you should not disseminate, distribute or copy this e-mail.  Please notify
> the sender immediately by e-mail if you have received this e-mail by
> mistake and delete this e-mail from your system.  E-mail transmission
> cannot be guaranteed to be secure or error-free as information could be
> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
> contain viruses.  The sender therefore does not accept liability for any
> errors or omissions in the contents of this message, which arise as a
> result of e-mail transmission.  If verification is required please request
> a hard-copy version.
>
> *7* Switch off as you go |*q *Recycle always | P Print only if absolutely
> necessary
>


Re: DLR Q Incresing

2016-02-05 Thread Robin C
Hi Juan,

 Thank you so much for your information. Those queued
ones contain the contents of of group = dlr-db in the kannel configuration
?

On Sat, Feb 6, 2016 at 9:31 AM, Juan Nin  wrote:

> Hi Robin!
>
> Those queued ones are not DLRs that you have received, it's the info that
> Kannel stores (on this case in MySQL) so as to be able to process DLRs.
> So, when you receive a DLR from the remote SMSC, Kannel will search in
> MySQL for a record that matches. Those records are deleted when you receive
> a final status DLR (basically that the MT was delivered, or that it failed).
>
> So, that queued number equals the number of MTs for which you have not yet
> received a final DLR.
>
> Makes sense?
>
> Regards.
>
> On Tue, Feb 2, 2016 at 9:00 AM, Robin C  wrote:
>
>>
>> Hi All,
>>
>>  SMS: received 0 (0 queued), sent 269993 (0 queued), store
>> size 179
>>
>> SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (9.32,7.86,4.31) msg/sec
>>
>> DLR: received 189199, sent 0
>> DLR: inbound (4.60,3.58,3.02) msg/sec, outbound (0.00,0.00,0.00) msg/sec
>> DLR: 113925 queued, using mysql storage
>>
>>  The above figure shows my kannel status.  From that you can
>> see the total sent messages is 269993 . Total Dlr received is 189199.  
>> Remaining
>> DLRs are DLR: 113925 queued, using mysql storage.  Why this happens? Why
>> DLRs are queued in mysql storage. What should i do to avoid this . Anyone
>> Please help me.
>>
>> Thanks in Advance.
>>
>> --
>>
>>*Thanks & Regards,*
>>
>>
>>
>>   Robin C
>>
>>  Linux System Administrator
>>
>>
>>
>> *ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
>> Development, Web & Graphic Designing.*
>>
>>
>> *www.zincron.co.in  | www. easyhops.co.in
>>  | www.equipe.co.in   *
>>
>> *Corporate Office: NRA-99, Observatory Lane, Palayam, Trivandrum, Kerala*
>>
>>
>> *Mobile: +919544861010 <%2B919544861010> *| Phone: 91-471- 4140414 |
>>  Fax : 91-471-4010413 | Raise Your Ticket: zincron-ticketing.com
>>
>>
>> Connect with us @ Facebook
>> 
>>  | LinkedIn
>> 
>>
>> Disclaimer:  This message contains confidential information and is
>> intended only for the individual named.  If you are not the named addressee
>> you should not disseminate, distribute or copy this e-mail.  Please notify
>> the sender immediately by e-mail if you have received this e-mail by
>> mistake and delete this e-mail from your system.  E-mail transmission
>> cannot be guaranteed to be secure or error-free as information could be
>> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
>> contain viruses.  The sender therefore does not accept liability for any
>> errors or omissions in the contents of this message, which arise as a
>> result of e-mail transmission.  If verification is required please request
>> a hard-copy version.
>>
>> *7* Switch off as you go |*q *Recycle always | P Print only if
>> absolutely necessary
>>
>
>


-- 

   *Thanks & Regards,*



  Robin C

 Linux System Administrator



*ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
Development, Web & Graphic Designing.*


*www.zincron.co.in  | www. easyhops.co.in
 | www.equipe.co.in   *

*Corporate Office: NRA-99, Observatory Lane, Palayam, Trivandrum, Kerala*


*Mobile: +919544861010 *| Phone: 91-471- 4140414 |  Fax : 91-471-4010413 |
Raise Your Ticket: zincron-ticketing.com


Connect with us @ Facebook

 | LinkedIn


Disclaimer:  This message contains confidential information and is intended
only for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please notify the
sender immediately by e-mail if you have received this e-mail by mistake
and delete this e-mail from your system.  E-mail transmission cannot be
guaranteed to be secure or error-free as information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or contain
viruses.  The sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a result of
e-mail transmission.  If verification is required please request a
hard-copy version.

*7* Switch off as you go |*q *Recycle always | P Print only if absolutely
necessary


RE: DLR Issue: got DLR but could not find message

2015-11-19 Thread Lamasuta, Franck, Vodafone Automotive
Hi Amit,

I guess there is a mismatch between your 2 SMSC ids (MT and MTS).
A record with smsc="MT" is stored by Kannel when the MT SMS is submitted.
But Kannel searches for a record with smsc="MTS" when the DLR is received.
Can't you setup a SMPP transceiver bind (instead of 2 separate binds) since you 
use SMPP 3.4?

Regards,
Franck


From: users [mailto:users-boun...@kannel.org] On Behalf Of Amit Sharma (VAS)
Sent: Monday, November 16, 2015 7:59 AM
To: users@kannel.org
Subject: DLR Issue: got DLR but could not find message

Hi,
I have configured kannel on red hat linux(2.6.32-358.el6.x86_64) & i receive 
sms at bearerbox(Kannel bearerbox version `1.4.4' & Libxml version 2.7.6). I 
have made 10Tx & 10Rx . I am getting following error in logs:

2015-11-16 12:25:57 [27349] [13] DEBUG: DLR[internal]: Looking for DLR 
smsc=MTS, ts=C0958FA1, dst=9142639184, type=4
2015-11-16 12:25:57 [27349] [13] WARNING: DLR[internal]: DLR from SMSC for 
DST<9142639184> not found.
2015-11-16 12:25:57 [27349] [13] ERROR: SMPP[MTS]: got DLR but could not find 
message or was not interested in it id dst<9142639184>, type<4>


Please suggest what can be wrong in the configuration or any modifications by 
DLR can be handled properly.

Kannel configuration is as follows(only with 1Rx & 1Tx)

group = core
admin-port = 13010
smsbox-port = 13012
log-file = "/u03/kannel/logs/bearerbox.log"
box-allow-ip = "10.130.252.160,127.0.0.1"
access-log = "/u03/kannel/logs/bearerbox_access.log"
dlr-storage = internal

##TX-1##
group = smsc
smsc-id ="MT"
smsc = smpp
host =10.10.22.10
port = 5016
system-type = "INAPPS"
interface-version = 34
receive-port =0
source-addr-ton = 1
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
keepalive = 30
log-level =0
throughput = 50
max-pending-submits=50
reconnect-delay = 60
reroute = true
log-file = "/u03/kannel/logs/smsc_conn.log"


##RX-1
group = smsc
smsc-id ="MTS"
smsc = smpp
host =10.10.22.10
port = 0
system-type = "INAPPS"
receive-port =5016
interface-version = 34
source-addr-ton = 1
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
keepalive = 30
log-level =0
reconnect-delay = 60
reroute = true
log-file = "/u03/kannel/logs/smsc_conn.log"

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = YD-MTS
log-file = "/u03/kannel/logs/smsbox.log"
log-level = 0

#SMSBOX ROUTING
group = smsbox-route
smsbox-id = smsbox
smsc-id ="MT"

group = sendsms-user
username = smsg
password = smsg@123
default-smsc="MT"
concatenation= true
max-messages = 6


group = sms-service
keyword = default
url = 
http://10.130.250.58/receivesms.php?sender=%p=%b
catch-all = true
max-messages = 1
text = "This is a reply"


bearerbox access log is as follows

2015-11-12 09:04:53 Sent SMS [SMSC:MTS] [SVC:] [ACT:MTSCC_APPS] [BINF:]   
[FID:AFB4EE11] [META:?smpp??smpp_resp?] [from:+919136006473] [to:+915] 
[flags:-1:0:-1:0:-1] [msg:2:Hi] [udh:0:]

 2015-11-12 09:04:53 Receive SMS [SMSC:MTS] [SVC:] [ACT:MTSCC_APPS] [BINF:] 
[FID:] [META:?smpp?] [from:+919136006473] [to:+915] [flags:-1:0:-1:0:-1] 
[msg:2:Hi] [udh:0:]

 2015-11-12 09:04:53 Receive SMS [SMSC:MTS] [SVC:] [ACT:MTSCC_APPS] [BINF:] 
[FID:] [META:?smpp?] [from:+919136006473] [to:+915] [flags:-1:0:-1:0:-1] 
[msg:2:Hi] [udh:0:]

 2015-11-12 09:04:53 Sent SMS [SMSC:MTS] [SVC:] [ACT:MTSCC_APPS] [BINF:] 
[FID:AFB4EE31] [META:?smpp??smpp_resp?] [from:+919136006473] [to:+915] 
[flags:-1:0:-1:0:-1] [msg:2:Hi] [udh:0:]






Best regards
Amit Sharma




This E-Mail may contain Confidential and/or legally privileged Information and 
is meant for the intended recipient(s) only. If you have received this e-mail 
in error and are not the intended recipient/s, Kindly notify the sender and 
then delete this e-mail immediately from your system. You are also hereby 
notified that any use, any form of reproduction, dissemination, copying, 
disclosure, modification, distribution and/or publication of this e-mail, its 
contents or its attachment/s other than by its intended recipient/s is strictly 
prohibited and may be unlawful.

Internet Communications cannot be guaranteed to be secure or error-free as 
information could be delayed, intercepted, corrupted, lost, or contain viruses. 
Sistema Shyam Teleservices Limited does not accept any liability for any 
errors, omissions, viruses or computer problems experienced by any recipient as 
a result of this e-mail.



This E-Mail may contain Confidential and/or legally privileged Information and 
is meant for the intended recipient(s) only. If you have received this e-mail 
in error and are not the intended recipient/s, Kindly notify the sender and 
then delete this e-mail immediately from your system. You are also hereby 
notified that any use, any form of reproduction, 

Re: DLR Issue

2015-10-23 Thread Achyut Raj
Hi Hamza,

Thanx for your reply,

1) targeting wrong subscriber number format : This is not the case of
wrong subscribers number issue and wrong number format. All of them
delivered correctly but some of them are not able to get DLR, other DLR are
correct.
2) your target numbers are churned out/closed : message is delivered but
DLR not receiving in sometime for the same mobile number.
3) EXPIRED means either the SMSC threshold for storing UNDELIVERED is too
small, : Can you please clearify ?? Do I need to change some configurations
??


On Fri, Oct 23, 2015 at 3:40 PM, ha...@aeon.pk  wrote:

> Too many UNDELIVERED means either you are targeting wrong subscriber
> number format, or your target numbers are churned out/closed. EXPIRED means
> either the SMSC threshold for storing UNDELIVERED is too small, or you are
> targeting people who do not turn on their cellphones frequently, or have
> severe network issues in that area. Ask your operator why is this happening.
>
> On Wed, Oct 21, 2015 at 4:51 PM, Jffj tjf  wrote:
>
>> This might be. Caused by many issues. You can ask telecom provider to
>> provide all error codes with descriptions.
>> On Oct 21, 2015 4:56 PM, "Achyut Raj"  wrote:
>>
>>> Hello Group,
>>>
>>> Our client is having issue on receiving DLR. Log stats shows something
>>> like ;
>>>
>>> 0.00% :UNDELIV Err:001
>>> 0.14% :EXPIRED Err:013
>>> 0.90% :UNDELIV Err:020
>>> 0.08% :UNDELIV Err:022
>>> 1.14% :UNDELIV Err:029
>>> 0.03% :EXPIRED Err:036
>>> 0.33% :EXPIRED Err:045
>>> 0.05% :UNDELIV Err:053
>>> 0.14% :EXPIRED Err:075
>>> 11.19% :UNDELIV Err:084
>>> 0.00% :UNDELIV Err:098
>>> 4.13% :UNDELIV Err:099
>>>
>>> What misconfiguration or  other issue can cause this much failure
>>> delivery ??
>>>
>>
>


Re: DLR Issue

2015-10-23 Thread ha...@aeon.pk
Hi,

For the case where you are not getting the DLRs, you need to check with
operator. It's a painful troubleshooting because in huge volume of SMS
traffic, operators don't like to take traces for a single SMS. But they
would ask for tcpdump from your side, and you should take one. One thing:
Are you using multiple instances of same SMPP account? This is a classical
DLR vanishing issue I faced, until I figured out the problem. You should
stop using multiple accounts of same SMPP connection and then check DLRs.

You cannot really do anything on EXPIRED messages. One tweak is to identify
undelivered messages at programming level, set a threshold counter of 3 for
such messages, and re-attempt the submission. But this needs to be done at
programming level, kannel cannot do this.


On Fri, Oct 23, 2015 at 6:40 PM, Achyut Raj  wrote:

> Hi Hamza,
>
> Thanx for your reply,
>
> 1) targeting wrong subscriber number format : This is not the case of
> wrong subscribers number issue and wrong number format. All of them
> delivered correctly but some of them are not able to get DLR, other DLR are
> correct.
> 2) your target numbers are churned out/closed : message is delivered but
> DLR not receiving in sometime for the same mobile number.
> 3) EXPIRED means either the SMSC threshold for storing UNDELIVERED is too
> small, : Can you please clearify ?? Do I need to change some configurations
> ??
>
>
> On Fri, Oct 23, 2015 at 3:40 PM, ha...@aeon.pk  wrote:
>
>> Too many UNDELIVERED means either you are targeting wrong subscriber
>> number format, or your target numbers are churned out/closed. EXPIRED means
>> either the SMSC threshold for storing UNDELIVERED is too small, or you are
>> targeting people who do not turn on their cellphones frequently, or have
>> severe network issues in that area. Ask your operator why is this happening.
>>
>> On Wed, Oct 21, 2015 at 4:51 PM, Jffj tjf  wrote:
>>
>>> This might be. Caused by many issues. You can ask telecom provider to
>>> provide all error codes with descriptions.
>>> On Oct 21, 2015 4:56 PM, "Achyut Raj"  wrote:
>>>
 Hello Group,

 Our client is having issue on receiving DLR. Log stats shows something
 like ;

 0.00% :UNDELIV Err:001
 0.14% :EXPIRED Err:013
 0.90% :UNDELIV Err:020
 0.08% :UNDELIV Err:022
 1.14% :UNDELIV Err:029
 0.03% :EXPIRED Err:036
 0.33% :EXPIRED Err:045
 0.05% :UNDELIV Err:053
 0.14% :EXPIRED Err:075
 11.19% :UNDELIV Err:084
 0.00% :UNDELIV Err:098
 4.13% :UNDELIV Err:099

 What misconfiguration or  other issue can cause this much failure
 delivery ??

>>>
>>
>


Re: DLR Issue

2015-10-23 Thread ha...@aeon.pk
Too many UNDELIVERED means either you are targeting wrong subscriber number
format, or your target numbers are churned out/closed. EXPIRED means either
the SMSC threshold for storing UNDELIVERED is too small, or you are
targeting people who do not turn on their cellphones frequently, or have
severe network issues in that area. Ask your operator why is this happening.

On Wed, Oct 21, 2015 at 4:51 PM, Jffj tjf  wrote:

> This might be. Caused by many issues. You can ask telecom provider to
> provide all error codes with descriptions.
> On Oct 21, 2015 4:56 PM, "Achyut Raj"  wrote:
>
>> Hello Group,
>>
>> Our client is having issue on receiving DLR. Log stats shows something
>> like ;
>>
>> 0.00% :UNDELIV Err:001
>> 0.14% :EXPIRED Err:013
>> 0.90% :UNDELIV Err:020
>> 0.08% :UNDELIV Err:022
>> 1.14% :UNDELIV Err:029
>> 0.03% :EXPIRED Err:036
>> 0.33% :EXPIRED Err:045
>> 0.05% :UNDELIV Err:053
>> 0.14% :EXPIRED Err:075
>> 11.19% :UNDELIV Err:084
>> 0.00% :UNDELIV Err:098
>> 4.13% :UNDELIV Err:099
>>
>> What misconfiguration or  other issue can cause this much failure
>> delivery ??
>>
>


Re: DLR Issue

2015-10-21 Thread Jffj tjf
This might be. Caused by many issues. You can ask telecom provider to
provide all error codes with descriptions.
On Oct 21, 2015 4:56 PM, "Achyut Raj"  wrote:

> Hello Group,
>
> Our client is having issue on receiving DLR. Log stats shows something
> like ;
>
> 0.00% :UNDELIV Err:001
> 0.14% :EXPIRED Err:013
> 0.90% :UNDELIV Err:020
> 0.08% :UNDELIV Err:022
> 1.14% :UNDELIV Err:029
> 0.03% :EXPIRED Err:036
> 0.33% :EXPIRED Err:045
> 0.05% :UNDELIV Err:053
> 0.14% :EXPIRED Err:075
> 11.19% :UNDELIV Err:084
> 0.00% :UNDELIV Err:098
> 4.13% :UNDELIV Err:099
>
> What misconfiguration or  other issue can cause this much failure delivery
> ??
>


Re: DLR issue on Kannel 1.4.4

2015-08-18 Thread Alexander Malysh
Hi,

there is not enough infos to understand what’s going wrong.

Please post submit_sm to this failing DLR then we at least will see what 
happened.

Thanks,
Alex

 Am 15.08.2015 um 18:57 schrieb Moazzam moz...@gmail.com:
 
 No not using multi part  MT  my all messages are carrying 
 [flags:-1:0:-1:-1:31]  within 140 char length limit.
 
 On 8/15/2015 9:42 PM, spameden wrote:
 
 
 2015-08-15 18:03 GMT+03:00 Moazzam moz...@gmail.com 
 mailto:moz...@gmail.com:
 
Thanks Alvaro, however, I do not think this is related to the dlr
type. Most of the time its working fine only couple of time we see
this. For example   there were 146 such occurrence out of 28580
where we got this error which is about 5% of the total SMS sent on
that day.
 
[kannel]# cat gateway.log |grep 2015-08-14|grep -c got DLR but
could not find message
146
 
[kannel]# cat access.log|grep 2015-08-14|grep -c Sent
28580
 
Perhaps the final DLR is not reach in due time and causing this.
Is there anyway to fine tune this with a configuration change?
 
 
 Hi. Do you send multipart MT? Kannel only asks for DLR for the first part of 
 the MT, but many SMSC operators sending for all parts DLR reports that's why 
 you might be getting such errors in your error log.
 
 You can check by sending multipart message (for coding=0 it would be more 
 than 140 symbols or for coding=2 70).
 
 
 
 
On 8/14/2015 7:39 PM, Alvaro Cornejo wrote:
 
Hi
 
Check the format of dlr-id some smsc use hex and some dec.
Adjust kannel config accordingly
 
I think the parameter to adjust is dlr-type
 
Regards
 

 |-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde
cualquier celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2
vias via SMS y GPRS online
  Visitenos en www.perusms.com
http://www.perusms.com http://www.perusms.com
 
 
On Fri, Aug 14, 2015 at 8:48 AM, Moazzam moz...@gmail.com
mailto:moz...@gmail.com mailto:moz...@gmail.com
mailto:moz...@gmail.com wrote:
 
Hi,
 
I have a production kannel v1.4.4 instance running with
sqlbox and
opensmppbox  along with mysql as DLR storage. So far so
good but
I am facing an issue with the DLR where DLR are being
queued  and
strange error related to the message id  destination is
appearing
the the gateway log as below. Please advise how to get rid
of this
problem.
 
2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP[crs]: Got PDU:
2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP PDU
0x7fceba10 dump:
2015-06-23 01:33:00 [32056] [6] DEBUG:  type_name: deliver_sm
2015-06-23 01:33:00 [32056] [6] DEBUG:  command_id: 5 =
0x0005
2015-06-23 01:33:00 [32056] [6] DEBUG:  command_status: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  sequence_number: 2 =
0x0002
2015-06-23 01:33:00 [32056] [6] DEBUG:  service_type: NULL
2015-06-23 01:33:00 [32056] [6] DEBUG:  source_addr_ton: 1 =
0x0001
2015-06-23 01:33:00 [32056] [6] DEBUG:  source_addr_npi: 1 =
0x0001
2015-06-23 01:33:00 [32056] [6] DEBUG:  source_addr:
2xxx
2015-06-23 01:33:00 [32056] [6] DEBUG:  dest_addr_ton: 5 =
0x0005
2015-06-23 01:33:00 [32056] [6] DEBUG:  dest_addr_npi: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  destination_addr:
Zx
2015-06-23 01:33:00 [32056] [6] DEBUG:  esm_class: 4 =
0x0004
2015-06-23 01:33:00 [32056] [6] DEBUG:  protocol_id: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  priority_flag: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:
schedule_delivery_time: NULL
2015-06-23 01:33:00 [32056] [6] DEBUG:  validity_period: NULL
2015-06-23 01:33:00 [32056] [6] DEBUG:
registered_delivery: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:
replace_if_present_flag: 0
= 0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  data_coding: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  sm_default_msg_id: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  sm_length: 112 =
0x0070
2015-06-23 01:33:00 [32056] [6] DEBUG:  short_message:
2015-06-23 01:33:00 [32056] [6] DEBUG:Octet string at
0x7fceb0001110:
2015-06-23 01:33:00 [32056] [6] DEBUG: 

Re: DLR issue on Kannel 1.4.4

2015-08-15 Thread spameden
2015-08-15 18:03 GMT+03:00 Moazzam moz...@gmail.com:

 Thanks Alvaro, however, I do not think this is related to the dlr type.
 Most of the time its working fine only couple of time we see this. For
 example   there were 146 such occurrence out of 28580 where we got this
 error which is about 5% of the total SMS sent on that day.

 [kannel]# cat gateway.log |grep 2015-08-14|grep -c got DLR but could
 not find message
 146

 [kannel]# cat access.log|grep 2015-08-14|grep -c Sent
 28580

 Perhaps the final DLR is not reach in due time and causing this. Is there
 anyway to fine tune this with a configuration change?


Hi. Do you send multipart MT? Kannel only asks for DLR for the first part
of the MT, but many SMSC operators sending for all parts DLR reports that's
why you might be getting such errors in your error log.

You can check by sending multipart message (for coding=0 it would be more
than 140 symbols or for coding=2 70).




 On 8/14/2015 7:39 PM, Alvaro Cornejo wrote:

 Hi

 Check the format of dlr-id some smsc use hex and some dec. Adjust kannel
 config accordingly

 I think the parameter to adjust is dlr-type

 Regards


 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com http://www.perusms.com


 On Fri, Aug 14, 2015 at 8:48 AM, Moazzam moz...@gmail.com mailto:
 moz...@gmail.com wrote:

 Hi,

 I have a production kannel v1.4.4 instance running with sqlbox and
 opensmppbox  along with mysql as DLR storage.  So far so good but
 I am facing an issue with the DLR where DLR are being queued  and
 strange error related to the message id  destination is appearing
 the the gateway log as below. Please advise how to get rid of this
 problem.

 2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP[crs]: Got PDU:
 2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP PDU 0x7fceba10 dump:
 2015-06-23 01:33:00 [32056] [6] DEBUG:   type_name: deliver_sm
 2015-06-23 01:33:00 [32056] [6] DEBUG:   command_id: 5 = 0x0005
 2015-06-23 01:33:00 [32056] [6] DEBUG:   command_status: 0 =
 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   sequence_number: 2 =
 0x0002
 2015-06-23 01:33:00 [32056] [6] DEBUG:   service_type: NULL
 2015-06-23 01:33:00 [32056] [6] DEBUG:   source_addr_ton: 1 =
 0x0001
 2015-06-23 01:33:00 [32056] [6] DEBUG:   source_addr_npi: 1 =
 0x0001
 2015-06-23 01:33:00 [32056] [6] DEBUG:   source_addr: 2xxx
 2015-06-23 01:33:00 [32056] [6] DEBUG:   dest_addr_ton: 5 = 0x0005
 2015-06-23 01:33:00 [32056] [6] DEBUG:   dest_addr_npi: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   destination_addr: Zx
 2015-06-23 01:33:00 [32056] [6] DEBUG:   esm_class: 4 = 0x0004
 2015-06-23 01:33:00 [32056] [6] DEBUG:   protocol_id: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   priority_flag: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:  schedule_delivery_time: NULL
 2015-06-23 01:33:00 [32056] [6] DEBUG:   validity_period: NULL
 2015-06-23 01:33:00 [32056] [6] DEBUG:  registered_delivery: 0 =
 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG: replace_if_present_flag: 0
 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   data_coding: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   sm_default_msg_id: 0 =
 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   sm_length: 112 = 0x0070
 2015-06-23 01:33:00 [32056] [6] DEBUG:   short_message:
 2015-06-23 01:33:00 [32056] [6] DEBUG:Octet string at
 0x7fceb0001110:
 2015-06-23 01:33:00 [32056] [6] DEBUG:  len:  112
 2015-06-23 01:33:00 [32056] [6] DEBUG:  size: 113
 2015-06-23 01:33:00 [32056] [6] DEBUG:  immutable: 0
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 69 64 3a 35 39
 33 38 35 38 38 35 31 34 38 33 30   id:5938588514830
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 36 36 34 20 73
 75 62 3a 30 30 31 20 64 6c 76 72   664 sub:001 dlvr
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 64 3a 30 30 31
 20 73 75 62 6d 69 74 20 64 61 74   d:001 submit dat
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 65 3a 31 35 30
 36 32 32 31 38 30 31 32 37 20 64   e:150622180127 d
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 6f 6e 65 20 64
 61 74 65 3a 31 35 30 36 32 33 30   one date:1506230
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 31 33 33 31 33
 20 73 74 61 74 3a 44 45 4c 49 56   13313 stat:DELIV
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 52 44 20 65 72
 72 3a 30 30 30 20 74 65 78 74 3a   RD err:000 text:
 2015-06-23 01:33:00 [32056] [6] DEBUG:Octet 

Re: DLR issue on Kannel 1.4.4

2015-08-15 Thread Moazzam
No not using multi part  MT  my all messages are carrying 
[flags:-1:0:-1:-1:31]  within 140 char length limit.


On 8/15/2015 9:42 PM, spameden wrote:



2015-08-15 18:03 GMT+03:00 Moazzam moz...@gmail.com 
mailto:moz...@gmail.com:


Thanks Alvaro, however, I do not think this is related to the dlr
type. Most of the time its working fine only couple of time we see
this. For example   there were 146 such occurrence out of 28580
where we got this error which is about 5% of the total SMS sent on
that day.

[kannel]# cat gateway.log |grep 2015-08-14|grep -c got DLR but
could not find message
146

[kannel]# cat access.log|grep 2015-08-14|grep -c Sent
28580

Perhaps the final DLR is not reach in due time and causing this.
Is there anyway to fine tune this with a configuration change?


Hi. Do you send multipart MT? Kannel only asks for DLR for the first 
part of the MT, but many SMSC operators sending for all parts DLR 
reports that's why you might be getting such errors in your error log.


You can check by sending multipart message (for coding=0 it would be 
more than 140 symbols or for coding=2 70).





On 8/14/2015 7:39 PM, Alvaro Cornejo wrote:

Hi

Check the format of dlr-id some smsc use hex and some dec.
Adjust kannel config accordingly

I think the parameter to adjust is dlr-type

Regards


|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde
cualquier celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2
vias via SMS y GPRS online
  Visitenos en www.perusms.com
http://www.perusms.com http://www.perusms.com


On Fri, Aug 14, 2015 at 8:48 AM, Moazzam moz...@gmail.com
mailto:moz...@gmail.com mailto:moz...@gmail.com
mailto:moz...@gmail.com wrote:

Hi,

I have a production kannel v1.4.4 instance running with
sqlbox and
opensmppbox  along with mysql as DLR storage. So far so
good but
I am facing an issue with the DLR where DLR are being
queued  and
strange error related to the message id  destination is
appearing
the the gateway log as below. Please advise how to get rid
of this
problem.

2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP[crs]: Got PDU:
2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP PDU
0x7fceba10 dump:
2015-06-23 01:33:00 [32056] [6] DEBUG:  type_name: deliver_sm
2015-06-23 01:33:00 [32056] [6] DEBUG:  command_id: 5 =
0x0005
2015-06-23 01:33:00 [32056] [6] DEBUG:  command_status: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  sequence_number: 2 =
0x0002
2015-06-23 01:33:00 [32056] [6] DEBUG:  service_type: NULL
2015-06-23 01:33:00 [32056] [6] DEBUG:  source_addr_ton: 1 =
0x0001
2015-06-23 01:33:00 [32056] [6] DEBUG:  source_addr_npi: 1 =
0x0001
2015-06-23 01:33:00 [32056] [6] DEBUG:  source_addr:
2xxx
2015-06-23 01:33:00 [32056] [6] DEBUG:  dest_addr_ton: 5 =
0x0005
2015-06-23 01:33:00 [32056] [6] DEBUG:  dest_addr_npi: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  destination_addr:
Zx
2015-06-23 01:33:00 [32056] [6] DEBUG:  esm_class: 4 =
0x0004
2015-06-23 01:33:00 [32056] [6] DEBUG:  protocol_id: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  priority_flag: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:
schedule_delivery_time: NULL
2015-06-23 01:33:00 [32056] [6] DEBUG:  validity_period: NULL
2015-06-23 01:33:00 [32056] [6] DEBUG:
registered_delivery: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:
replace_if_present_flag: 0
= 0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  data_coding: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  sm_default_msg_id: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  sm_length: 112 =
0x0070
2015-06-23 01:33:00 [32056] [6] DEBUG:  short_message:
2015-06-23 01:33:00 [32056] [6] DEBUG:Octet string at
0x7fceb0001110:
2015-06-23 01:33:00 [32056] [6] DEBUG: len:  112
2015-06-23 01:33:00 [32056] [6] DEBUG: size: 113
2015-06-23 01:33:00 [32056] [6] DEBUG: immutable: 0
2015-06-23 01:33:00 [32056] [6] DEBUG: data: 69 64 3a 35 39
33 38 35 38 38 35 31 34 38 33 30  

Re: DLR issue on Kannel 1.4.4

2015-08-15 Thread Moazzam
Thanks Alvaro, however, I do not think this is related to the dlr type. 
Most of the time its working fine only couple of time we see this. For 
example   there were 146 such occurrence out of 28580 where we got this 
error which is about 5% of the total SMS sent on that day.


[kannel]# cat gateway.log |grep 2015-08-14|grep -c got DLR but could 
not find message

146

[kannel]# cat access.log|grep 2015-08-14|grep -c Sent
28580

Perhaps the final DLR is not reach in due time and causing this. Is 
there anyway to fine tune this with a configuration change?



On 8/14/2015 7:39 PM, Alvaro Cornejo wrote:

Hi

Check the format of dlr-id some smsc use hex and some dec. Adjust 
kannel config accordingly


I think the parameter to adjust is dlr-type

Regards

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier 
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via 
SMS y GPRS online

  Visitenos en www.perusms.com http://www.perusms.com

On Fri, Aug 14, 2015 at 8:48 AM, Moazzam moz...@gmail.com 
mailto:moz...@gmail.com wrote:


Hi,

I have a production kannel v1.4.4 instance running with sqlbox and
opensmppbox  along with mysql as DLR storage.  So far so good but
I am facing an issue with the DLR where DLR are being queued  and
strange error related to the message id  destination is appearing
the the gateway log as below. Please advise how to get rid of this
problem.

2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP[crs]: Got PDU:
2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP PDU 0x7fceba10 dump:
2015-06-23 01:33:00 [32056] [6] DEBUG:   type_name: deliver_sm
2015-06-23 01:33:00 [32056] [6] DEBUG:   command_id: 5 = 0x0005
2015-06-23 01:33:00 [32056] [6] DEBUG:   command_status: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:   sequence_number: 2 =
0x0002
2015-06-23 01:33:00 [32056] [6] DEBUG:   service_type: NULL
2015-06-23 01:33:00 [32056] [6] DEBUG:   source_addr_ton: 1 =
0x0001
2015-06-23 01:33:00 [32056] [6] DEBUG:   source_addr_npi: 1 =
0x0001
2015-06-23 01:33:00 [32056] [6] DEBUG:   source_addr: 2xxx
2015-06-23 01:33:00 [32056] [6] DEBUG:   dest_addr_ton: 5 = 0x0005
2015-06-23 01:33:00 [32056] [6] DEBUG:   dest_addr_npi: 0 = 0x
2015-06-23 01:33:00 [32056] [6] DEBUG:   destination_addr: Zx
2015-06-23 01:33:00 [32056] [6] DEBUG:   esm_class: 4 = 0x0004
2015-06-23 01:33:00 [32056] [6] DEBUG:   protocol_id: 0 = 0x
2015-06-23 01:33:00 [32056] [6] DEBUG:   priority_flag: 0 = 0x
2015-06-23 01:33:00 [32056] [6] DEBUG:  schedule_delivery_time: NULL
2015-06-23 01:33:00 [32056] [6] DEBUG:   validity_period: NULL
2015-06-23 01:33:00 [32056] [6] DEBUG:  registered_delivery: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG: replace_if_present_flag: 0
= 0x
2015-06-23 01:33:00 [32056] [6] DEBUG:   data_coding: 0 = 0x
2015-06-23 01:33:00 [32056] [6] DEBUG:   sm_default_msg_id: 0 =
0x
2015-06-23 01:33:00 [32056] [6] DEBUG:   sm_length: 112 = 0x0070
2015-06-23 01:33:00 [32056] [6] DEBUG:   short_message:
2015-06-23 01:33:00 [32056] [6] DEBUG:Octet string at
0x7fceb0001110:
2015-06-23 01:33:00 [32056] [6] DEBUG:  len:  112
2015-06-23 01:33:00 [32056] [6] DEBUG:  size: 113
2015-06-23 01:33:00 [32056] [6] DEBUG:  immutable: 0
2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 69 64 3a 35 39
33 38 35 38 38 35 31 34 38 33 30   id:5938588514830
2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 36 36 34 20 73
75 62 3a 30 30 31 20 64 6c 76 72   664 sub:001 dlvr
2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 64 3a 30 30 31
20 73 75 62 6d 69 74 20 64 61 74   d:001 submit dat
2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 65 3a 31 35 30
36 32 32 31 38 30 31 32 37 20 64   e:150622180127 d
2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 6f 6e 65 20 64
61 74 65 3a 31 35 30 36 32 33 30   one date:1506230
2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 31 33 33 31 33
20 73 74 61 74 3a 44 45 4c 49 56   13313 stat:DELIV
2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 52 44 20 65 72
72 3a 30 30 30 20 74 65 78 74 3a   RD err:000 text:
2015-06-23 01:33:00 [32056] [6] DEBUG:Octet string dump ends.
2015-06-23 01:33:00 [32056] [6] DEBUG:   network_error_code:
2015-06-23 01:33:00 [32056] [6] DEBUG:Octet string at
0x7fceb0002900:
2015-06-23 01:33:00 [32056] [6] DEBUG:  len:  3
2015-06-23 01:33:00 [32056] [6] DEBUG:  size: 4
2015-06-23 01:33:00 [32056] [6] DEBUG:  immutable: 0
2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 03 00 00

Re: DLR issue on Kannel 1.4.4

2015-08-14 Thread Alvaro Cornejo
Hi

Check the format of dlr-id some smsc use hex and some dec. Adjust kannel
config accordingly

I think the parameter to adjust is dlr-type

Regards

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
  Visitenos en www.perusms.com

On Fri, Aug 14, 2015 at 8:48 AM, Moazzam moz...@gmail.com wrote:

 Hi,

 I have a production kannel v1.4.4 instance running with sqlbox and
 opensmppbox  along with mysql as DLR storage.  So far so good but I am
 facing an issue with the DLR where DLR are being queued  and strange error
 related to the message id  destination is appearing the the gateway log as
 below. Please advise how to get rid of this problem.

 2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP[crs]: Got PDU:
 2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP PDU 0x7fceba10 dump:
 2015-06-23 01:33:00 [32056] [6] DEBUG:   type_name: deliver_sm
 2015-06-23 01:33:00 [32056] [6] DEBUG:   command_id: 5 = 0x0005
 2015-06-23 01:33:00 [32056] [6] DEBUG:   command_status: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   sequence_number: 2 = 0x0002
 2015-06-23 01:33:00 [32056] [6] DEBUG:   service_type: NULL
 2015-06-23 01:33:00 [32056] [6] DEBUG:   source_addr_ton: 1 = 0x0001
 2015-06-23 01:33:00 [32056] [6] DEBUG:   source_addr_npi: 1 = 0x0001
 2015-06-23 01:33:00 [32056] [6] DEBUG:   source_addr: 2xxx
 2015-06-23 01:33:00 [32056] [6] DEBUG:   dest_addr_ton: 5 = 0x0005
 2015-06-23 01:33:00 [32056] [6] DEBUG:   dest_addr_npi: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   destination_addr: Zx
 2015-06-23 01:33:00 [32056] [6] DEBUG:   esm_class: 4 = 0x0004
 2015-06-23 01:33:00 [32056] [6] DEBUG:   protocol_id: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   priority_flag: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   schedule_delivery_time: NULL
 2015-06-23 01:33:00 [32056] [6] DEBUG:   validity_period: NULL
 2015-06-23 01:33:00 [32056] [6] DEBUG:   registered_delivery: 0 =
 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG: replace_if_present_flag: 0 =
 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   data_coding: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   sm_default_msg_id: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   sm_length: 112 = 0x0070
 2015-06-23 01:33:00 [32056] [6] DEBUG:   short_message:
 2015-06-23 01:33:00 [32056] [6] DEBUG:Octet string at 0x7fceb0001110:
 2015-06-23 01:33:00 [32056] [6] DEBUG:  len:  112
 2015-06-23 01:33:00 [32056] [6] DEBUG:  size: 113
 2015-06-23 01:33:00 [32056] [6] DEBUG:  immutable: 0
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 69 64 3a 35 39 33 38 35
 38 38 35 31 34 38 33 30   id:5938588514830
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 36 36 34 20 73 75 62 3a
 30 30 31 20 64 6c 76 72   664 sub:001 dlvr
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 64 3a 30 30 31 20 73 75
 62 6d 69 74 20 64 61 74   d:001 submit dat
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 65 3a 31 35 30 36 32 32
 31 38 30 31 32 37 20 64   e:150622180127 d
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 6f 6e 65 20 64 61 74 65
 3a 31 35 30 36 32 33 30   one date:1506230
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 31 33 33 31 33 20 73 74
 61 74 3a 44 45 4c 49 56   13313 stat:DELIV
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 52 44 20 65 72 72 3a 30
 30 30 20 74 65 78 74 3a   RD err:000 text:
 2015-06-23 01:33:00 [32056] [6] DEBUG:Octet string dump ends.
 2015-06-23 01:33:00 [32056] [6] DEBUG:   network_error_code:
 2015-06-23 01:33:00 [32056] [6] DEBUG:Octet string at 0x7fceb0002900:
 2015-06-23 01:33:00 [32056] [6] DEBUG:  len:  3
 2015-06-23 01:33:00 [32056] [6] DEBUG:  size: 4
 2015-06-23 01:33:00 [32056] [6] DEBUG:  immutable: 0
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 03 00 00
   ...
 2015-06-23 01:33:00 [32056] [6] DEBUG:Octet string dump ends.
 2015-06-23 01:33:00 [32056] [6] DEBUG:   message_state: 2 = 0x0002
 2015-06-23 01:33:00 [32056] [6] DEBUG:   receipted_message_id:
 5938588514830664
 2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP PDU dump ends.
 2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP[crs] handle_pdu, got DLR
 2015-06-23 01:33:00 [32056] [6] DEBUG: DLR[internal]: Looking for DLR
 smsc=crs, ts=5938588514830664, dst=2xxx, type=1
 2015-06-23 01:33:00 [32056] [6] WARNING: DLR[internal]: DLR from SMSCcrs
 for DST2xxx not found.
 2015-06-23 01:33:00 [32056] [6] ERROR: SMPP[crs]: got DLR but could not
 find message or was not interested in it id5938588514830664
 dst2xxx, type1
 2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP[crs]: Sending PDU:
 2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP PDU 0x7fceb00016e0 dump:
 

Re: DLR Issues in Kannel with SQLBox

2015-08-04 Thread spameden
Do you receive DLR at all?

You need to check logs for your SMSC provider.

Do you use any http callback or just update via MySQL Trigger on INSERT of
sent_sms table?

It might be that under load your http server is not acting properly or
you're hitting some race condition in MySQL.

The best way is actually to use dlr_url field to insert there unique
identifier based on time (with nanoseconds) and smsc identifier.

2015-08-04 14:07 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello Everyone,


 I'm configuring Kannel with SQLbox on my Server and used with my HTTP
 application.

 Everything is fine but sometimes I'm not able to getting delivery reports
 of some numbers.

 I'm updating this DLR in my Database using mysql trigger.


 So please help me.








 *Thanks*

 *Ammar Ali*
 *Pune (M.H.)*




Re: dlr-url information

2015-04-24 Thread ha...@aeon.pk
Write a script which takes input parameters. Set dlr-url to the path of
this script. The info can be sent anywhere you want.

On Fri, Mar 27, 2015 at 6:36 PM, Nestor Durañona 
nestor.duran...@unnaki.com.py wrote:

 Hi
 I'm new in kannel, and I want to know how can I gather all the information
 of the delivery report when I send a message from kannel to a cell phone.
 I want to save that information in a database.

 Thanks.




Re: DLR not being written to redis

2015-03-31 Thread Cliff Court

Update:
I have also tried switching to the dlr-storage = internal but I still 
get the same behaviour.


I have also looked at the message 
http://www.kannel.org/pipermail/users/2011-July/016176.html, which was 
related to this issue but none of items have helped or been applicable.


The real issue seems to be that when an SMS is sent (i.e. a submit_sm) 
and and submit_sm_resp is received, no DLR is being generated. So when 
the deliver_sm comes back for that message, there is no corresponding 
DLR to update.


Any thoughts on how to fix this?

Thanks
Cliff

On 2015/03/31 12:12 PM, Cliff Court wrote:

Good Day

I've successfully installed Kannel 1.4.4 configured for the redis db. 
I have also installed redis and can execute commands using redis-cli. 
I've run bearerbox, which says it is using the hiredis API 0.11.0,  
and smsbox, and then successfully connected to an SMSC using SMPP 3.4 
and can send SMS messages. I also get the Deliver_SM DLR message back 
indicating a susccessful delivery. However, the DLR is not being 
written to the redis db.


The specific log entries in my smsc.log are
2015-03-30 20:41:03 [2747] [5] DEBUG: SMPP[x] handle_pdu, 
got DLR
2015-03-30 20:41:03 [2747] [5] DEBUG: DLR[redis]: Looking for DLR 
smsc=x, ts=6f4e3c4b-b03e-4008-0101-03275a36, 
dst=nn, type=1
2015-03-30 20:41:03 [2747] [5] WARNING: DLR[redis]: DLR from 
SMSCx for DSTnn not found.
2015-03-30 20:41:03 [2747] [5] ERROR: SMPP[x]: got DLR but 
could not find message or was not interested in it 
id6f4e3c4b-b03e-4008-0101-03275a36 dstnn, type1


I have installed redis and used the redis-cli to ensure it is working. 
I have also seen that the kannel bearerbox starts up with the redis db 
correctly.


My kannel.conf settings for redis are:
group = redis-connection
id = redisdlr
host = 127.0.0.1
port = 6379
#password = foo
database = 0
max-connections = 1

group=dlr-db
id=redisdlr
table=dlr
ttl=604800
field-smsc=smsc
field-timestamp=ts
field-destination=destination
field-source=source
field-service=service
field-url=url
field-mask=mask
field-status=status
field-boxc-id=boxc

Finally, my dlr-storage in the core setting is set to redis.

Any ideas why it is not writing the DLRs to redis?

Many thanks
Cliff





Re: DLR handling

2014-11-07 Thread Vincenzo Romano
2014-11-05 18:27 GMT+01:00 Alvaro Cornejo cornejo.alv...@gmail.com:

  - use sqlbox.

 What's that?

 Is an additional module that allows you to send/receive sms through a
 database. Instead of calling smsbox for sending an sms, just do an insert on
 a specific table and sqlbox will take care of everything.

I need to study that a little bit. But not now as I am running short in time.

  - hack kannel code to handle dlr as needed.

 This is what I have done with a three line patch: replace the
 sql_remove with an sql_update.
 In my opinion, an SQL table like the one for DLRs should only get
 INSERTs and SELECTs and never UPDATEs and DELETEs. Also for the sake
 of scalability.

 Not sure what you have done is right. As far as I understand, the table you
 define in kannel config handles kannel queue to smscs. If you disable
 deletes, your message queue will grow infinitly? You might want to
 duplicate inserts into a second table and updated that new table instead of
 poking with kannels queue table.

The motivation to all of this (little) work is that I wanted to give
the SQL DLR storage engine more power: why just keeping tracks of DLRs
and not making a complete history to be mined later?
Yes, I know. I could have been using either the dlr-url stuff or the
sqlbox to plug onto the DLR storage mechanism.
But why wasting resources when every needed piece of information was
there just to be discarded?
The application SQL DLR storage engine insists in deleting rows when
the SMS reaches its final status.
This sounded quite wrong to me and I would use that database *also* to
extract statistics about the traffic.
From the storage and computing power perspective that seemed to me not
to be a problem at all.
While writing new software (for the dlr-url) or spending more time now
(for the sqlbox) seemed not to be viable at this stage.

It looks like it's a little bit complex: it's not as trivial as said
in my previous message.
And can lead to overgrowing tables. Sure, I know. But, please, read along.

Two steps: one on the database (PostgreSQL in my case) and one on the
application.

First of all I rised the log levels of my RDBMS and looked for the
actual SQL statements to be run.
Basically I changed the DLR table from a status table (with inserts,
updates and deletes) to a history table (with only inserts) by adding
a timestamp (to the usec) column.
So, yes, the table would grow indefinitely, more about this later.
Then I created a view on that so to trick the application about the OID.
That gets created at runtime by concatenating dlr.smsc, dlr.ts,
dlr.destination, dlr.source and the timestamp (to the msec). The
application never uses that OID directly but only to look for the
right row in the dlr table:

DELETE FROM dlr WHERE oid = (SELECT oid FROM dlr WHERE smsc='mysmsc'
AND ts='21' LIMIT 1);

Finally a simple couple of triggers to intercept inserts and updates.
I could also intercept the deletes but that is useless, as explained below.

In gw/dlr.c, at the dlr_find() function I changed the code in order to
update the view with the new status instead of deleting the original
submission row. A few lines of code to be changed.
I did this because the deletion code would not propagate the new
status, while the update code did.

Et voi-la, my history table receives every single update to SMS
history, thus allowing me to record it all.
From time to time (Weekly? Monthly? Yearly?) I can clean that table up
in a number of ways PostgreSQL provides.
My solution can be made better and more robust (I am working on it).



Re: DLR handling

2014-11-07 Thread Alvaro Cornejo
Hi Vincenzo

I still wonder how does it is reflected on the status admin page. Does
queued/pending dlr/sms counters grow indefinitely?

Regards

Alvaro

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
  Visitenos en www.perusms.com

On Fri, Nov 7, 2014 at 3:20 AM, Vincenzo Romano vincenzo.rom...@notorand.it
 wrote:

 2014-11-05 18:27 GMT+01:00 Alvaro Cornejo cornejo.alv...@gmail.com:
 
   - use sqlbox.
 
  What's that?
 
  Is an additional module that allows you to send/receive sms through a
  database. Instead of calling smsbox for sending an sms, just do an
 insert on
  a specific table and sqlbox will take care of everything.

 I need to study that a little bit. But not now as I am running short in
 time.

   - hack kannel code to handle dlr as needed.
 
  This is what I have done with a three line patch: replace the
  sql_remove with an sql_update.
  In my opinion, an SQL table like the one for DLRs should only get
  INSERTs and SELECTs and never UPDATEs and DELETEs. Also for the sake
  of scalability.
 
  Not sure what you have done is right. As far as I understand, the table
 you
  define in kannel config handles kannel queue to smscs. If you disable
  deletes, your message queue will grow infinitly? You might want to
  duplicate inserts into a second table and updated that new table instead
 of
  poking with kannels queue table.

 The motivation to all of this (little) work is that I wanted to give
 the SQL DLR storage engine more power: why just keeping tracks of DLRs
 and not making a complete history to be mined later?
 Yes, I know. I could have been using either the dlr-url stuff or the
 sqlbox to plug onto the DLR storage mechanism.
 But why wasting resources when every needed piece of information was
 there just to be discarded?
 The application SQL DLR storage engine insists in deleting rows when
 the SMS reaches its final status.
 This sounded quite wrong to me and I would use that database *also* to
 extract statistics about the traffic.
 From the storage and computing power perspective that seemed to me not
 to be a problem at all.
 While writing new software (for the dlr-url) or spending more time now
 (for the sqlbox) seemed not to be viable at this stage.

 It looks like it's a little bit complex: it's not as trivial as said
 in my previous message.
 And can lead to overgrowing tables. Sure, I know. But, please, read along.

 Two steps: one on the database (PostgreSQL in my case) and one on the
 application.

 First of all I rised the log levels of my RDBMS and looked for the
 actual SQL statements to be run.
 Basically I changed the DLR table from a status table (with inserts,
 updates and deletes) to a history table (with only inserts) by adding
 a timestamp (to the usec) column.
 So, yes, the table would grow indefinitely, more about this later.
 Then I created a view on that so to trick the application about the OID.
 That gets created at runtime by concatenating dlr.smsc, dlr.ts,
 dlr.destination, dlr.source and the timestamp (to the msec). The
 application never uses that OID directly but only to look for the
 right row in the dlr table:

 DELETE FROM dlr WHERE oid = (SELECT oid FROM dlr WHERE smsc='mysmsc'
 AND ts='21' LIMIT 1);

 Finally a simple couple of triggers to intercept inserts and updates.
 I could also intercept the deletes but that is useless, as explained below.

 In gw/dlr.c, at the dlr_find() function I changed the code in order to
 update the view with the new status instead of deleting the original
 submission row. A few lines of code to be changed.
 I did this because the deletion code would not propagate the new
 status, while the update code did.

 Et voi-la, my history table receives every single update to SMS
 history, thus allowing me to record it all.
 From time to time (Weekly? Monthly? Yearly?) I can clean that table up
 in a number of ways PostgreSQL provides.
 My solution can be made better and more robust (I am working on it).



Re: DLR handling

2014-11-05 Thread Christopher Burke

This means that, for example, if I 
submit a message that cannot be delivered immediately (for some 
reason) I should get a DLR for enqueueing to the SMSC and later on 
one for the actual delivery to the handset. 
Is this true? 
Yes - you’ll get a DLR from the SMPP interface (depending on whom provides it) 
with an update of the state of the message in the network. You can use the 
dlr-mask for more finite control of the state (so that you do not need to 
process text strings which in my experience are rarely normalised to follow a 
standard / specification).

Do I need to implement a web service to be linked with the dlr-url 
parameter, of should I simply enable an SQL based dlr-storage? 
I use a web service for this. The GET-URL is called, which allows me to process 
the content of the message and store / forward etc as needed.

Christopher Burke
http://simulity.com
Office: +44 (0) 1248 679 281
Fax: +44 (0) 1248 660 323
Skype:krslynx



UK
Unit 8, Ash Court,
Parc Menai, Bangor,
Gwynedd, LL57 4DF,
Wales, UK

Malaysia
Level 30,
The Gardens North Tower,
Mid Valley City,
Lingkaran Syed Putra,
59200, Kuala Lumpur,
Malaysia

NOTICE: This message contains privileged  confidential information intended 
only for the use of the addressee named above. If you are not the intended 
recipient of this message, you are hereby notified that you must not 
disseminate, copy or take any action in reliance on it. If you have received 
this message in error, please notify Simulity Labs immediately. Any views 
expressed in this message are those of the individual sender except where the 
sender specifically states them to be the view of Simulity Labs


On 5 November 2014 at 13:57:02, Vincenzo Romano (vincenzo.rom...@notorand.it) 
wrote:

Hi all.  
I would like to better understand how the DLR messages are handled, in  
particular with GSM modems.  

I understood that if I submit an SMS with dlr-flag=31 I should get all  
status changes to my submission. This means that, for example, if I  
submit a message that cannot be delivered immediately (for some  
reason) I should get a DLR for enqueueing to the SMSC and later on  
one for the actual delivery to the handset.  
Is this true?  

Second, I would like to keep track of all DLR for every message (I  
undestand that usually there is only one for each message).  
Do I need to implement a web service to be linked with the dlr-url  
parameter, of should I simply enable an SQL based dlr-storage?  

Thanks in advance.  



Re: DLR handling

2014-11-05 Thread Alvaro Cornejo
Hi Vincenzo

Yes and no to your first question. You can ask your provider all
intermediate status with dlr-status=31; however it is to operator to decide
which, if any dlr status, they will provide you. They will configure this
on their smsc servers. With modems they usually only gives you final dlr
status.

Note that a dlr uses the same time as a MO message; therefore the more dlr
you receive, the less sms you can send/receive. With smpp, this might not
be an issue, but it will do with modems due to its low throughput.

Yes, in order to keep track of dlr, you need to implement your web service
-or just a script- that will handle dlr received. Dlr table that uses
kannel is for its internal use only. Records are deleted as soon as the
message is processed. That is why it is usually empty.

Regards

Alvaro

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
  Visitenos en www.perusms.com

On Wed, Nov 5, 2014 at 8:54 AM, Vincenzo Romano vincenzo.rom...@notorand.it
 wrote:

 Hi all.
 I would like to better understand how the DLR messages are handled, in
 particular with GSM modems.

 I understood that if I submit an SMS with dlr-flag=31 I should get all
 status changes to my submission. This means that, for example, if I
 submit a message that cannot be delivered immediately (for some
 reason) I should get a DLR for enqueueing to the SMSC and later on
 one for the actual delivery to the handset.
 Is this true?

 Second, I would like to keep track of all DLR for every message (I
 undestand that usually there is only one for each message).
 Do I need to implement a web service to be linked with the dlr-url
 parameter, of should I simply enable an SQL based dlr-storage?

 Thanks in advance.




Re: DLR handling

2014-11-05 Thread Vincenzo Romano
2014-11-05 15:23 GMT+01:00 Christopher Burke christopher.bu...@simulity.com:
 Do I need to implement a web service to be linked with the dlr-url
 parameter, of should I simply enable an SQL based dlr-storage?

 I use a web service for this. The GET-URL is called, which allows me to 
 process the content of the message and store / forward etc as needed.

Isn't there a way to do the same by means of a SQL dlr-storage?
If I implemented thay web service it would be to update some SQL table ...



Re: DLR handling

2014-11-05 Thread Christopher Burke
Yeah, I believe that DLR storage can be achieved using the Kannel SQLBox 
project. I think GET-URL is possibly less complex. Depends if you’re only 
storing DLRs or acting on them I guess.
Christopher Burke
http://simulity.com
Office: +44 (0) 1248 679 281
Fax: +44 (0) 1248 660 323
Skype:krslynx



UK
Unit 8, Ash Court,
Parc Menai, Bangor,
Gwynedd, LL57 4DF,
Wales, UK

Malaysia
Level 30,
The Gardens North Tower,
Mid Valley City,
Lingkaran Syed Putra,
59200, Kuala Lumpur,
Malaysia

NOTICE: This message contains privileged  confidential information intended 
only for the use of the addressee named above. If you are not the intended 
recipient of this message, you are hereby notified that you must not 
disseminate, copy or take any action in reliance on it. If you have received 
this message in error, please notify Simulity Labs immediately. Any views 
expressed in this message are those of the individual sender except where the 
sender specifically states them to be the view of Simulity Labs


On 5 November 2014 at 14:58:20, Vincenzo Romano (vincenzo.rom...@notorand.it) 
wrote:

2014-11-05 15:23 GMT+01:00 Christopher Burke christopher.bu...@simulity.com:  
 Do I need to implement a web service to be linked with the dlr-url  
 parameter, of should I simply enable an SQL based dlr-storage?  
  
 I use a web service for this. The GET-URL is called, which allows me to 
 process the content of the message and store / forward etc as needed.  

Isn't there a way to do the same by means of a SQL dlr-storage?  
If I implemented thay web service it would be to update some SQL table ...  


Re: DLR handling

2014-11-05 Thread Vincenzo Romano
2014-11-05 16:01 GMT+01:00 Christopher Burke christopher.bu...@simulity.com:
 Yeah, I believe that DLR storage can be achieved using the Kannel SQLBox
 project. I think GET-URL is possibly less complex. Depends if you’re only
 storing DLRs or acting on them I guess.

I don't want to write another program when all other bits seems to be
already there!
From the source code I can see a set of functions to update the DLR
storage, one for each different SQL backend.
But what I see in the reality is that the DLR storage gets only
INSERTs (upon submission) and DELETEs (upon delivery).
No UPDATE at all, even if I asked for a dlr-mask=31.
Isn't there a way to trigger those updates?



Re: DLR handling

2014-11-05 Thread Christopher Burke
I'm not too sure, I saw the sqlbox as a bit overkill / heavy for my needs.
I guess they're using insert instead of update as they're not updating a
record but adding a new record (I.e. Dlrs mean different things, so an
update is misleading).

If you want to just store dlr, sqlbox is probably fine, but I still think
it's a bit overkill. I have a nodejs script which is parsing my dlr at over
2.5k a second, and adding a db shouldn't be more than a few lines but will
probably bring it down lower although I expect it's easier to scale node
than it is to scale kannel
On 5 Nov 2014 15:11, Vincenzo Romano vincenzo.rom...@notorand.it wrote:

 2014-11-05 16:01 GMT+01:00 Christopher Burke 
 christopher.bu...@simulity.com:
  Yeah, I believe that DLR storage can be achieved using the Kannel SQLBox
  project. I think GET-URL is possibly less complex. Depends if you’re only
  storing DLRs or acting on them I guess.

 I don't want to write another program when all other bits seems to be
 already there!
 From the source code I can see a set of functions to update the DLR
 storage, one for each different SQL backend.
 But what I see in the reality is that the DLR storage gets only
 INSERTs (upon submission) and DELETEs (upon delivery).
 No UPDATE at all, even if I asked for a dlr-mask=31.
 Isn't there a way to trigger those updates?



Re: DLR handling

2014-11-05 Thread Alvaro Cornejo
Hi

Those sql commands are for kannel internal queue management only. That is
why there is no UPDATE.

You have 3 options:

- do your own dlr handler. It can be as simple as a php script that
receives the call and insert info in a database. You use dlr-url to call it.
- use sqlbox.
- hack kannel code to handle dlr as needed.

Regards

Alvaro

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
  Visitenos en www.perusms.com

On Wed, Nov 5, 2014 at 10:10 AM, Vincenzo Romano 
vincenzo.rom...@notorand.it wrote:

 2014-11-05 16:01 GMT+01:00 Christopher Burke 
 christopher.bu...@simulity.com:
  Yeah, I believe that DLR storage can be achieved using the Kannel SQLBox
  project. I think GET-URL is possibly less complex. Depends if you're only
  storing DLRs or acting on them I guess.

 I don't want to write another program when all other bits seems to be
 already there!
 From the source code I can see a set of functions to update the DLR
 storage, one for each different SQL backend.
 But what I see in the reality is that the DLR storage gets only
 INSERTs (upon submission) and DELETEs (upon delivery).
 No UPDATE at all, even if I asked for a dlr-mask=31.
 Isn't there a way to trigger those updates?




Re: DLR handling

2014-11-05 Thread Vincenzo Romano
2014-11-05 17:54 GMT+01:00 Alvaro Cornejo cornejo.alv...@gmail.com:
 Hi

 Those sql commands are for kannel internal queue management only. That is
 why there is no UPDATE.

 You have 3 options:

 - do your own dlr handler. It can be as simple as a php script that receives
 the call and insert info in a database. You use dlr-url to call it.

For a number of non-technical reasons I cannot do this.

 - use sqlbox.

What's that?

 - hack kannel code to handle dlr as needed.

This is what I have done with a three line patch: replace the
sql_remove with an sql_update.
In my opinion, an SQL table like the one for DLRs should only get
INSERTs and SELECTs and never UPDATEs and DELETEs. Also for the sake
of scalability.

 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y
 GPRS online
   Visitenos en www.perusms.com

 On Wed, Nov 5, 2014 at 10:10 AM, Vincenzo Romano
 vincenzo.rom...@notorand.it wrote:

 2014-11-05 16:01 GMT+01:00 Christopher Burke
 christopher.bu...@simulity.com:
  Yeah, I believe that DLR storage can be achieved using the Kannel SQLBox
  project. I think GET-URL is possibly less complex. Depends if you’re
  only
  storing DLRs or acting on them I guess.

 I don't want to write another program when all other bits seems to be
 already there!
 From the source code I can see a set of functions to update the DLR
 storage, one for each different SQL backend.
 But what I see in the reality is that the DLR storage gets only
 INSERTs (upon submission) and DELETEs (upon delivery).
 No UPDATE at all, even if I asked for a dlr-mask=31.
 Isn't there a way to trigger those updates?





Re: DLR handling

2014-11-05 Thread Alvaro Cornejo
  - use sqlbox.

 What's that?

Is an additional module that allows you to send/receive sms through a
database. Instead of calling smsbox for sending an sms, just do an insert
on a specific table and sqlbox will take care of everything.



  - hack kannel code to handle dlr as needed.

 This is what I have done with a three line patch: replace the
 sql_remove with an sql_update.
 In my opinion, an SQL table like the one for DLRs should only get
 INSERTs and SELECTs and never UPDATEs and DELETEs. Also for the sake
 of scalability.

Not sure what you have done is right. As far as I understand, the table you
define in kannel config handles kannel queue to smscs. If you disable
deletes, your message queue will grow infinitly? You might want to
duplicate inserts into a second table and updated that new table instead of
poking with kannels queue table.

Regards

Alvaro


Re: DLR handling

2014-11-05 Thread Vincenzo Romano
2014-11-05 17:49 GMT+01:00 Christopher Burke christopher.bu...@simulity.com:
 I'm not too sure, I saw the sqlbox as a bit overkill / heavy for my needs. I
 guess they're using insert instead of update as they're not updating a
 record but adding a new record (I.e. Dlrs mean different things, so an
 update is misleading).

 If you want to just store dlr, sqlbox is probably fine, but I still think
 it's a bit overkill. I have a nodejs script which is parsing my dlr at over
 2.5k a second, and adding a db shouldn't be more than a few lines but will
 probably bring it down lower although I expect it's easier to scale node
 than it is to scale kannel

 On 5 Nov 2014 15:11, Vincenzo Romano vincenzo.rom...@notorand.it wrote:

 2014-11-05 16:01 GMT+01:00 Christopher Burke
 christopher.bu...@simulity.com:
  Yeah, I believe that DLR storage can be achieved using the Kannel SQLBox
  project. I think GET-URL is possibly less complex. Depends if you’re
  only
  storing DLRs or acting on them I guess.

 I don't want to write another program when all other bits seems to be
 already there!
 From the source code I can see a set of functions to update the DLR
 storage, one for each different SQL backend.
 But what I see in the reality is that the DLR storage gets only
 INSERTs (upon submission) and DELETEs (upon delivery).
 No UPDATE at all, even if I asked for a dlr-mask=31.
 Isn't there a way to trigger those updates?

In my case, Kannel would act as just a ... SMS gateway.
All DLR processing on SMSs would happen through the database.
Kannel can scale-up quite easily as you can have multiple instances on
multiple network nodes.
My RDBMS is PostgreSQL which can also scale-up quite easily.
The actual SMS processing would happen through the database.



Re: dlr-url routing failure

2014-08-21 Thread Alvaro Cornejo
Hi Alejandro

Change %26type%3D%25ddlr-mask=31 with %26type%3D25%26dlr-mask%3D31

Note that what you request as dlr is not necessarily what you will receive.
Carriers define which dlr status will they forward. Some disable
intermediate status, some allow all of them.

Regards

Alvaro



|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
  Visitenos en www.perusms.com


On Thu, Aug 21, 2014 at 11:22 AM, Alejandro Mussi alemu...@gmail.com
wrote:

 Hi guys,

 My kannel is not sending my dlr-url when type=1. I get it when type=16 and
 type=8.

 Here is what log saids:

 2014-08-21 12:33:22 [2202] [7] DEBUG: DLR[internal]: Looking for DLR
 smsc=tigo, ts=11e22675ee6, dst=595981414913, type=1

 2014-08-21 12:33:22 [2202] [7] WARNING: DLR[internal]: DLR from SMSCtigo
 for DST595981414913 not found.

 2014-08-21 12:33:22 [2202] [7] ERROR: SMPP[tigo]: got DLR but could not
 find message or was not interested in it id11e22675ee6 dst595981414913,
 type1


 Here is my config files


 # SMS USER GROUP


 group = sendsms-user

 username = xxx

 password = yyy

 concatenation = true

 max-messages = 3

 max-messages = 10


 Here is the call to kannel


 http://localhost:13013/cgi-bin/sendsms?username=xxxpassword=yyyto=+595981414913from=1244binfo=CCHURtext=Prueba+de+envio+sms+2smsc=tigodlr-url=http%3A%2F%2Flocalhost%2Fsms%2Fapi%2Fdlr.php%3FmyId%3D1212%26type%3D%25ddlr-mask=31
 Thanks for the help

 Alejandro
 --
 -
 Alejandro Mussi Campos Cervera



Re: dlr-url routing failure

2014-08-21 Thread Alejandro Mussi
Hi Alvaro,

If i replace, it does not send dlr at all. According to the manual the
dlr-mask is not an param in the dlr-url.

Best






On Thu, Aug 21, 2014 at 1:37 PM, Alvaro Cornejo cornejo.alv...@gmail.com
wrote:

 Hi Alejandro

 Change %26type%3D%25ddlr-mask=31 with %26type%3D25%26dlr-mask%3D31

 Note that what you request as dlr is not necessarily what you will
 receive. Carriers define which dlr status will they forward. Some disable
 intermediate status, some allow all of them.

 Regards

 Alvaro




 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
 y GPRS online
   Visitenos en www.perusms.com


 On Thu, Aug 21, 2014 at 11:22 AM, Alejandro Mussi alemu...@gmail.com
 wrote:

 Hi guys,

 My kannel is not sending my dlr-url when type=1. I get it when type=16
 and type=8.

 Here is what log saids:

 2014-08-21 12:33:22 [2202] [7] DEBUG: DLR[internal]: Looking for DLR
 smsc=tigo, ts=11e22675ee6, dst=595981414913, type=1

 2014-08-21 12:33:22 [2202] [7] WARNING: DLR[internal]: DLR from
 SMSCtigo for DST595981414913 not found.

 2014-08-21 12:33:22 [2202] [7] ERROR: SMPP[tigo]: got DLR but could not
 find message or was not interested in it id11e22675ee6 dst595981414913,
 type1


 Here is my config files


 # SMS USER GROUP


 group = sendsms-user

 username = xxx

 password = yyy

 concatenation = true

 max-messages = 3

 max-messages = 10


 Here is the call to kannel


 http://localhost:13013/cgi-bin/sendsms?username=xxxpassword=yyyto=+595981414913from=1244binfo=CCHURtext=Prueba+de+envio+sms+2smsc=tigodlr-url=http%3A%2F%2Flocalhost%2Fsms%2Fapi%2Fdlr.php%3FmyId%3D1212%26type%3D%25ddlr-mask=31
 Thanks for the help

 Alejandro
 --
 -
 Alejandro Mussi Campos Cervera





-- 
-
Alejandro Mussi Campos Cervera


Re: dlr-url routing failure

2014-08-21 Thread spameden
2014-08-21 23:03 GMT+04:00 Alejandro Mussi alemu...@gmail.com:

 Hi Alvaro,

 If i replace, it does not send dlr at all. According to the manual the
 dlr-mask is not an param in the dlr-url.

 Best


You're correct.

Problem is with your SMSC provider. As long as you see only 8 and 16, first
status means ACK and sent by kannel itself, 16 means sms was forbidden by
your SMSC provider, so contact them and resolve with them.






 On Thu, Aug 21, 2014 at 1:37 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 Hi Alejandro

 Change %26type%3D%25ddlr-mask=31 with %26type%3D25%26dlr-mask%3D31

 Note that what you request as dlr is not necessarily what you will
 receive. Carriers define which dlr status will they forward. Some disable
 intermediate status, some allow all of them.

 Regards

 Alvaro




 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, Aug 21, 2014 at 11:22 AM, Alejandro Mussi alemu...@gmail.com
 wrote:

 Hi guys,

 My kannel is not sending my dlr-url when type=1. I get it when type=16
 and type=8.

 Here is what log saids:

 2014-08-21 12:33:22 [2202] [7] DEBUG: DLR[internal]: Looking for DLR
 smsc=tigo, ts=11e22675ee6, dst=595981414913, type=1

 2014-08-21 12:33:22 [2202] [7] WARNING: DLR[internal]: DLR from
 SMSCtigo for DST595981414913 not found.

 2014-08-21 12:33:22 [2202] [7] ERROR: SMPP[tigo]: got DLR but could not
 find message or was not interested in it id11e22675ee6 dst595981414913,
 type1


 Here is my config files


 # SMS USER GROUP


 group = sendsms-user

 username = xxx

 password = yyy

 concatenation = true

 max-messages = 3

 max-messages = 10


 Here is the call to kannel


 http://localhost:13013/cgi-bin/sendsms?username=xxxpassword=yyyto=+595981414913from=1244binfo=CCHURtext=Prueba+de+envio+sms+2smsc=tigodlr-url=http%3A%2F%2Flocalhost%2Fsms%2Fapi%2Fdlr.php%3FmyId%3D1212%26type%3D%25ddlr-mask=31
 Thanks for the help

 Alejandro
 --
 -
 Alejandro Mussi Campos Cervera





 --
 -
 Alejandro Mussi Campos Cervera



Re: dlr-url routing failure

2014-08-21 Thread Alvaro Cornejo
Hi

Sorry you are right. Can you test this:

dlr-mask=31dlr-url=
http://localhost/sms/api/dlr.php?myId=1212%26type%3D%25d





Basically type should


|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
  Visitenos en www.perusms.com


On Thu, Aug 21, 2014 at 2:34 PM, spameden spame...@gmail.com wrote:




 2014-08-21 23:03 GMT+04:00 Alejandro Mussi alemu...@gmail.com:

  Hi Alvaro,

 If i replace, it does not send dlr at all. According to the manual the
 dlr-mask is not an param in the dlr-url.

 Best


 You're correct.

 Problem is with your SMSC provider. As long as you see only 8 and 16,
 first status means ACK and sent by kannel itself, 16 means sms was
 forbidden by your SMSC provider, so contact them and resolve with them.






 On Thu, Aug 21, 2014 at 1:37 PM, Alvaro Cornejo cornejo.alv...@gmail.com
  wrote:

 Hi Alejandro

 Change %26type%3D%25ddlr-mask=31 with %26type%3D25%26dlr-mask%3D31

 Note that what you request as dlr is not necessarily what you will
 receive. Carriers define which dlr status will they forward. Some disable
 intermediate status, some allow all of them.

 Regards

 Alvaro




 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, Aug 21, 2014 at 11:22 AM, Alejandro Mussi alemu...@gmail.com
 wrote:

 Hi guys,

 My kannel is not sending my dlr-url when type=1. I get it when type=16
 and type=8.

 Here is what log saids:

 2014-08-21 12:33:22 [2202] [7] DEBUG: DLR[internal]: Looking for DLR
 smsc=tigo, ts=11e22675ee6, dst=595981414913, type=1

 2014-08-21 12:33:22 [2202] [7] WARNING: DLR[internal]: DLR from
 SMSCtigo for DST595981414913 not found.

 2014-08-21 12:33:22 [2202] [7] ERROR: SMPP[tigo]: got DLR but could not
 find message or was not interested in it id11e22675ee6 dst595981414913,
 type1


 Here is my config files


 # SMS USER GROUP


 group = sendsms-user

 username = xxx

 password = yyy

 concatenation = true

 max-messages = 3

 max-messages = 10


 Here is the call to kannel


 http://localhost:13013/cgi-bin/sendsms?username=xxxpassword=yyyto=+595981414913from=1244binfo=CCHURtext=Prueba+de+envio+sms+2smsc=tigodlr-url=http%3A%2F%2Flocalhost%2Fsms%2Fapi%2Fdlr.php%3FmyId%3D1212%26type%3D%25ddlr-mask=31
 Thanks for the help

 Alejandro
 --
 -
 Alejandro Mussi Campos Cervera





 --
 -
 Alejandro Mussi Campos Cervera





Re: dlr-url routing failure

2014-08-21 Thread Alvaro Cornejo
Hi

Re-reading your original question I saw that, in fact, you do receive the
dlr.

2014-08-21 12:33:22 [2202] [7] DEBUG: DLR[internal]: Looking for DLR
smsc=tigo, ts=11e22675ee6, dst=595981414913, type=1


However kannel is unable to track it back to original message:

2014-08-21 12:33:22 [2202] [7] WARNING: DLR[internal]: DLR from SMSCtigo
for DST595981414913 not found.

2014-08-21 12:33:22 [2202] [7] ERROR: SMPP[tigo]: got DLR but could not
find message or was not interested in it id11e22675ee6 dst595981414913,
type1


This usually means that the the message id type is wrong.

Check variable msg-id-type in user guide and set it accordingly.

Regards

Alvaro


|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
  Visitenos en www.perusms.com


On Thu, Aug 21, 2014 at 3:03 PM, Alvaro Cornejo cornejo.alv...@gmail.com
wrote:

 Hi

 Sorry you are right. Can you test this:

 dlr-mask=31dlr-url=
 http://localhost/sms/api/dlr.php?myId=1212%26type%3D%25d





 Basically type should



 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
 y GPRS online
   Visitenos en www.perusms.com


 On Thu, Aug 21, 2014 at 2:34 PM, spameden spame...@gmail.com wrote:




 2014-08-21 23:03 GMT+04:00 Alejandro Mussi alemu...@gmail.com:

  Hi Alvaro,

 If i replace, it does not send dlr at all. According to the manual the
 dlr-mask is not an param in the dlr-url.

 Best


 You're correct.

 Problem is with your SMSC provider. As long as you see only 8 and 16,
 first status means ACK and sent by kannel itself, 16 means sms was
 forbidden by your SMSC provider, so contact them and resolve with them.






 On Thu, Aug 21, 2014 at 1:37 PM, Alvaro Cornejo 
 cornejo.alv...@gmail.com wrote:

 Hi Alejandro

 Change %26type%3D%25ddlr-mask=31 with %26type%3D25%26dlr-mask%3D31

 Note that what you request as dlr is not necessarily what you will
 receive. Carriers define which dlr status will they forward. Some disable
 intermediate status, some allow all of them.

 Regards

 Alvaro




 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, Aug 21, 2014 at 11:22 AM, Alejandro Mussi alemu...@gmail.com
 wrote:

 Hi guys,

 My kannel is not sending my dlr-url when type=1. I get it when type=16
 and type=8.

 Here is what log saids:

 2014-08-21 12:33:22 [2202] [7] DEBUG: DLR[internal]: Looking for DLR
 smsc=tigo, ts=11e22675ee6, dst=595981414913, type=1

 2014-08-21 12:33:22 [2202] [7] WARNING: DLR[internal]: DLR from
 SMSCtigo for DST595981414913 not found.

 2014-08-21 12:33:22 [2202] [7] ERROR: SMPP[tigo]: got DLR but could
 not find message or was not interested in it id11e22675ee6
 dst595981414913, type1


 Here is my config files


 # SMS USER GROUP


 group = sendsms-user

 username = xxx

 password = yyy

 concatenation = true

 max-messages = 3

 max-messages = 10


 Here is the call to kannel


 http://localhost:13013/cgi-bin/sendsms?username=xxxpassword=yyyto=+595981414913from=1244binfo=CCHURtext=Prueba+de+envio+sms+2smsc=tigodlr-url=http%3A%2F%2Flocalhost%2Fsms%2Fapi%2Fdlr.php%3FmyId%3D1212%26type%3D%25ddlr-mask=31
 Thanks for the help

 Alejandro
 --
 -
 Alejandro Mussi Campos Cervera





 --
 -
 Alejandro Mussi Campos Cervera






Re: dlr-url routing failure

2014-08-21 Thread Alejandro Mussi
Still not working. Tried msg-id-type = 0x01 and still not working. Also
putting dlr-mask before dlr-url on the param sequence.

The thing is that i do receive the dlr when type=8 and type=16 but kannel
does not send me dlr with type=1.

If the message has been delivered to the phone.. should i have to receive 2
dlr-url? for example type 8 and type 1 or just type 1?

Best




On Thu, Aug 21, 2014 at 4:13 PM, Alvaro Cornejo cornejo.alv...@gmail.com
wrote:

 Hi

 Re-reading your original question I saw that, in fact, you do receive the
 dlr.

 2014-08-21 12:33:22 [2202] [7] DEBUG: DLR[internal]: Looking for DLR
 smsc=tigo, ts=11e22675ee6, dst=595981414913, type=1


 However kannel is unable to track it back to original message:

 2014-08-21 12:33:22 [2202] [7] WARNING: DLR[internal]: DLR from SMSCtigo
 for DST595981414913 not found.

 2014-08-21 12:33:22 [2202] [7] ERROR: SMPP[tigo]: got DLR but could not
 find message or was not interested in it id11e22675ee6 dst595981414913,
 type1


 This usually means that the the message id type is wrong.

 Check variable msg-id-type in user guide and set it accordingly.

 Regards

 Alvaro



 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
 y GPRS online
   Visitenos en www.perusms.com


 On Thu, Aug 21, 2014 at 3:03 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 Hi

 Sorry you are right. Can you test this:

 dlr-mask=31dlr-url=
 http://localhost/sms/api/dlr.php?myId=1212%26type%3D%25d





 Basically type should



 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, Aug 21, 2014 at 2:34 PM, spameden spame...@gmail.com wrote:




 2014-08-21 23:03 GMT+04:00 Alejandro Mussi alemu...@gmail.com:

  Hi Alvaro,

 If i replace, it does not send dlr at all. According to the manual the
 dlr-mask is not an param in the dlr-url.

 Best


 You're correct.

 Problem is with your SMSC provider. As long as you see only 8 and 16,
 first status means ACK and sent by kannel itself, 16 means sms was
 forbidden by your SMSC provider, so contact them and resolve with them.






 On Thu, Aug 21, 2014 at 1:37 PM, Alvaro Cornejo 
 cornejo.alv...@gmail.com wrote:

 Hi Alejandro

 Change %26type%3D%25ddlr-mask=31 with %26type%3D25%26dlr-mask%3D31

 Note that what you request as dlr is not necessarily what you will
 receive. Carriers define which dlr status will they forward. Some disable
 intermediate status, some allow all of them.

 Regards

 Alvaro




 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, Aug 21, 2014 at 11:22 AM, Alejandro Mussi alemu...@gmail.com
 wrote:

 Hi guys,

 My kannel is not sending my dlr-url when type=1. I get it when
 type=16 and type=8.

 Here is what log saids:

 2014-08-21 12:33:22 [2202] [7] DEBUG: DLR[internal]: Looking for DLR
 smsc=tigo, ts=11e22675ee6, dst=595981414913, type=1

 2014-08-21 12:33:22 [2202] [7] WARNING: DLR[internal]: DLR from
 SMSCtigo for DST595981414913 not found.

 2014-08-21 12:33:22 [2202] [7] ERROR: SMPP[tigo]: got DLR but could
 not find message or was not interested in it id11e22675ee6
 dst595981414913, type1


 Here is my config files


 # SMS USER GROUP


 group = sendsms-user

 username = xxx

 password = yyy

 concatenation = true

 max-messages = 3

 max-messages = 10


 Here is the call to kannel


 http://localhost:13013/cgi-bin/sendsms?username=xxxpassword=yyyto=+595981414913from=1244binfo=CCHURtext=Prueba+de+envio+sms+2smsc=tigodlr-url=http%3A%2F%2Flocalhost%2Fsms%2Fapi%2Fdlr.php%3FmyId%3D1212%26type%3D%25ddlr-mask=31
 Thanks for the help

 Alejandro
 --
 -
 Alejandro Mussi Campos Cervera





 --
 -
 Alejandro Mussi Campos Cervera







-- 
-
Alejandro Mussi Campos Cervera


Re: dlr-url routing failure

2014-08-21 Thread Alvaro Cornejo
Hi

dlr 8 means message has been submitted to smsc (and accepted by it)
dlr 1 means message has been delivered to phone (and stored either in SIM
or phone memory)

Also; some operators does not provide all dlr status; however as stated on
my previous mail. kannel is in fact receiving the dlr with type=1 as seen
in your smsc log.

The issue is that it does not find a match in its dlr table to track it
back.

Can you post a full log of a transaction from submitting to kannel to last
dlr ? not only the log from smsc but smsbox log. In this last log you
should see kannel calig dlr-url and dlr matching.

It might be that kannel is deleting record when receiving dlr 8 thus when
receiving dlr 1 the record for that message is gone.

Regards

Alvaro


|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
y GPRS online
  Visitenos en www.perusms.com


On Thu, Aug 21, 2014 at 4:27 PM, Alejandro Mussi alemu...@gmail.com wrote:

 Still not working. Tried msg-id-type = 0x01 and still not working. Also
 putting dlr-mask before dlr-url on the param sequence.

 The thing is that i do receive the dlr when type=8 and type=16 but kannel
 does not send me dlr with type=1.

 If the message has been delivered to the phone.. should i have to receive
 2 dlr-url? for example type 8 and type 1 or just type 1?

 Best




 On Thu, Aug 21, 2014 at 4:13 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 Hi

 Re-reading your original question I saw that, in fact, you do receive the
 dlr.

 2014-08-21 12:33:22 [2202] [7] DEBUG: DLR[internal]: Looking for DLR
 smsc=tigo, ts=11e22675ee6, dst=595981414913, type=1


 However kannel is unable to track it back to original message:

 2014-08-21 12:33:22 [2202] [7] WARNING: DLR[internal]: DLR from
 SMSCtigo for DST595981414913 not found.

 2014-08-21 12:33:22 [2202] [7] ERROR: SMPP[tigo]: got DLR but could not
 find message or was not interested in it id11e22675ee6 dst595981414913,
 type1


 This usually means that the the message id type is wrong.

 Check variable msg-id-type in user guide and set it accordingly.

 Regards

 Alvaro



 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, Aug 21, 2014 at 3:03 PM, Alvaro Cornejo cornejo.alv...@gmail.com
  wrote:

 Hi

 Sorry you are right. Can you test this:

 dlr-mask=31dlr-url=
 http://localhost/sms/api/dlr.php?myId=1212%26type%3D%25d





 Basically type should



 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, Aug 21, 2014 at 2:34 PM, spameden spame...@gmail.com wrote:




 2014-08-21 23:03 GMT+04:00 Alejandro Mussi alemu...@gmail.com:

  Hi Alvaro,

 If i replace, it does not send dlr at all. According to the manual the
 dlr-mask is not an param in the dlr-url.

 Best


 You're correct.

 Problem is with your SMSC provider. As long as you see only 8 and 16,
 first status means ACK and sent by kannel itself, 16 means sms was
 forbidden by your SMSC provider, so contact them and resolve with them.






 On Thu, Aug 21, 2014 at 1:37 PM, Alvaro Cornejo 
 cornejo.alv...@gmail.com wrote:

 Hi Alejandro

 Change %26type%3D%25ddlr-mask=31 with %26type%3D25%26dlr-mask%3D31

 Note that what you request as dlr is not necessarily what you will
 receive. Carriers define which dlr status will they forward. Some disable
 intermediate status, some allow all of them.

 Regards

 Alvaro




 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde
 cualquier celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias
 via SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, Aug 21, 2014 at 11:22 AM, Alejandro Mussi alemu...@gmail.com
  wrote:

 Hi guys,

 My kannel is not sending my dlr-url when type=1. I get it when
 type=16 and type=8.

 Here is what log saids:

 2014-08-21 12:33:22 [2202] [7] DEBUG: DLR[internal]: Looking for DLR
 smsc=tigo, ts=11e22675ee6, dst=595981414913, type=1

 2014-08-21 12:33:22 [2202] [7] WARNING: DLR[internal]: DLR from
 SMSCtigo for DST595981414913 not found.

 2014-08-21 12:33:22 [2202] [7] ERROR: SMPP[tigo]: got DLR but could
 not find 

Re: dlr-url routing failure

2014-08-21 Thread Alejandro Mussi
Here goes the logs (tested with dlr-mask=3):

http://localhost:13013/cgi-bin/sendsms?username=xxxpassword=yyyto=+595981414913from=1244binfo=CMBEGtext=Prueba+de+serviciosmsc=tigodlr-mask=3dlr-url=http%3A%2F%2Flocalhost%2Fsms%2Fapi%2Fdlr.php%3FmyId%3D1212%26type%3D%25d

bearerbox.log

2014-08-21 18:47:08 [1629] [6] DEBUG: DLR[internal]: Adding DLR smsc=tigo,
ts=5400874, src=1244, dst=595981414913, mask=3, boxc=

2014-08-21 18:47:10 [1629] [7] DEBUG: Optional parameter tag (0x001e)

2014-08-21 18:47:10 [1629] [7] DEBUG: Optional parameter length read as 12

2014-08-21 18:47:10 [1629] [7] DEBUG: Optional parameter tag (0x0427)

2014-08-21 18:47:10 [1629] [7] DEBUG: Optional parameter length read as 1

2014-08-21 18:47:10 [1629] [7] DEBUG: SMPP[tigo]: Got PDU:

2014-08-21 18:47:10 [1629] [7] DEBUG: SMPP PDU 0x7f0058001560 dump:

2014-08-21 18:47:10 [1629] [7] DEBUG:   type_name: deliver_sm

2014-08-21 18:47:10 [1629] [7] DEBUG:   command_id: 5 = 0x0005

2014-08-21 18:47:10 [1629] [7] DEBUG:   command_status: 0 = 0x

2014-08-21 18:47:10 [1629] [7] DEBUG:   sequence_number: 0 = 0x

2014-08-21 18:47:10 [1629] [7] DEBUG:   service_type: NULL

2014-08-21 18:47:10 [1629] [7] DEBUG:   source_addr_ton: 1 = 0x0001

2014-08-21 18:47:10 [1629] [7] DEBUG:   source_addr_npi: 1 = 0x0001

2014-08-21 18:47:10 [1629] [7] DEBUG:   source_addr: 595981414913

2014-08-21 18:47:10 [1629] [7] DEBUG:   dest_addr_ton: 0 = 0x

2014-08-21 18:47:10 [1629] [7] DEBUG:   dest_addr_npi: 1 = 0x0001

2014-08-21 18:47:10 [1629] [7] DEBUG:   destination_addr: 1244

2014-08-21 18:47:10 [1629] [7] DEBUG:   esm_class: 4 = 0x0004

2014-08-21 18:47:10 [1629] [7] DEBUG:   protocol_id: 0 = 0x

2014-08-21 18:47:10 [1629] [7] DEBUG:   priority_flag: 0 = 0x

2014-08-21 18:47:10 [1629] [7] DEBUG:   schedule_delivery_time: NULL

2014-08-21 18:47:10 [1629] [7] DEBUG:   validity_period: NULL

2014-08-21 18:47:10 [1629] [7] DEBUG:   registered_delivery: 1 = 0x0001

2014-08-21 18:47:10 [1629] [7] DEBUG:   replace_if_present_flag: 0 =
0x

2014-08-21 18:47:10 [1629] [7] DEBUG:   data_coding: 0 = 0x

2014-08-21 18:47:10 [1629] [7] DEBUG:   sm_default_msg_id: 0 = 0x

2014-08-21 18:47:10 [1629] [7] DEBUG:   sm_length: 105 = 0x0069

2014-08-21 18:47:10 [1629] [7] DEBUG:   short_message:

2014-08-21 18:47:10 [1629] [7] DEBUG:Octet string at 0x7f0058001730:

2014-08-21 18:47:10 [1629] [7] DEBUG:  len:  105

2014-08-21 18:47:10 [1629] [7] DEBUG:  size: 106

2014-08-21 18:47:10 [1629] [7] DEBUG:  immutable: 0

2014-08-21 18:47:10 [1629] [7] DEBUG:  data: 69 64 3a 35 32 36 39 32 61
20 73 75 62 3a 30 30   id:52692a sub:00

2014-08-21 18:47:10 [1629] [7] DEBUG:  data: 31 20 64 6c 76 72 64 3a 30
30 31 20 73 75 62 6d   1 dlvrd:001 subm

2014-08-21 18:47:10 [1629] [7] DEBUG:  data: 69 74 20 64 61 74 65 3a 31
34 30 38 32 31 31 38   it date:14082118

2014-08-21 18:47:10 [1629] [7] DEBUG:  data: 31 37 20 64 6f 6e 65 20 64
61 74 65 3a 31 34 30   17 done date:140

2014-08-21 18:47:10 [1629] [7] DEBUG:  data: 38 32 31 31 38 31 38 20 73
74 61 74 3a 44 45 4c   8211818 stat:DEL

2014-08-21 18:47:10 [1629] [7] DEBUG:  data: 49 56 52 44 20 65 72 72 3a
30 30 30 20 74 65 78   IVRD err:000 tex

2014-08-21 18:47:10 [1629] [7] DEBUG:  data: 74 3a 6d 65 73 73 61 67
65t:message

2014-08-21 18:47:10 [1629] [7] DEBUG:Octet string dump ends.

2014-08-21 18:47:10 [1629] [7] DEBUG:   message_state: 2 = 0x0002

2014-08-21 18:47:10 [1629] [7] DEBUG:   receipted_message_id: 11e127be1d6

2014-08-21 18:47:10 [1629] [7] DEBUG: SMPP PDU dump ends.

2014-08-21 18:47:10 [1629] [7] DEBUG: SMPP[tigo] handle_pdu, got DLR

2014-08-21 18:47:10 [1629] [7] DEBUG: DLR[internal]: Looking for DLR
smsc=tigo, ts=1228670755286, dst=595981414913, type=1

2014-08-21 18:47:10 [1629] [7] WARNING: DLR[internal]: DLR from SMSCtigo
for DST595981414913 not found.

2014-08-21 18:47:10 [1629] [7] ERROR: SMPP[tigo]: got DLR but could not
find message or was not interested in it id1228670755286
dst595981414913, type1

2014-08-21 18:47:10 [1629] [7] DEBUG: SMPP[tigo]: Sending PDU:

2014-08-21 18:47:10 [1629] [7] DEBUG: SMPP PDU 0x7f0058000e50 dump:

2014-08-21 18:47:10 [1629] [7] DEBUG:   type_name: deliver_sm_resp

2014-08-21 18:47:10 [1629] [7] DEBUG:   command_id: 2147483653 = 0x8005

2014-08-21 18:47:10 [1629] [7] DEBUG:   command_status: 0 = 0x

2014-08-21 18:47:10 [1629] [7] DEBUG:   sequence_number: 0 = 0x

2014-08-21 18:47:10 [1629] [7] DEBUG:   message_id: NULL

2014-08-21 18:47:10 [1629] [7] DEBUG: SMPP PDU dump ends.



SMSBOX.LOG


2014-08-21 18:47:08 [1652] [2] DEBUG: HTTP: Creating HTTPClient for
`190.104.157.112'.

2014-08-21 18:47:08 [1652] [2] DEBUG: HTTP: Created HTTPClient area
0x7fb408000a90.

2014-08-21 18:47:08 [1652] [3] INFO: smsbox: Got HTTP request
/cgi-bin/sendsms from 190.104.157.112

2014-08-21 18:47:08 [1652] [3] INFO: 

Re: DLR Reports

2014-07-27 Thread ha...@aeon.pk
Mask 63 works for most of the message states.


On Thu, Jun 26, 2014 at 11:31 PM, [Digital^Dude] ® millennium@gmail.com
 wrote:

 What's your dlr-mask?
 And this may be an operator specific issue as they might only have allowed
 one retry per submit_sm from the ESME hence not allowing any messages from
 your end to be buffered.
 On Jun 26, 2014 3:32 PM, Michael Stevens michael.stev...@mcmcas.co.za
 wrote:

 Hi..

 OS: Linux
 Kannel Version: 1.50

 I use a gsm modem with dlr reports. I receive the ACK, Ack Failed,
 Success dlr.'s but not the buffered dlr when the phone where I am sending
 the message is offline.
 Any ideas?




Re: DLR Reports

2014-07-27 Thread ha...@aeon.pk
Problem is with your operator. Check with it.


On Tue, Jul 1, 2014 at 7:25 PM, Michael Stevens 
michael.stev...@mcmcas.co.za wrote:

 Hi….

 I have installed Kannel 1.50 and is using dlr for ams status reports. The
 mask I am using is 31.
 Everything works fine. I get the ACK/NAC report and  the successful
 delivery report. (if the device is online).

 However, when I send a sms to a device that is offline, I only get the
 ACK/NAC report. When I switch the device back on again, the sms is
 delivered, but I do not get
 the success report.

 Any ideas?





Re: DLR does not match message id

2014-07-18 Thread Niel Smith
Hi Mario,

Would it be possible to supply the full submit_sm, submit_sm_resp, and
deliver_sm PDU dumps?


On 18 July 2014 22:12, Mario Noboa mnobo...@gmail.com wrote:


 Hi list,

 I got a DLR problem with an operator.

 When sent a submit_sm, kannel receipt a message id:

 *message_id: 1e13a15*
 *DLR[internal]: Adding DLR smsc=SMSC1, ts=31537685, src=30100,
 dst=XXX, mask=31, boxc=*


 But its DLR arrives with another id:

 *2014-07-17 12:45:16 [32271] [35] DEBUG: DLR[internal]: Looking for DLR
 smsc=SMSC1, ts=613852054, dst=975647918, type=1*
 *2014-07-17 12:45:16 [32271] [35] WARNING: DLR[internal]: DLR from
 SMSCSMSC1 for DST975647918 not found.*
 *2014-07-17 12:45:16 [32271] [35] ERROR: SMPP[SMSC1]: got DLR but could
 not find message or was not interested in it id613852054 dstX,
 type1*


 if you notice both are in decimal and they are different. *31537685 and *
 *613852054*

 I tried to configure version 33 to use Timestamp, but they don't let me
 connect in that way.  There is any way to use timestamp instead of message
 id?

 Thanks for your answers!

 Mario



Re: DLR does not match message id

2014-07-18 Thread Mario Noboa
Of course Niel, thanks!!!




2014-07-18 15:30 GMT-05:00 Niel Smith daniel.alfred.sm...@gmail.com:

 Hi Mario,

 Would it be possible to supply the full submit_sm, submit_sm_resp, and
 deliver_sm PDU dumps?


 On 18 July 2014 22:12, Mario Noboa mnobo...@gmail.com wrote:


 Hi list,

 I got a DLR problem with an operator.

 When sent a submit_sm, kannel receipt a message id:

 *message_id: 1e13a15*
 *DLR[internal]: Adding DLR smsc=SMSC1, ts=31537685, src=30100,
 dst=XXX, mask=31, boxc=*


 But its DLR arrives with another id:

 *2014-07-17 12:45:16 [32271] [35] DEBUG: DLR[internal]: Looking for DLR
 smsc=SMSC1, ts=613852054, dst=975647918, type=1*
 *2014-07-17 12:45:16 [32271] [35] WARNING: DLR[internal]: DLR from
 SMSCSMSC1 for DST975647918 not found.*
 *2014-07-17 12:45:16 [32271] [35] ERROR: SMPP[SMSC1]: got DLR but could
 not find message or was not interested in it id613852054 dstX,
 type1*


 if you notice both are in decimal and they are different. *31537685 and *
 *613852054*

 I tried to configure version 33 to use Timestamp, but they don't let me
 connect in that way.  There is any way to use timestamp instead of message
 id?

 Thanks for your answers!

 Mario



2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: throughput (0.00,20.00)
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: Manually forced source 
addr ton = 0, source add npi = 0
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: Manually forced dest addr 
ton = 1, dest add npi = 1
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: Sending PDU:
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU 0x11f4cb80 dump:
2014-07-17 12:45:12 [32271] [36] DEBUG:   type_name: submit_sm
2014-07-17 12:45:12 [32271] [36] DEBUG:   command_id: 4 = 0x0004
2014-07-17 12:45:12 [32271] [36] DEBUG:   command_status: 0 = 0x
2014-07-17 12:45:12 [32271] [36] DEBUG:   sequence_number: 5579 = 0x15cb
2014-07-17 12:45:12 [32271] [36] DEBUG:   service_type: NULL
2014-07-17 12:45:12 [32271] [36] DEBUG:   source_addr_ton: 0 = 0x
2014-07-17 12:45:12 [32271] [36] DEBUG:   source_addr_npi: 0 = 0x
2014-07-17 12:45:12 [32271] [36] DEBUG:   source_addr: 30100
2014-07-17 12:45:12 [32271] [36] DEBUG:   dest_addr_ton: 1 = 0x0001
2014-07-17 12:45:12 [32271] [36] DEBUG:   dest_addr_npi: 1 = 0x0001
2014-07-17 12:45:12 [32271] [36] DEBUG:   destination_addr: XXX
2014-07-17 12:45:12 [32271] [36] DEBUG:   esm_class: 3 = 0x0003
2014-07-17 12:45:12 [32271] [36] DEBUG:   protocol_id: 0 = 0x
2014-07-17 12:45:12 [32271] [36] DEBUG:   priority_flag: 0 = 0x
2014-07-17 12:45:12 [32271] [36] DEBUG:   schedule_delivery_time: NULL
2014-07-17 12:45:12 [32271] [36] DEBUG:   validity_period: NULL
2014-07-17 12:45:12 [32271] [36] DEBUG:   registered_delivery: 1 = 0x0001
2014-07-17 12:45:12 [32271] [36] DEBUG:   replace_if_present_flag: 0 = 
0x
2014-07-17 12:45:12 [32271] [36] DEBUG:   data_coding: 0 = 0x
2014-07-17 12:45:12 [32271] [36] DEBUG:   sm_default_msg_id: 0 = 0x
2014-07-17 12:45:12 [32271] [36] DEBUG:   sm_length: 17 = 0x0011
2014-07-17 12:45:12 [32271] [36] DEBUG:   short_message: test message 
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU dump ends.
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: throughput (1.00,20.00)
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: throughput (1.00,20.00)
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: Got PDU:
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU 0x11f4cb80 dump:
2014-07-17 12:45:12 [32271] [36] DEBUG:   type_name: submit_sm_resp
2014-07-17 12:45:12 [32271] [36] DEBUG:   command_id: 2147483652 = 0x8004
2014-07-17 12:45:12 [32271] [36] DEBUG:   command_status: 0 = 0x
2014-07-17 12:45:12 [32271] [36] DEBUG:   sequence_number: 5579 = 0x15cb
2014-07-17 12:45:12 [32271] [36] DEBUG:   message_id: 1e13a15
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU dump ends.
2014-07-17 12:45:12 [32271] [36] DEBUG: DLR[internal]: Adding DLR smsc=SMSC1, 
ts=31537685, src=30100, dst=XXX, mask=31, boxc=
2014-07-17 12:45:12 [32271] [36] DEBUG: SMSC[SMSC1]: creating DLR message
2014-07-17 12:45:12 [32271] [36] DEBUG: SMSC[SMSC1]: DLR = 
http://10.239.0.37/esme/dlrbulk.php?idt=46246228prioridad=4tiempo=%ttype=%dtelefono=%pshort=%Pmsgid=%Fsmscid=%itype2=%Destado=%A
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: throughput (1.00,20.00)


2014-07-17 12:45:16 [32271] [35] DEBUG: SMPP[SMSC1]: Got PDU:
2014-07-17 12:45:16 [32271] [35] DEBUG: SMPP PDU 0x11da4330 dump:
2014-07-17 12:45:16 [32271] [35] DEBUG:   type_name: deliver_sm
2014-07-17 12:45:16 [32271] [35] DEBUG:   command_id: 5 = 0x0005
2014-07-17 12:45:16 [32271] [35] DEBUG:   command_status: 0 = 0x
2014-07-17 12:45:16 [32271] [35] DEBUG:   sequence_number: 219 = 0x00db
2014-07-17 12:45:16 [32271] [35] DEBUG:   service_type: NULL
2014-07-17 12:45:16 [32271] [35] DEBUG:   source_addr_ton: 0 = 0x
2014-07-17 12:45:16 

Re: DLR does not match message id

2014-07-18 Thread spameden
It looks like your SMSC operator gives hex number in submit_sm packet and
hex number in deliver_sm, so you need to add this in smsc group
configuration:

msg-id-type = 0x02



2014-07-19 0:40 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Of course Niel, thanks!!!




 2014-07-18 15:30 GMT-05:00 Niel Smith daniel.alfred.sm...@gmail.com:

 Hi Mario,

 Would it be possible to supply the full submit_sm, submit_sm_resp, and
 deliver_sm PDU dumps?


 On 18 July 2014 22:12, Mario Noboa mnobo...@gmail.com wrote:


 Hi list,

 I got a DLR problem with an operator.

 When sent a submit_sm, kannel receipt a message id:

 *message_id: 1e13a15*
 *DLR[internal]: Adding DLR smsc=SMSC1, ts=31537685, src=30100,
 dst=XXX, mask=31, boxc=*


 But its DLR arrives with another id:

 *2014-07-17 12:45:16 [32271] [35] DEBUG: DLR[internal]: Looking for DLR
 smsc=SMSC1, ts=613852054, dst=975647918, type=1*
 *2014-07-17 12:45:16 [32271] [35] WARNING: DLR[internal]: DLR from
 SMSCSMSC1 for DST975647918 not found.*
 *2014-07-17 12:45:16 [32271] [35] ERROR: SMPP[SMSC1]: got DLR but could
 not find message or was not interested in it id613852054 dstX,
 type1*


 if you notice both are in decimal and they are different. *31537685
 and **613852054*

 I tried to configure version 33 to use Timestamp, but they don't let me
 connect in that way.  There is any way to use timestamp instead of message
 id?

 Thanks for your answers!

 Mario






Re: DLR does not match message id

2014-07-18 Thread spameden
err, I meant hex in submit_sm and decimal in deliver_sm packets.


2014-07-19 1:04 GMT+04:00 spameden spame...@gmail.com:

 It looks like your SMSC operator gives hex number in submit_sm packet and
 hex number in deliver_sm, so you need to add this in smsc group
 configuration:

 msg-id-type = 0x02



 2014-07-19 0:40 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Of course Niel, thanks!!!




 2014-07-18 15:30 GMT-05:00 Niel Smith daniel.alfred.sm...@gmail.com:

 Hi Mario,

 Would it be possible to supply the full submit_sm, submit_sm_resp, and
 deliver_sm PDU dumps?


 On 18 July 2014 22:12, Mario Noboa mnobo...@gmail.com wrote:


 Hi list,

 I got a DLR problem with an operator.

 When sent a submit_sm, kannel receipt a message id:

 *message_id: 1e13a15*
 *DLR[internal]: Adding DLR smsc=SMSC1, ts=31537685, src=30100,
 dst=XXX, mask=31, boxc=*


 But its DLR arrives with another id:

 *2014-07-17 12:45:16 [32271] [35] DEBUG: DLR[internal]: Looking for DLR
 smsc=SMSC1, ts=613852054, dst=975647918, type=1*
 *2014-07-17 12:45:16 [32271] [35] WARNING: DLR[internal]: DLR from
 SMSCSMSC1 for DST975647918 not found.*
 *2014-07-17 12:45:16 [32271] [35] ERROR: SMPP[SMSC1]: got DLR but could
 not find message or was not interested in it id613852054 dstX,
 type1*


 if you notice both are in decimal and they are different. *31537685
 and **613852054*

 I tried to configure version 33 to use Timestamp, but they don't let me
 connect in that way.  There is any way to use timestamp instead of message
 id?

 Thanks for your answers!

 Mario







Re: DLR does not match message id

2014-07-18 Thread Mario Noboa
Thanks your answer Spameden. I thought the same thing, but the message ids
are complete different:

if you see the log:

submit_sm_resp: message_id: 31537685   (decimal)
deliver_sm:   ts=613852054   (decimal)

regards,



2014-07-18 16:04 GMT-05:00 spameden spame...@gmail.com:

 err, I meant hex in submit_sm and decimal in deliver_sm packets.


 2014-07-19 1:04 GMT+04:00 spameden spame...@gmail.com:

 It looks like your SMSC operator gives hex number in submit_sm packet and
 hex number in deliver_sm, so you need to add this in smsc group
 configuration:

 msg-id-type = 0x02



 2014-07-19 0:40 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Of course Niel, thanks!!!




 2014-07-18 15:30 GMT-05:00 Niel Smith daniel.alfred.sm...@gmail.com:

 Hi Mario,

 Would it be possible to supply the full submit_sm, submit_sm_resp, and
 deliver_sm PDU dumps?


 On 18 July 2014 22:12, Mario Noboa mnobo...@gmail.com wrote:


 Hi list,

 I got a DLR problem with an operator.

 When sent a submit_sm, kannel receipt a message id:

 *message_id: 1e13a15*
 *DLR[internal]: Adding DLR smsc=SMSC1, ts=31537685, src=30100,
 dst=XXX, mask=31, boxc=*


 But its DLR arrives with another id:

 *2014-07-17 12:45:16 [32271] [35] DEBUG: DLR[internal]: Looking for
 DLR smsc=SMSC1, ts=613852054, dst=975647918, type=1*
 *2014-07-17 12:45:16 [32271] [35] WARNING: DLR[internal]: DLR from
 SMSCSMSC1 for DST975647918 not found.*
 *2014-07-17 12:45:16 [32271] [35] ERROR: SMPP[SMSC1]: got DLR but
 could not find message or was not interested in it id613852054
 dstX, type1*


 if you notice both are in decimal and they are different. *31537685
 and **613852054*

 I tried to configure version 33 to use Timestamp, but they don't let
 me connect in that way.  There is any way to use timestamp instead of
 message id?

 Thanks for your answers!

 Mario








Re: DLR does not match message id

2014-07-18 Thread spameden
Actually, I've just looked at your logs again:

2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: Got PDU:
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU 0x11f4cb80 dump:
2014-07-17 12:45:12 [32271] [36] DEBUG:   type_name: submit_sm_resp
2014-07-17 12:45:12 [32271] [36] DEBUG:   command_id: 2147483652 =
0x8004
2014-07-17 12:45:12 [32271] [36] DEBUG:   command_status: 0 = 0x
2014-07-17 12:45:12 [32271] [36] DEBUG:   sequence_number: 5579 = 0x15cb
2014-07-17 12:45:12 [32271] [36] DEBUG:   message_id: 1e13a15
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU dump ends.
2014-07-17 12:45:12 [32271] [36] DEBUG: DLR[internal]: Adding DLR
smsc=SMSC1, ts=31537685, src=30100, dst=XXX, mask=31, boxc=
2014-07-17 12:45:12 [32271] [36] DEBUG: SMSC[SMSC1]: creating DLR message

Message ID is 31537685 in submit_sm.

In deliver_sm it's:
2014-07-17 12:45:16 [32271] [35] DEBUG:   short_message:
2014-07-17 12:45:16 [32271] [35] DEBUG:Octet string at 0x11f4cf80:
2014-07-17 12:45:16 [32271] [35] DEBUG:  len:  119
2014-07-17 12:45:16 [32271] [35] DEBUG:  size: 120
2014-07-17 12:45:16 [32271] [35] DEBUG:  immutable: 0
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 69 64 3a 30 30 33 31 35
33 37 36 38 35 20 73 75   id:0031537685 su
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 62 3a 30 30 31 20 64 6c
76 72 64 3a 30 30 31 20   b:001 dlvrd:001
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 73 75 62 6d 69 74 20 64
61 74 65 3a 31 34 30 37   submit date:1407
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 31 37 31 32 34 35 20 64
6f 6e 65 20 64 61 74 65   171245 done date
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 3a 31 34 30 37 31 37 31
32 34 35 20 73 74 61 74   :1407171245 stat
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 3a 44 45 4c 49 56 52 44
20 65 72 72 3a 30 30 30   :DELIVRD err:000
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 20 74 65 78 74 3a 6d 65
6e 73 61 6a 65 20 64 65text:test messa
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 20 70 72 75 65 62 61
  ge 000
2014-07-17 12:45:16 [32271] [35] DEBUG:Octet string dump ends.
2014-07-17 12:45:16 [32271] [35] DEBUG:   message_state: 2 = 0x0002
2014-07-17 12:45:16 [32271] [35] DEBUG:   receipted_message_id: 2496a396

In msg-log it says:  id:0031537685 so it must be either kannel converting
it to hex for some reason or maybe some SMSC bug.
I can't seem to be able to get hex number from source id so it must be
something either at your operator side or something.

What is the kannel version you're using? And show your configuration.


2014-07-19 1:16 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Thanks your answer Spameden. I thought the same thing, but the message ids
 are complete different:

 if you see the log:

 submit_sm_resp: message_id: 31537685   (decimal)
 deliver_sm:   ts=613852054   (decimal)

 regards,



 2014-07-18 16:04 GMT-05:00 spameden spame...@gmail.com:

 err, I meant hex in submit_sm and decimal in deliver_sm packets.


 2014-07-19 1:04 GMT+04:00 spameden spame...@gmail.com:

 It looks like your SMSC operator gives hex number in submit_sm packet and
 hex number in deliver_sm, so you need to add this in smsc group
 configuration:

 msg-id-type = 0x02



 2014-07-19 0:40 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Of course Niel, thanks!!!




 2014-07-18 15:30 GMT-05:00 Niel Smith daniel.alfred.sm...@gmail.com:

 Hi Mario,

 Would it be possible to supply the full submit_sm, submit_sm_resp, and
 deliver_sm PDU dumps?


 On 18 July 2014 22:12, Mario Noboa mnobo...@gmail.com wrote:


 Hi list,

 I got a DLR problem with an operator.

 When sent a submit_sm, kannel receipt a message id:

 *message_id: 1e13a15*
 *DLR[internal]: Adding DLR smsc=SMSC1, ts=31537685, src=30100,
 dst=XXX, mask=31, boxc=*


 But its DLR arrives with another id:

 *2014-07-17 12:45:16 [32271] [35] DEBUG: DLR[internal]: Looking for
 DLR smsc=SMSC1, ts=613852054, dst=975647918, type=1*
 *2014-07-17 12:45:16 [32271] [35] WARNING: DLR[internal]: DLR from
 SMSCSMSC1 for DST975647918 not found.*
 *2014-07-17 12:45:16 [32271] [35] ERROR: SMPP[SMSC1]: got DLR but
 could not find message or was not interested in it id613852054
 dstX, type1*


 if you notice both are in decimal and they are different. *31537685
 and **613852054*

 I tried to configure version 33 to use Timestamp, but they don't let
 me connect in that way.  There is any way to use timestamp instead of
 message id?

 Thanks for your answers!

 Mario









Re: DLR does not match message id

2014-07-18 Thread Mario Noboa
You're right the message id is in short_message but it should be in
receipted_message_id. It's a bug of the operator, but they told me that
they can't do any change.

That's why I asked to use the timestamp  :)

Here is my config (it tried msg-id-type = 2 but didn't work):

#Rx SMSC1
group = smsc
smsc = smpp
smsc-id = SMSC1
host = X.X.X.X
port = 0
receive-port = 1
smsc-username = esystem
smsc-password = psystem
system-type =
interface-version = 34
throughput=20
msg-id-type = 1
allowed-smsc-id = SMSC1


#Tx SMSC1
group = smsc
smsc = smpp
smsc-id = SMSC1
host = X.X.X.X
port = 1
receive-port = 0
smsc-username = esystem
smsc-password = psystem
system-type =
interface-version = 34
throughput=20
msg-id-type = 1
log-level = 0
allowed-smsc-id = SMSC1

Thanks!


2014-07-18 16:35 GMT-05:00 spameden spame...@gmail.com:

 Actually, I've just looked at your logs again:

 2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: Got PDU:
 2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU 0x11f4cb80 dump:
 2014-07-17 12:45:12 [32271] [36] DEBUG:   type_name: submit_sm_resp
 2014-07-17 12:45:12 [32271] [36] DEBUG:   command_id: 2147483652 =
 0x8004
 2014-07-17 12:45:12 [32271] [36] DEBUG:   command_status: 0 = 0x
 2014-07-17 12:45:12 [32271] [36] DEBUG:   sequence_number: 5579 =
 0x15cb
 2014-07-17 12:45:12 [32271] [36] DEBUG:   message_id: 1e13a15
 2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU dump ends.
 2014-07-17 12:45:12 [32271] [36] DEBUG: DLR[internal]: Adding DLR
 smsc=SMSC1, ts=31537685, src=30100, dst=XXX, mask=31, boxc=
 2014-07-17 12:45:12 [32271] [36] DEBUG: SMSC[SMSC1]: creating DLR message

 Message ID is 31537685 in submit_sm.

 In deliver_sm it's:
 2014-07-17 12:45:16 [32271] [35] DEBUG:   short_message:
 2014-07-17 12:45:16 [32271] [35] DEBUG:Octet string at 0x11f4cf80:
 2014-07-17 12:45:16 [32271] [35] DEBUG:  len:  119
 2014-07-17 12:45:16 [32271] [35] DEBUG:  size: 120
 2014-07-17 12:45:16 [32271] [35] DEBUG:  immutable: 0
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 69 64 3a 30 30 33 31 35
 33 37 36 38 35 20 73 75   id:0031537685 su
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 62 3a 30 30 31 20 64 6c
 76 72 64 3a 30 30 31 20   b:001 dlvrd:001
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 73 75 62 6d 69 74 20 64
 61 74 65 3a 31 34 30 37   submit date:1407
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 31 37 31 32 34 35 20 64
 6f 6e 65 20 64 61 74 65   171245 done date
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 3a 31 34 30 37 31 37 31
 32 34 35 20 73 74 61 74   :1407171245 stat
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 3a 44 45 4c 49 56 52 44
 20 65 72 72 3a 30 30 30   :DELIVRD err:000
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 20 74 65 78 74 3a 6d 65
 6e 73 61 6a 65 20 64 65text:test messa
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 20 70 72 75 65 62 61
 ge 000
 2014-07-17 12:45:16 [32271] [35] DEBUG:Octet string dump ends.
 2014-07-17 12:45:16 [32271] [35] DEBUG:   message_state: 2 = 0x0002
 2014-07-17 12:45:16 [32271] [35] DEBUG:   receipted_message_id: 2496a396

 In msg-log it says:  id:0031537685 so it must be either kannel converting
 it to hex for some reason or maybe some SMSC bug.
 I can't seem to be able to get hex number from source id so it must be
 something either at your operator side or something.

 What is the kannel version you're using? And show your configuration.


 2014-07-19 1:16 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Thanks your answer Spameden. I thought the same thing, but the message ids
 are complete different:

 if you see the log:

 submit_sm_resp: message_id: 31537685   (decimal)
 deliver_sm:   ts=613852054   (decimal)

 regards,



 2014-07-18 16:04 GMT-05:00 spameden spame...@gmail.com:

 err, I meant hex in submit_sm and decimal in deliver_sm packets.


  2014-07-19 1:04 GMT+04:00 spameden spame...@gmail.com:

 It looks like your SMSC operator gives hex number in submit_sm packet
 and hex number in deliver_sm, so you need to add this in smsc group
 configuration:

 msg-id-type = 0x02



 2014-07-19 0:40 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Of course Niel, thanks!!!




 2014-07-18 15:30 GMT-05:00 Niel Smith daniel.alfred.sm...@gmail.com:

 Hi Mario,

 Would it be possible to supply the full submit_sm, submit_sm_resp,
 and deliver_sm PDU dumps?


 On 18 July 2014 22:12, Mario Noboa mnobo...@gmail.com wrote:


 Hi list,

 I got a DLR problem with an operator.

 When sent a submit_sm, kannel receipt a message id:

 *message_id: 1e13a15*
 *DLR[internal]: Adding DLR smsc=SMSC1, ts=31537685, src=30100,
 dst=XXX, mask=31, boxc=*


 But its DLR arrives with another id:

 *2014-07-17 12:45:16 [32271] [35] DEBUG: DLR[internal]: Looking for
 DLR smsc=SMSC1, ts=613852054, dst=975647918, type=1*
 *2014-07-17 12:45:16 [32271] [35] WARNING: DLR[internal]: DLR from
 SMSCSMSC1 for DST975647918 not found.*
 *2014-07-17 

Re: DLR does not match message id

2014-07-18 Thread spameden
Try commenting out completely msg-id-type if it would be the same means its
something you need to settle down with your SMSC operator.


2014-07-19 2:13 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 You're right the message id is in short_message but it should be in
 receipted_message_id. It's a bug of the operator, but they told me that
 they can't do any change.

 That's why I asked to use the timestamp  :)

 Here is my config (it tried msg-id-type = 2 but didn't work):

 #Rx SMSC1
 group = smsc
 smsc = smpp
 smsc-id = SMSC1
 host = X.X.X.X
 port = 0
 receive-port = 1
 smsc-username = esystem
 smsc-password = psystem
 system-type =
 interface-version = 34
 throughput=20
 msg-id-type = 1
 allowed-smsc-id = SMSC1


 #Tx SMSC1
 group = smsc
 smsc = smpp
 smsc-id = SMSC1
 host = X.X.X.X
 port = 1
 receive-port = 0
 smsc-username = esystem
 smsc-password = psystem
 system-type =
 interface-version = 34
 throughput=20
 msg-id-type = 1
 log-level = 0
 allowed-smsc-id = SMSC1

 Thanks!


 2014-07-18 16:35 GMT-05:00 spameden spame...@gmail.com:

 Actually, I've just looked at your logs again:

 2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: Got PDU:
 2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU 0x11f4cb80 dump:
 2014-07-17 12:45:12 [32271] [36] DEBUG:   type_name: submit_sm_resp
 2014-07-17 12:45:12 [32271] [36] DEBUG:   command_id: 2147483652 =
 0x8004
 2014-07-17 12:45:12 [32271] [36] DEBUG:   command_status: 0 = 0x
 2014-07-17 12:45:12 [32271] [36] DEBUG:   sequence_number: 5579 =
 0x15cb
 2014-07-17 12:45:12 [32271] [36] DEBUG:   message_id: 1e13a15
 2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU dump ends.
 2014-07-17 12:45:12 [32271] [36] DEBUG: DLR[internal]: Adding DLR
 smsc=SMSC1, ts=31537685, src=30100, dst=XXX, mask=31, boxc=
 2014-07-17 12:45:12 [32271] [36] DEBUG: SMSC[SMSC1]: creating DLR message

 Message ID is 31537685 in submit_sm.

 In deliver_sm it's:
 2014-07-17 12:45:16 [32271] [35] DEBUG:   short_message:
 2014-07-17 12:45:16 [32271] [35] DEBUG:Octet string at 0x11f4cf80:
 2014-07-17 12:45:16 [32271] [35] DEBUG:  len:  119
 2014-07-17 12:45:16 [32271] [35] DEBUG:  size: 120
 2014-07-17 12:45:16 [32271] [35] DEBUG:  immutable: 0
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 69 64 3a 30 30 33 31
 35 33 37 36 38 35 20 73 75   id:0031537685 su
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 62 3a 30 30 31 20 64
 6c 76 72 64 3a 30 30 31 20   b:001 dlvrd:001
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 73 75 62 6d 69 74 20
 64 61 74 65 3a 31 34 30 37   submit date:1407
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 31 37 31 32 34 35 20
 64 6f 6e 65 20 64 61 74 65   171245 done date
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 3a 31 34 30 37 31 37
 31 32 34 35 20 73 74 61 74   :1407171245 stat
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 3a 44 45 4c 49 56 52
 44 20 65 72 72 3a 30 30 30   :DELIVRD err:000
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 20 74 65 78 74 3a 6d
 65 6e 73 61 6a 65 20 64 65text:test messa
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 20 70 72 75 65 62 61
 ge 000
 2014-07-17 12:45:16 [32271] [35] DEBUG:Octet string dump ends.
 2014-07-17 12:45:16 [32271] [35] DEBUG:   message_state: 2 = 0x0002
 2014-07-17 12:45:16 [32271] [35] DEBUG:   receipted_message_id: 2496a396

 In msg-log it says:  id:0031537685 so it must be either kannel
 converting it to hex for some reason or maybe some SMSC bug.
 I can't seem to be able to get hex number from source id so it must be
 something either at your operator side or something.

 What is the kannel version you're using? And show your configuration.


 2014-07-19 1:16 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Thanks your answer Spameden. I thought the same thing, but the message
 ids are complete different:

 if you see the log:

 submit_sm_resp: message_id: 31537685   (decimal)
 deliver_sm:   ts=613852054   (decimal)

 regards,



 2014-07-18 16:04 GMT-05:00 spameden spame...@gmail.com:

 err, I meant hex in submit_sm and decimal in deliver_sm packets.


  2014-07-19 1:04 GMT+04:00 spameden spame...@gmail.com:

 It looks like your SMSC operator gives hex number in submit_sm packet
 and hex number in deliver_sm, so you need to add this in smsc group
 configuration:

 msg-id-type = 0x02



 2014-07-19 0:40 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Of course Niel, thanks!!!




 2014-07-18 15:30 GMT-05:00 Niel Smith daniel.alfred.sm...@gmail.com
 :

 Hi Mario,

 Would it be possible to supply the full submit_sm, submit_sm_resp,
 and deliver_sm PDU dumps?


 On 18 July 2014 22:12, Mario Noboa mnobo...@gmail.com wrote:


 Hi list,

 I got a DLR problem with an operator.

 When sent a submit_sm, kannel receipt a message id:

 *message_id: 1e13a15*
 *DLR[internal]: Adding DLR smsc=SMSC1, ts=31537685, src=30100,
 dst=XXX, mask=31, boxc=*


 But its DLR arrives with another id:

 *2014-07-17 

Re: dlr-mask not on the url

2014-07-08 Thread bhavya
Hi,

There are one more question regarding DLR, i.e its not working while sending
ota means not work with 
cgi-bin/sendota URL.

Please tell me the solution !!!


Regards,
Bhavya



--
View this message in context: 
http://kannel.6189.n7.nabble.com/dlr-mask-not-on-the-url-tp13529p30315.html
Sent from the Kannel - User mailing list archive at Nabble.com.



Re: DLR injected by http smsc are stucked in kannel's queue

2014-07-07 Thread sharkov...@gmail.com
Hi guys,

Can anyone give any hints on how to resolve this problem.
I'm trying to implement a solution but DLR are crucial and don't seem to
work ok.

Is there maybe a way to inject the dlrs directly to SQLBox instead of
sending them to http smsc?




On Thu, Jul 3, 2014 at 2:33 PM, sharkov...@gmail.com sharkov...@gmail.com
wrote:

 Hi all,

 I have the following setup:

 SMPP Client = OpenSMPPBox = SQLBox = BearerBox = http smsc

 so i'm sending messages from the SMPP client to OpenSMPPbox and those
 messages are routed to http smsc (generic) to my php scripts.
 I am then injecting the DLR to the http smsc and the DLR comes back to
 SMPP client.

 If i don't sent to many messages, it's working great.
 If i sent 1000 messages then at least half of them are stucked in Kannel's
 Queue and in opensmpp's mysql table.
 If i restart openSMPPbox then almost all (but not all) are then being
 rerouted back to the smpp client.

 I'm running the latest versions from the svn repository.

 Can anyone give me some help?





RE: DLR with SendOTA

2014-07-05 Thread bhavya
Hi,Its very much important to me for receiving delivery report while
sending OTA.I have tried with dlr-url and dlr-mask defined with sendsms
url , and its working finebut not working in case of send ota.If
this is a bug then please resolve it as soon as possible. or any other way
to retrieve delivery reportusing sendota url.Thanks in advance
Regards,Bhavya  



--
View this message in context: 
http://kannel.6189.n7.nabble.com/Fwd-DLR-with-SendOTA-tp27933p30306.html
Sent from the Kannel - User mailing list archive at Nabble.com.

Re: DLR Reports

2014-06-26 Thread [Digital^Dude] ®
What's your dlr-mask?
And this may be an operator specific issue as they might only have allowed
one retry per submit_sm from the ESME hence not allowing any messages from
your end to be buffered.
On Jun 26, 2014 3:32 PM, Michael Stevens michael.stev...@mcmcas.co.za
wrote:

 Hi..

 OS: Linux
 Kannel Version: 1.50

 I use a gsm modem with dlr reports. I receive the ACK, Ack Failed, Success
 dlr.'s but not the buffered dlr when the phone where I am sending the
 message is offline.
 Any ideas?




Re: DLR ERROR

2014-05-22 Thread Alvaro Cornejo
Hi

dlr-url must be an url. why did you declare it as an integer?

should be something like:

...dlr-url=urlencode(http://myhost/mypath/myscript.php?x)...

dlr-url is the url kannel calls for delivering the message status
notifications (dlr)

Regards

Alvaro

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
  Visitenos en www.perusms.com


On Thu, May 22, 2014 at 6:45 AM, خان ابو زید khan.abuz...@gmail.com wrote:
 Hi,

 dlr-url = integer value

 http://127.0.0.1:12013/cgi-bin/sendsms?username=abuzaiddlr-url=1245charset=utf-8from=UPDATEto=9664541886dlr-mask=31text=test+smssmsc=smsc001password=TESTcoding=0

 Getting Error:

 Status: 400 Answer: DLR-URL field misformed, rejected

 --
 Regards

 Khan Abuzaid
 Mob# :09664541886/9594092200
 Mumbai



Re: DLR ERROR

2014-05-22 Thread خان ابو زید
Using sqlbox no error, but in smsbox getting error.

i want to update message status in other table map with id(integer)  that
why using integer not url.


On Thu, May 22, 2014 at 7:14 AM, Alvaro Cornejo cornejo.alv...@gmail.comwrote:

 Hi

 dlr-url must be an url. why did you declare it as an integer?

 should be something like:

 ...dlr-url=urlencode(http://myhost/mypath/myscript.php?x)...

 dlr-url is the url kannel calls for delivering the message status
 notifications (dlr)

 Regards

 Alvaro


 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, May 22, 2014 at 6:45 AM, خان ابو زید khan.abuz...@gmail.com
 wrote:
  Hi,
 
  dlr-url = integer value
 
 
 http://127.0.0.1:12013/cgi-bin/sendsms?username=abuzaiddlr-url=1245charset=utf-8from=UPDATEto=9664541886dlr-mask=31text=test+smssmsc=smsc001password=TESTcoding=0
 
  Getting Error:
 
  Status: 400 Answer: DLR-URL field misformed, rejected
 
  --
  Regards
 
  Khan Abuzaid
  Mob# :09664541886/9594092200
  Mumbai




-- 
Regards

Khan Abuzaid
Mob# :09664541886/9594092200
Mumbai


Re: DLR ERROR

2014-05-22 Thread Alvaro Cornejo
Hi

Then you need to use your own app to do that.

dlr-ulr, by definition --and validated by smsbox-- is an url. that is
why you get the malformed error. An integer in not a url.

What you need to do is create a script you can call by http and pass
your id like

...dlr-url=urlencode(http://myhost/mypath/mydlrscript.php?myid=12345)...

Then your mydlrscript.php will update the required table as needed.
BTW you might want to add some of the parameters available so you get
more detailed info.

Don't know sqlbox but I assume it does not validate that the dlr-url
field is actually an url

Regards

Alvaro

|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
  Visitenos en www.perusms.com


On Thu, May 22, 2014 at 2:23 PM, خان ابو زید khan.abuz...@gmail.com wrote:
 Using sqlbox no error, but in smsbox getting error.

 i want to update message status in other table map with id(integer)  that
 why using integer not url.


 On Thu, May 22, 2014 at 7:14 AM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 Hi

 dlr-url must be an url. why did you declare it as an integer?

 should be something like:

 ...dlr-url=urlencode(http://myhost/mypath/myscript.php?x)...

 dlr-url is the url kannel calls for delivering the message status
 notifications (dlr)

 Regards

 Alvaro


 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, May 22, 2014 at 6:45 AM, خان ابو زید khan.abuz...@gmail.com
 wrote:
  Hi,
 
  dlr-url = integer value
 
 
  http://127.0.0.1:12013/cgi-bin/sendsms?username=abuzaiddlr-url=1245charset=utf-8from=UPDATEto=9664541886dlr-mask=31text=test+smssmsc=smsc001password=TESTcoding=0
 
  Getting Error:
 
  Status: 400 Answer: DLR-URL field misformed, rejected
 
  --
  Regards
 
  Khan Abuzaid
  Mob# :09664541886/9594092200
  Mumbai




 --
 Regards

 Khan Abuzaid
 Mob# :09664541886/9594092200
 Mumbai



RE: DLR-URL debugging

2014-04-30 Thread Rene Kluwen
opensmppbox doesn’t trigger any dlr-url’s. You need smsbox for that.

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Saurabh Pandey
Sent: woensdag 30 april 2014 8:26
To: users@kannel.org
Subject: DLR-URL debugging

 

Hi,

I need to debug and check the dlr-url function of Kannel. Here is my situation:

1) When I submit sms through Kannel, dlr-url appended in sendsms request, it 
works fine

2) Earlier I was pushing sms via opensmppbox, there was some issues with 
deliver_sm so smpp client was not getting the DLR but the DLR url defined in 
opensmppbox-dlr-table was working fine

3) Now deliver_sm issue is fixed but dlr-url is not working anymore. I need to 
check why is that happening.

Can somebody guide me how to debug this feature? What file to look at?

Thanks in advance

-Sam



Re: DLR-URL debugging

2014-04-30 Thread Saurabh Pandey
Okay, that's odd, because the URL i defined was being fired. May be it was
a mixup. Here is my setup:

SMSC --- Kannel [Bearerbox+smsbox]  Sqlbox Opensmppbox ---
smpp client

Now I submit SMS via sendsms cgi to smsbox. Sqlbox is just for logging of
messages sent via opensmppbox. Now opensmppbox has its own dlr-table and
that table has a dlr_url field (which stored msgid earlier but now its
storing custom urls). Earlier these URLs were being fired and they were
carrying out the tasks they were supposed to do. But now they stopped.

Anyways, I guess getting into that doesn't seem like a good idea since you
just said that opensmppbox doesn't trigger urls. But I need them triggered
so I'm gonna have to write it myself. So Rene can you help me find where
the code which does this url-translation and trigger dlr-url exists? So I
can take a reference.

Thanks in advance


On Wed, Apr 30, 2014 at 4:34 PM, Rene Kluwen rene.klu...@chimit.nl wrote:

 opensmppbox doesn’t trigger any dlr-url’s. You need smsbox for that.



 *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *Saurabh
 Pandey
 *Sent:* woensdag 30 april 2014 8:26
 *To:* users@kannel.org
 *Subject:* DLR-URL debugging



 Hi,

 I need to debug and check the dlr-url function of Kannel. Here is my
 situation:

 1) When I submit sms through Kannel, dlr-url appended in sendsms request,
 it works fine

 2) Earlier I was pushing sms via opensmppbox, there was some issues with
 deliver_sm so smpp client was not getting the DLR but the DLR url defined
 in opensmppbox-dlr-table was working fine

 3) Now deliver_sm issue is fixed but dlr-url is not working anymore. I
 need to check why is that happening.

 Can somebody guide me how to debug this feature? What file to look at?

 Thanks in advance

 -Sam



Re: DLR-URL debugging

2014-04-30 Thread Saurabh Pandey
Hi Rene,

I have a very simple question. How do I execute a URL. I have did
everything but if I use Kannel functions (from gwlib/http.h) it results in
panic which I can't seem to trace. I guess I could use libCurl but I don't
want to include anything. When Kannel is already using its functions to
trigger URL, I think I should utilize it.
So my final question is: how do I execute a URL?

My Hints: I think http_get_real(), http_start_request() are the way to go
but they have so many parameters and all those pointers and pointer to
pointers really confuse me. I want a simple URL trigger. Can you please
guide me.

Thanks for all your help.


On Wed, Apr 30, 2014 at 5:00 PM, Saurabh Pandey
sam.it.develo...@gmail.comwrote:

 Okay, that's odd, because the URL i defined was being fired. May be it was
 a mixup. Here is my setup:

 SMSC --- Kannel [Bearerbox+smsbox]  Sqlbox Opensmppbox ---
 smpp client

 Now I submit SMS via sendsms cgi to smsbox. Sqlbox is just for logging of
 messages sent via opensmppbox. Now opensmppbox has its own dlr-table and
 that table has a dlr_url field (which stored msgid earlier but now its
 storing custom urls). Earlier these URLs were being fired and they were
 carrying out the tasks they were supposed to do. But now they stopped.

 Anyways, I guess getting into that doesn't seem like a good idea since you
 just said that opensmppbox doesn't trigger urls. But I need them triggered
 so I'm gonna have to write it myself. So Rene can you help me find where
 the code which does this url-translation and trigger dlr-url exists? So I
 can take a reference.

 Thanks in advance


 On Wed, Apr 30, 2014 at 4:34 PM, Rene Kluwen rene.klu...@chimit.nlwrote:

 opensmppbox doesn’t trigger any dlr-url’s. You need smsbox for that.



 *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *Saurabh
 Pandey
 *Sent:* woensdag 30 april 2014 8:26
 *To:* users@kannel.org
 *Subject:* DLR-URL debugging



 Hi,

 I need to debug and check the dlr-url function of Kannel. Here is my
 situation:

 1) When I submit sms through Kannel, dlr-url appended in sendsms request,
 it works fine

 2) Earlier I was pushing sms via opensmppbox, there was some issues with
 deliver_sm so smpp client was not getting the DLR but the DLR url defined
 in opensmppbox-dlr-table was working fine

 3) Now deliver_sm issue is fixed but dlr-url is not working anymore. I
 need to check why is that happening.

 Can somebody guide me how to debug this feature? What file to look at?

 Thanks in advance

 -Sam





Re: DLR Only returns status 8 - Please assist

2014-02-20 Thread MOSES KARIUKI
Come on guys, this is not the hardest question ever asked. Is it? Somebody
please assist me!.

Thanks,
Moses


On Wed, Feb 19, 2014 at 12:10 PM, Murgor Bendon bendonmur...@gmail.comwrote:

 He is using fakesms, not yet bound to any SMSC provider yet.




 Best Regards,
 *Bendon Murgor *: Systems Engineer/IT Systems Auditor.
 *Phone*: Kenya:  +254-720529868
 Twitter: @bendonmurgor http://twitter.com/bendonmurgor


 On Wed, Feb 19, 2014 at 12:05 PM, Otandeka Simon Peter 
 sotand...@gmail.com wrote:


 Consult your SMSC provider. They should sort you out on that. It is not a
 kannel issue.


 @sotandeka
 +256 716 801 124
 Senior Programmer in VAS Mobile services, ERP, Health and Web-based
 Systems.
 Experienced Linux System Administrator and Open Source Developer.



 On Wed, Feb 19, 2014 at 12:01 PM, MOSES KARIUKI kariuk...@gmail.comwrote:

 Hi Guys,

 Any help on this request? Please assist.

 Moses


 On Tue, Feb 18, 2014 at 12:11 PM, MOSES KARIUKI kariuk...@gmail.comwrote:

 Hi All,

 I have set up Kannel on Ubuntu. I am testing functionality using
 fakesmsc. Below is the configuration.

 group = core
 admin-port = 13000
 admin-password = bar
 admin-deny-ip = *.*.*.*
 admin-allow-ip = 127.0.0.1
 #wapbox-port = 13002
 smsbox-port = 13001
 wdp-interface-name = *
 log-file = /var/log/kannel/bearerbox.log
 log-level = 0
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 #dlr-storage = pgsql

 group = smsbox
 bearerbox-host = localhost
 sendsms-port = 13013
 global-sender = 13013
 smsbox-id = box1
 log-file = /var/log/kannel/smsbox.log
 log-level = 0

 group = sendsms-user
 username =
 password =
 dlr-url = 
 http://localhost/kannel/dlr_status.php?d=%pmask=%dmessage_id=%F;

 group = sms-service
 keyword = default
 #get-url = 
 http://localhost/kannel/receivesms.php?sender=%pamp;text=%b;
 accept-x-kannel-headers = true
 concatenation = true
 catch-all = true

 #group = wapbox
 #bearerbox-host = localhost
 #log-file = /var/log/kannel/wapbox.log

 group = smsc
 smsc = fake
 smsc-id = FAKE
 port = 1
 connect-allow-ip = 127.0.0.1
 #msg-id-type = 0x00

 group = pgsql-connection
 id = mydlr
 host = localhost
 port = 5439
 username = kannel_admin
 password = RFID_dev12??
 database = postgres
 max-connections = 1

 group = dlr-db
 id = mydlr
 table = tbl_dlr
 field-smsc = smsc
 field-timestamp = _timstamp
 field-destination = destination
 field-source = source
 field-service = _service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc_id

 This is the url I am calling to test:

 http://localhost:13013/cgi-bin/sendsms?username=password=to=125345text=testssmsc=FAKEdlr-mask=31

 However, in the table for delivery reports, I am only getting dlr
 report 8. But the message is being sent. it displays 0: Accepted for
 delivery after I call the above url.

 What Im I doing wrong? Please assist.

 Thanks
 Moses







Re: DLR Only returns status 8 - Please assist

2014-02-20 Thread Alejandro Guerrieri
I don't think you'd get any other dlrs from fake smsc. Status 8 is delivered to 
smsc, it's as far s you can get there. Try using an smppbox connection (eg 
against opensmppbox or an smsc simulator).

--
Alex Guerrieri

 On Feb 21, 2014, at 0:39, MOSES KARIUKI kariuk...@gmail.com wrote:
 
 Come on guys, this is not the hardest question ever asked. Is it? Somebody 
 please assist me!.
 
 Thanks,
 Moses
 
 
 On Wed, Feb 19, 2014 at 12:10 PM, Murgor Bendon bendonmur...@gmail.com 
 wrote:
 He is using fakesms, not yet bound to any SMSC provider yet.
 
 
 
 
 Best Regards,
 Bendon Murgor : Systems Engineer/IT Systems Auditor.
 Phone: Kenya:  +254-720529868
 Twitter: @bendonmurgor
 
 
 On Wed, Feb 19, 2014 at 12:05 PM, Otandeka Simon Peter 
 sotand...@gmail.com wrote:
 
 Consult your SMSC provider. They should sort you out on that. It is not a 
 kannel issue. 
 
 
 @sotandeka
 +256 716 801 124
 Senior Programmer in VAS Mobile services, ERP, Health and Web-based Systems.
 Experienced Linux System Administrator and Open Source Developer. 
 
 
 
 On Wed, Feb 19, 2014 at 12:01 PM, MOSES KARIUKI kariuk...@gmail.com 
 wrote:
 Hi Guys,
 
 Any help on this request? Please assist.
 
 Moses
 
 
 On Tue, Feb 18, 2014 at 12:11 PM, MOSES KARIUKI kariuk...@gmail.com 
 wrote:
 Hi All,
 
 I have set up Kannel on Ubuntu. I am testing functionality using 
 fakesmsc. Below is the configuration.
 
 group = core
 admin-port = 13000
 admin-password = bar
 admin-deny-ip = *.*.*.*
 admin-allow-ip = 127.0.0.1
 #wapbox-port = 13002
 smsbox-port = 13001
 wdp-interface-name = *
 log-file = /var/log/kannel/bearerbox.log
 log-level = 0
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 #dlr-storage = pgsql
 
 group = smsbox
 bearerbox-host = localhost
 sendsms-port = 13013
 global-sender = 13013
 smsbox-id = box1
 log-file = /var/log/kannel/smsbox.log
 log-level = 0
 
 group = sendsms-user
 username =
 password =
 dlr-url = 
 http://localhost/kannel/dlr_status.php?d=%pmask=%dmessage_id=%F;
 
 group = sms-service
 keyword = default
 #get-url = http://localhost/kannel/receivesms.php?sender=%pamp;text=%b;
 accept-x-kannel-headers = true
 concatenation = true
 catch-all = true
 
 #group = wapbox
 #bearerbox-host = localhost
 #log-file = /var/log/kannel/wapbox.log
 
 group = smsc
 smsc = fake
 smsc-id = FAKE
 port = 1
 connect-allow-ip = 127.0.0.1
 #msg-id-type = 0x00
 
 group = pgsql-connection
 id = mydlr
 host = localhost
 port = 5439
 username = kannel_admin
 password = RFID_dev12??
 database = postgres
 max-connections = 1
 
 group = dlr-db
 id = mydlr
 table = tbl_dlr
 field-smsc = smsc
 field-timestamp = _timstamp
 field-destination = destination
 field-source = source
 field-service = _service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc_id
 
 This is the url I am calling to test:
 http://localhost:13013/cgi-bin/sendsms?username=password=to=125345text=testssmsc=FAKEdlr-mask=31
 
 However, in the table for delivery reports, I am only getting dlr report 
 8. But the message is being sent. it displays 0: Accepted for delivery 
 after I call the above url.
 
 What Im I doing wrong? Please assist.
 
 Thanks
 Moses
 


Re: DLR Only returns status 8 - Please assist

2014-02-19 Thread MOSES KARIUKI
Hi Guys,

Any help on this request? Please assist.

Moses


On Tue, Feb 18, 2014 at 12:11 PM, MOSES KARIUKI kariuk...@gmail.com wrote:

 Hi All,

 I have set up Kannel on Ubuntu. I am testing functionality using fakesmsc.
 Below is the configuration.

 group = core
 admin-port = 13000
 admin-password = bar
 admin-deny-ip = *.*.*.*
 admin-allow-ip = 127.0.0.1
 #wapbox-port = 13002
 smsbox-port = 13001
 wdp-interface-name = *
 log-file = /var/log/kannel/bearerbox.log
 log-level = 0
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 #dlr-storage = pgsql

 group = smsbox
 bearerbox-host = localhost
 sendsms-port = 13013
 global-sender = 13013
 smsbox-id = box1
 log-file = /var/log/kannel/smsbox.log
 log-level = 0

 group = sendsms-user
 username =
 password =
 dlr-url = 
 http://localhost/kannel/dlr_status.php?d=%pmask=%dmessage_id=%F;

 group = sms-service
 keyword = default
 #get-url = http://localhost/kannel/receivesms.php?sender=%pamp;text=%b;
 accept-x-kannel-headers = true
 concatenation = true
 catch-all = true

 #group = wapbox
 #bearerbox-host = localhost
 #log-file = /var/log/kannel/wapbox.log

 group = smsc
 smsc = fake
 smsc-id = FAKE
 port = 1
 connect-allow-ip = 127.0.0.1
 #msg-id-type = 0x00

 group = pgsql-connection
 id = mydlr
 host = localhost
 port = 5439
 username = kannel_admin
 password = RFID_dev12??
 database = postgres
 max-connections = 1

 group = dlr-db
 id = mydlr
 table = tbl_dlr
 field-smsc = smsc
 field-timestamp = _timstamp
 field-destination = destination
 field-source = source
 field-service = _service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc_id

 This is the url I am calling to test:

 http://localhost:13013/cgi-bin/sendsms?username=password=to=125345text=testssmsc=FAKEdlr-mask=31

 However, in the table for delivery reports, I am only getting dlr report
 8. But the message is being sent. it displays 0: Accepted for delivery
 after I call the above url.

 What Im I doing wrong? Please assist.

 Thanks
 Moses




Re: DLR Only returns status 8 - Please assist

2014-02-19 Thread Otandeka Simon Peter
Consult your SMSC provider. They should sort you out on that. It is not a
kannel issue.


@sotandeka
+256 716 801 124
Senior Programmer in VAS Mobile services, ERP, Health and Web-based Systems.
Experienced Linux System Administrator and Open Source Developer.



On Wed, Feb 19, 2014 at 12:01 PM, MOSES KARIUKI kariuk...@gmail.com wrote:

 Hi Guys,

 Any help on this request? Please assist.

 Moses


 On Tue, Feb 18, 2014 at 12:11 PM, MOSES KARIUKI kariuk...@gmail.comwrote:

 Hi All,

 I have set up Kannel on Ubuntu. I am testing functionality using
 fakesmsc. Below is the configuration.

 group = core
 admin-port = 13000
 admin-password = bar
 admin-deny-ip = *.*.*.*
 admin-allow-ip = 127.0.0.1
 #wapbox-port = 13002
 smsbox-port = 13001
 wdp-interface-name = *
 log-file = /var/log/kannel/bearerbox.log
 log-level = 0
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 #dlr-storage = pgsql

 group = smsbox
 bearerbox-host = localhost
 sendsms-port = 13013
 global-sender = 13013
 smsbox-id = box1
 log-file = /var/log/kannel/smsbox.log
 log-level = 0

 group = sendsms-user
 username =
 password =
 dlr-url = 
 http://localhost/kannel/dlr_status.php?d=%pmask=%dmessage_id=%F;

 group = sms-service
 keyword = default
 #get-url = http://localhost/kannel/receivesms.php?sender=%pamp;text=%b;
 accept-x-kannel-headers = true
 concatenation = true
 catch-all = true

 #group = wapbox
 #bearerbox-host = localhost
 #log-file = /var/log/kannel/wapbox.log

 group = smsc
 smsc = fake
 smsc-id = FAKE
 port = 1
 connect-allow-ip = 127.0.0.1
 #msg-id-type = 0x00

 group = pgsql-connection
 id = mydlr
 host = localhost
 port = 5439
 username = kannel_admin
 password = RFID_dev12??
 database = postgres
 max-connections = 1

 group = dlr-db
 id = mydlr
 table = tbl_dlr
 field-smsc = smsc
 field-timestamp = _timstamp
 field-destination = destination
 field-source = source
 field-service = _service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc_id

 This is the url I am calling to test:

 http://localhost:13013/cgi-bin/sendsms?username=password=to=125345text=testssmsc=FAKEdlr-mask=31

 However, in the table for delivery reports, I am only getting dlr report
 8. But the message is being sent. it displays 0: Accepted for delivery
 after I call the above url.

 What Im I doing wrong? Please assist.

 Thanks
 Moses





Re: DLR: received showing 0 in kannel status page

2014-01-23 Thread krnrd b
Hi all,

Any one faced this issue before?

Sorry just curious to know .

Thanks,
KRNRDB

On Thursday, January 23, 2014, krnrd b krn...@gmail.com wrote:

 Hi all,

 I am using kannel 1.5.0 devel version. When i use Tx and Rx separated
 while connecting SMSC now problem is when submit_sm happening message
 delivered to handset and sms sent as 1 on kannel status page and showing
 properly for Tx connection but when i receiving DLR on Rx connection it's
 showing DLR: received 0 on kannel status page but dlr's coming properly on
 kannel logs.

 Please suggest me why dlr's showing on kannel log but not showing on
 kannel status page.

 Please find the attached kannel status page.

Kannel bearerbox version `1.5.0'. Build `Jan 15 2014 15:56:30',
 compiler `4.1.2 20070626 (Red Hat 4.1.2-14)'. System Linux, release
 2.6.18-53.el5, version
#1 SMP Wed Oct 10 16:34:19 EDT 2007, machine x86_64. Hostname Blade1,
 IP 172.16.8.206. Libxml version 2.6.26. Using OpenSSL 0.9.8b 04 May 2006.
 Compiled
with MySQL 5.1.35, using MySQL 5.1.35. Using native malloc.

Status: running, uptime 0d 0h 1m 15s

WDP: received 0 (0 queued), sent 0 (0 queued)

SMS: received 0 (0 queued), sent 1 (0 queued), store size 0
SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.02,0.01,0.01) msg/sec

DLR: received 0, sent 0
DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
DLR: 19 queued, using mysql storage

Box connections:
smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 4s)

SMSC connections:
RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:2161/0:TestAT:SMPP_RND (online
 72s, rcvd: sms 0 / dlr 0, sent: sms 1 / dlr 0, failed 0, queued 0 msgs)
RND-1-Rx[RND-1-Rx]SMPP:xxx.xxx.xxx.xxx:0/2161:TestAT:SMPP_RND
 (online 73s, rcvd: sms 0 / dlr 0, sent: sms 0 / dlr 0, failed 0, queued 0
 msgs)


 PDU :

 Tx
 -

 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP[RND-1]: throughput (0.00,1.00)
 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP[RND-1]: Sending PDU:
 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP PDU 0x2c000a80 dump:
 2014-01-23 11:12:17 [20558] [6] DEBUG:   type_name: submit_sm
 2014-01-23 11:12:17 [20558] [6] DEBUG:   command_id: 4 = 0x0004
 2014-01-23 11:12:17 [20558] [6] DEBUG:   command_status: 0 = 0x
 2014-01-23 11:12:17 [20558] [6] DEBUG:   sequence_number: 2 = 0x0002
 2014-01-23 11:12:17 [20558] [6] DEBUG:   service_type: NULL
 2014-01-23 11:12:17 [20558] [6] DEBUG:   source_addr_ton: 5 = 0x0005
 2014-01-23 11:12:17 [20558] [6] DEBUG:   source_addr_npi: 0 = 0x
 2014-01-23 11:12:17 [20558] [6] DEBUG:   source_addr: 
 2014-01-23 11:12:17 [20558] [6] DEBUG:   dest_addr_ton: 2 = 0x0002
 2014-01-23 11:12:17 [20558] [6] DEBUG:   dest_addr_npi: 1 = 0x0001
 2014-01-23 11:12:17 [20558] [6] DEBUG:   destination_addr: 
 2014-01-23 11:12:17 [20558] [6] DEBUG:   esm_class: 3 = 0x0003
 2014-01-23 11:12:17 [20558] [6] DEBUG:   protocol_id: 0 = 0x
 2014-01-23 11:12:17 [20558] [6] DEBUG:   priority_flag: 0 = 0x
 2014-01-23 11:12:17 [20558] [6] DEBUG:   schedule_delivery_time: NULL
 2014-01-23 11:12:17 [20558] [6] DEBUG:   validity_period: NULL
 2014-01-23 11:12:17 [20558] [6] DEBUG:   registered_delivery: 1 =
 0x0001
 2014-01-23 11:12:17 [20558] [6] DEBUG:   replace_if_present_flag: 0 =
 0x
 2014-01-23 11:12:17 [20558] [6] DEBUG:   data_coding: 0 = 0x
 2014-01-23 11:12:17 [20558] [6] DEBUG:   sm_default_msg_id: 0 = 0x
 2014-01-23 11:12:17 [20558] [6] DEBUG:   sm_length: 16 = 0x0010
 2014-01-23 11:12:17 [20558] [6] DEBUG:   short_message: Testing from RnD
 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP PDU dump ends.


 Rx
 
 2014-01-23 11:12:59 [20558] [7] DEBUG: SMPP[RND-1-Rx]: Got PDU:
 2014-01-23 11:12:59 [20558] [7] DEBUG: SMPP PDU 0x1e909800 dump:
 2014-01-23 11:12:59 [20558] [7] DEBUG:   type_name: deliver_sm
 2014-01-23 11:12:59 [20558] [7] DEBUG:   command_id: 5 = 0x0005
 2014-01-23 11:12:59 [20558] [7] DEBUG:   command_status: 0 = 0x
 2014-01-23 11:12:59 [20558] [7] DEBUG:   sequence_number: 647515690 =
 0x26984e2a
 2014-01-23 11:12:59 [20558] [7] DEBUG:   service_type: NULL
 2014-01-23 11:12:59 [20558] [7] DEBUG:   source_addr_ton: 0 = 0x
 2014-01-23 11:12:59 [20558] [7] DEBUG:   source_addr_npi: 0 = 0x
 2014-01-23 11:12:59 [20558] [7] DEBUG:   source_addr: 
 2014-01-23 11:12:59 [20558] [7] DEBUG:   dest_addr_ton: 0 = 0x
 2014-01-23 11:12:59 [20558] [7] DEBUG:   dest_addr_npi: 0 = 0x
 2014-01-23 11:12:59 [20558] [7] DEBUG:   destination_addr: 
 2014-01-23 11:12:59 [20558] [7] DEBUG:   esm_class: 4 = 0x0004
 2014-01-23 11:12:59 [20558] [7] DEBUG:   protocol_id: 0 = 0x
 2014-01-23 11:12:59 [20558] [7] DEBUG:   priority_flag: 0 = 0x
 2014-01-23 11:12:59 [20558] [7] DEBUG:   schedule_delivery_time: NULL
 2014-01-23 11:12:59 [20558] [7] DEBUG:   validity_period: NULL

RE: DLR: received showing 0 in kannel status page

2014-01-23 Thread Ciaran Scolard
Currently the Tx and Rx binds are named RND-1 and RND-1-Rx.
Wouldn't the SMPP binds have to be named the same for the DLR/ID matching to 
work?

From: users [mailto:users-boun...@kannel.org] On Behalf Of krnrd b
Sent: 23 January 2014 12:22
To: users
Subject: Re: DLR: received showing 0 in kannel status page

Hi all,

Any one faced this issue before?

Sorry just curious to know .

Thanks,
KRNRDB

On Thursday, January 23, 2014, krnrd b 
krn...@gmail.commailto:krn...@gmail.com wrote:
Hi all,

I am using kannel 1.5.0 devel version. When i use Tx and Rx separated while 
connecting SMSC now problem is when submit_sm happening message delivered to 
handset and sms sent as 1 on kannel status page and showing properly for Tx 
connection but when i receiving DLR on Rx connection it's showing DLR: received 
0 on kannel status page but dlr's coming properly on kannel logs.

Please suggest me why dlr's showing on kannel log but not showing on kannel 
status page.

Please find the attached kannel status page.

   Kannel bearerbox version `1.5.0'. Build `Jan 15 2014 15:56:30', compiler 
`4.1.2 20070626 (Red Hat 4.1.2-14)'. System Linux, release 2.6.18-53.el5, 
version
   #1 SMP Wed Oct 10 16:34:19 EDT 2007, machine x86_64. Hostname Blade1, IP 
172.16.8.206. Libxml version 2.6.26. Using OpenSSL 0.9.8b 04 May 2006. Compiled
   with MySQL 5.1.35, using MySQL 5.1.35. Using native malloc.

   Status: running, uptime 0d 0h 1m 15s

   WDP: received 0 (0 queued), sent 0 (0 queued)

   SMS: received 0 (0 queued), sent 1 (0 queued), store size 0
   SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.02,0.01,0.01) msg/sec

   DLR: received 0, sent 0
   DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
   DLR: 19 queued, using mysql storage

   Box connections:
   smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 4s)

   SMSC connections:
   RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:2161/0:TestAT:SMPP_RND (online 72s, 
rcvd: sms 0 / dlr 0, sent: sms 1 / dlr 0, failed 0, queued 0 msgs)
   RND-1-Rx[RND-1-Rx]SMPP:xxx.xxx.xxx.xxx:0/2161:TestAT:SMPP_RND 
(online 73s, rcvd: sms 0 / dlr 0, sent: sms 0 / dlr 0, failed 0, queued 0 msgs)


PDU :

Tx
-

2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP[RND-1]: throughput (0.00,1.00)
2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP[RND-1]: Sending PDU:
2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP PDU 0x2c000a80 dump:
2014-01-23 11:12:17 [20558] [6] DEBUG:   type_name: submit_sm
2014-01-23 11:12:17 [20558] [6] DEBUG:   command_id: 4 = 0x0004
2014-01-23 11:12:17 [20558] [6] DEBUG:   command_status: 0 = 0x
2014-01-23 11:12:17 [20558] [6] DEBUG:   sequence_number: 2 = 0x0002
2014-01-23 11:12:17 [20558] [6] DEBUG:   service_type: NULL
2014-01-23 11:12:17 [20558] [6] DEBUG:   source_addr_ton: 5 = 0x0005
2014-01-23 11:12:17 [20558] [6] DEBUG:   source_addr_npi: 0 = 0x
2014-01-23 11:12:17 [20558] [6] DEBUG:   source_addr: 
2014-01-23 11:12:17 [20558] [6] DEBUG:   dest_addr_ton: 2 = 0x0002
2014-01-23 11:12:17 [20558] [6] DEBUG:   dest_addr_npi: 1 = 0x0001
2014-01-23 11:12:17 [20558] [6] DEBUG:   destination_addr: 
2014-01-23 11:12:17 [20558] [6] DEBUG:   esm_class: 3 = 0x0003
2014-01-23 11:12:17 [20558] [6] DEBUG:   protocol_id: 0 = 0x
2014-01-23 11:12:17 [20558] [6] DEBUG:   priority_flag: 0 = 0x
2014-01-23 11:12:17 [20558] [6] DEBUG:   schedule_delivery_time: NULL
2014-01-23 11:12:17 [20558] [6] DEBUG:   validity_period: NULL
2014-01-23 11:12:17 [20558] [6] DEBUG:   registered_delivery: 1 = 0x0001
2014-01-23 11:12:17 [20558] [6] DEBUG:   replace_if_present_flag: 0 = 0x
2014-01-23 11:12:17 [20558] [6] DEBUG:   data_coding: 0 = 0x
2014-01-23 11:12:17 [20558] [6] DEBUG:   sm_default_msg_id: 0 = 0x
2014-01-23 11:12:17 [20558] [6] DEBUG:   sm_length: 16 = 0x0010
2014-01-23 11:12:17 [20558] [6] DEBUG:   short_message: Testing from RnD
2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP PDU dump ends.


Rx

2014-01-23 11:12:59 [20558] [7] DEBUG: SMPP[RND-1-Rx]: Got PDU:
2014-01-23 11:12:59 [20558] [7] DEBUG: SMPP PDU 0x1e909800 dump:
2014-01-23 11:12:59 [20558] [7] DEBUG:   type_name: deliver_sm
2014-01-23 11:12:59 [20558] [7] DEBUG:   command_id: 5 = 0x0005
2014-01-23 11:12:59 [20558] [7] DEBUG:   command_status: 0 = 0x
2014-01-23 11:12:59 [20558] [7] DEBUG:   sequence_number: 647515690 = 0x26984e2a
2014-01-23 11:12:59 [20558] [7] DEBUG:   service_type: NULL
2014-01-23 11:12:59 [20558] [7] DEBUG:   source_addr_ton: 0 = 0x
2014-01-23 11:12:59 [20558] [7] DEBUG:   source_addr_npi: 0 = 0x
2014-01-23 11:12:59 [20558] [7] DEBUG:   source_addr: 
2014-01-23 11:12:59 [20558] [7] DEBUG:   dest_addr_ton: 0 = 0x
2014-01-23 11:12:59 [20558] [7] DEBUG:   dest_addr_npi: 0 = 0x
2014-01-23 11:12:59 [20558] [7] DEBUG:   destination_addr: 
2014-01-23 11:12:59 [20558] [7] DEBUG:   esm_class: 4 = 0x0004
2014-01-23 11

Re: DLR: received showing 0 in kannel status page

2014-01-23 Thread krnrd b
How would I match DLR/ID ?

for Kannel 1.4.3 I use same configuration incoming and outgoing shows
properly.

Thanks,
KRNRDB


On Thu, Jan 23, 2014 at 7:22 PM, Ciaran Scolard cia...@phonovation.comwrote:

  Currently the Tx and Rx binds are named RND-1 and RND-1-Rx.

 Wouldn’t the SMPP binds have to be named the same for the DLR/ID matching
 to work?



 *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *krnrd b
 *Sent:* 23 January 2014 12:22
 *To:* users
 *Subject:* Re: DLR: received showing 0 in kannel status page



 Hi all,



 Any one faced this issue before?



 Sorry just curious to know .



 Thanks,

 KRNRDB

 On Thursday, January 23, 2014, krnrd b krn...@gmail.com wrote:

  Hi all,



 I am using kannel 1.5.0 devel version. When i use Tx and Rx separated
 while connecting SMSC now problem is when submit_sm happening message
 delivered to handset and sms sent as 1 on kannel status page and showing
 properly for Tx connection but when i receiving DLR on Rx connection it's
 showing DLR: received 0 on kannel status page but dlr's coming properly on
 kannel logs.



 Please suggest me why dlr's showing on kannel log but not showing on
 kannel status page.



 Please find the attached kannel status page.



Kannel bearerbox version `1.5.0'. Build `Jan 15 2014 15:56:30',
 compiler `4.1.2 20070626 (Red Hat 4.1.2-14)'. System Linux, release
 2.6.18-53.el5, version

#1 SMP Wed Oct 10 16:34:19 EDT 2007, machine x86_64. Hostname Blade1,
 IP 172.16.8.206. Libxml version 2.6.26. Using OpenSSL 0.9.8b 04 May 2006.
 Compiled

with MySQL 5.1.35, using MySQL 5.1.35. Using native malloc.



Status: running, uptime 0d 0h 1m 15s



WDP: received 0 (0 queued), sent 0 (0 queued)



SMS: received 0 (0 queued), sent 1 (0 queued), store size 0

SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.02,0.01,0.01) msg/sec



DLR: received 0, sent 0

DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec

DLR: 19 queued, using mysql storage



Box connections:

smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 4s)



SMSC connections:

RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:2161/0:TestAT:SMPP_RND (online
 72s, rcvd: sms 0 / dlr 0, sent: sms 1 / dlr 0, failed 0, queued 0 msgs)

RND-1-Rx[RND-1-Rx]SMPP:xxx.xxx.xxx.xxx:0/2161:TestAT:SMPP_RND
 (online 73s, rcvd: sms 0 / dlr 0, sent: sms 0 / dlr 0, failed 0, queued 0
 msgs)





 PDU :



 Tx

 -



 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP[RND-1]: throughput (0.00,1.00)

 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP[RND-1]: Sending PDU:

 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP PDU 0x2c000a80 dump:

 2014-01-23 11:12:17 [20558] [6] DEBUG:   type_name: submit_sm

 2014-01-23 11:12:17 [20558] [6] DEBUG:   command_id: 4 = 0x0004

 2014-01-23 11:12:17 [20558] [6] DEBUG:   command_status: 0 = 0x

 2014-01-23 11:12:17 [20558] [6] DEBUG:   sequence_number: 2 = 0x0002

 2014-01-23 11:12:17 [20558] [6] DEBUG:   service_type: NULL

 2014-01-23 11:12:17 [20558] [6] DEBUG:   source_addr_ton: 5 = 0x0005

 2014-01-23 11:12:17 [20558] [6] DEBUG:   source_addr_npi: 0 = 0x

 2014-01-23 11:12:17 [20558] [6] DEBUG:   source_addr: 

 2014-01-23 11:12:17 [20558] [6] DEBUG:   dest_addr_ton: 2 = 0x0002

 2014-01-23 11:12:17 [20558] [6] DEBUG:   dest_addr_npi: 1 = 0x0001

 2014-01-23 11:12:17 [20558] [6] DEBUG:   destination_addr: 

 2014-01-23 11:12:17 [20558] [6] DEBUG:   esm_class: 3 = 0x0003

 2014-01-23 11:12:17 [20558] [6] DEBUG:   protocol_id: 0 = 0x

 2014-01-23 11:12:17 [20558] [6] DEBUG:   priority_flag: 0 = 0x

 2014-01-23 11:12:17 [20558] [6] DEBUG:   schedule_delivery_time: NULL

 2014-01-23 11:12:17 [20558] [6] DEBUG:   validity_period: NULL

 2014-01-23 11:12:17 [20558] [6] DEBUG:   registered_delivery: 1 =
 0x0001

 2014-01-23 11:12:17 [20558] [6] DEBUG:   replace_if_present_flag: 0 =
 0x

 2014-01-23 11:12:17 [20558] [6] DEBUG:   data_coding: 0 = 0x

 2014-01-23 11:12:17 [20558] [6] DEBUG:   sm_default_msg_id: 0 = 0x

 2014-01-23 11:12:17 [20558] [6] DEBUG:   sm_length: 16 = 0x0010

 2014-01-23 11:12:17 [20558] [6] DEBUG:   short_message: Testing from RnD

 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP PDU dump ends.





 Rx

 

 2014-01-23 11:12:59 [20558] [7] DEBUG: SMPP[RND-1-Rx]: Got PDU:

 2014-01-23 11:12:59 [20558] [7] DEBUG: SMPP PDU 0x1e909800 dump:

 2014-01-23 11:12:59 [20558] [7] DEBUG:   type_name: deliver_sm

 2014-01-23 11:12:59 [20558] [7] DEBUG:   command_id: 5 = 0x0005

 2014-01-23 11:12:59 [20558] [7] DEBUG:   command_status: 0 = 0x

 2014-01-23 11:12:59 [20558] [7] DEBUG:   sequence_number: 647515690 =
 0x26984e2a

 2014-01-23 11:12:59 [20558] [7] DEBUG:   service_type: NULL

 2014-01-23 11:12:59 [20558] [7] DEBUG:   source_addr_ton: 0 = 0x

 2014-01-23 11:12:59 [20558] [7] DEBUG:   source_addr_npi: 0

Re: DLR: received showing 0 in kannel status page

2014-01-23 Thread krnrd b
I have try to rename RND-1-Rx bind to RND-1 same then dlr received showing
on kannel status page but the serious problem is the dlr's which i am
receiving, kannel sending the same dlr in submit_sm that means on Tx
connection the same delivery report submitted as submit_sm.

But when i use TRx mode kannel performing normally also submit and delivery
repots showing on kannel status page.

separate Tx and Rx binds use to work perfectly on kannel 1.4.3 but on
kannel 1.5.0 the same separate Tx and Rx connections not working properly
for same SMSC provider.

My be i am missing some configuration parameters or this is the behavior of
kannel 1.5.0.

Configuration which is working fine with kannel 1.4.3 and which not working
with kannel 1.5.0

# GROUP SMSC Tx
group = smsc
smsc = smpp
smsc-id = RND-1
throughput = 1
#transceiver-mode = yes
host = xxx.xxx.xxx.xxx
port = 
system-type = RND
smsc-username = x
smsc-password = x
address-range =  
reconnect-delay = 2
alt-charset = ASCII
enquire-link-interval = 30

# Rx connection
group = smsc
smsc = smpp
smsc-id = RND-1-Rx
throughput = 1
host = xxx.xxx.xxx.xxx
port = 
system-type = RND
smsc-username = x
smsc-password = x
address-range =  
reconnect-delay = 2
enquire-link-interval = 30





On Thu, Jan 23, 2014 at 10:17 PM, Ciaran Scolard cia...@phonovation.comwrote:

  It should happen automatically.

 I’m a bit new to kannel so I could be wrong but I think you just have to
 have the binds named the same.

 Try renaming your RND-1-Rx bind to RND-1 and see if that works.





 *From:* krnrd b [mailto:krn...@gmail.com]
 *Sent:* 23 January 2014 15:46
 *To:* Ciaran Scolard
 *Cc:* users

 *Subject:* Re: DLR: received showing 0 in kannel status page



 How would I match DLR/ID ?



 for Kannel 1.4.3 I use same configuration incoming and outgoing shows
 properly.



 Thanks,

 KRNRDB



 On Thu, Jan 23, 2014 at 7:22 PM, Ciaran Scolard cia...@phonovation.com
 wrote:

  Currently the Tx and Rx binds are named RND-1 and RND-1-Rx.

 Wouldn’t the SMPP binds have to be named the same for the DLR/ID matching
 to work?



 *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *krnrd b
 *Sent:* 23 January 2014 12:22
 *To:* users
 *Subject:* Re: DLR: received showing 0 in kannel status page



 Hi all,



 Any one faced this issue before?



 Sorry just curious to know .



 Thanks,

 KRNRDB

 On Thursday, January 23, 2014, krnrd b krn...@gmail.com wrote:

  Hi all,



 I am using kannel 1.5.0 devel version. When i use Tx and Rx separated
 while connecting SMSC now problem is when submit_sm happening message
 delivered to handset and sms sent as 1 on kannel status page and showing
 properly for Tx connection but when i receiving DLR on Rx connection it's
 showing DLR: received 0 on kannel status page but dlr's coming properly on
 kannel logs.



 Please suggest me why dlr's showing on kannel log but not showing on
 kannel status page.



 Please find the attached kannel status page.



Kannel bearerbox version `1.5.0'. Build `Jan 15 2014 15:56:30',
 compiler `4.1.2 20070626 (Red Hat 4.1.2-14)'. System Linux, release
 2.6.18-53.el5, version

#1 SMP Wed Oct 10 16:34:19 EDT 2007, machine x86_64. Hostname Blade1,
 IP 172.16.8.206. Libxml version 2.6.26. Using OpenSSL 0.9.8b 04 May 2006.
 Compiled

with MySQL 5.1.35, using MySQL 5.1.35. Using native malloc.



Status: running, uptime 0d 0h 1m 15s



WDP: received 0 (0 queued), sent 0 (0 queued)



SMS: received 0 (0 queued), sent 1 (0 queued), store size 0

SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.02,0.01,0.01) msg/sec



DLR: received 0, sent 0

DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec

DLR: 19 queued, using mysql storage



Box connections:

smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 4s)



SMSC connections:

RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:2161/0:TestAT:SMPP_RND (online
 72s, rcvd: sms 0 / dlr 0, sent: sms 1 / dlr 0, failed 0, queued 0 msgs)

RND-1-Rx[RND-1-Rx]SMPP:xxx.xxx.xxx.xxx:0/2161:TestAT:SMPP_RND
 (online 73s, rcvd: sms 0 / dlr 0, sent: sms 0 / dlr 0, failed 0, queued 0
 msgs)





 PDU :



 Tx

 -



 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP[RND-1]: throughput (0.00,1.00)

 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP[RND-1]: Sending PDU:

 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP PDU 0x2c000a80 dump:

 2014-01-23 11:12:17 [20558] [6] DEBUG:   type_name: submit_sm

 2014-01-23 11:12:17 [20558] [6] DEBUG:   command_id: 4 = 0x0004

 2014-01-23 11:12:17 [20558] [6] DEBUG:   command_status: 0 = 0x

 2014-01-23 11:12:17 [20558] [6] DEBUG:   sequence_number: 2 = 0x0002

 2014-01-23 11:12:17 [20558] [6] DEBUG:   service_type: NULL

 2014-01-23 11:12:17 [20558] [6] DEBUG:   source_addr_ton: 5 = 0x0005

 2014-01-23 11:12:17 [20558] [6] DEBUG:   source_addr_npi: 0 = 0x

 2014-01-23 11:12:17 [20558] [6] DEBUG:   source_addr

Re: DLR: received showing 0 in kannel status page

2014-01-23 Thread krnrd b
Hi All,

Any inputs for the issue I am facing.

Please point me in right direction if I am doing any mistake.

Thanks,
KRNRDB


On Thu, Jan 23, 2014 at 10:47 PM, krnrd b krn...@gmail.com wrote:

 I have try to rename RND-1-Rx bind to RND-1 same then dlr received showing
 on kannel status page but the serious problem is the dlr's which i am
 receiving, kannel sending the same dlr in submit_sm that means on Tx
 connection the same delivery report submitted as submit_sm.

 But when i use TRx mode kannel performing normally also submit and
 delivery repots showing on kannel status page.

 separate Tx and Rx binds use to work perfectly on kannel 1.4.3 but on
 kannel 1.5.0 the same separate Tx and Rx connections not working properly
 for same SMSC provider.

 My be i am missing some configuration parameters or this is the behavior
 of kannel 1.5.0.

 Configuration which is working fine with kannel 1.4.3 and which not
 working with kannel 1.5.0

 # GROUP SMSC Tx
 group = smsc
 smsc = smpp
 smsc-id = RND-1
 throughput = 1
 #transceiver-mode = yes
 host = xxx.xxx.xxx.xxx
 port = 
 system-type = RND
 smsc-username = x
 smsc-password = x
 address-range =  
 reconnect-delay = 2
 alt-charset = ASCII
 enquire-link-interval = 30

 # Rx connection
 group = smsc
 smsc = smpp
 smsc-id = RND-1-Rx
 throughput = 1
 host = xxx.xxx.xxx.xxx
 port = 
 system-type = RND
 smsc-username = x
 smsc-password = x
 address-range =  
 reconnect-delay = 2
 enquire-link-interval = 30





 On Thu, Jan 23, 2014 at 10:17 PM, Ciaran Scolard 
 cia...@phonovation.comwrote:

  It should happen automatically.

 I’m a bit new to kannel so I could be wrong but I think you just have to
 have the binds named the same.

 Try renaming your RND-1-Rx bind to RND-1 and see if that works.





 *From:* krnrd b [mailto:krn...@gmail.com]
 *Sent:* 23 January 2014 15:46
 *To:* Ciaran Scolard
 *Cc:* users

 *Subject:* Re: DLR: received showing 0 in kannel status page



 How would I match DLR/ID ?



 for Kannel 1.4.3 I use same configuration incoming and outgoing shows
 properly.



 Thanks,

 KRNRDB



 On Thu, Jan 23, 2014 at 7:22 PM, Ciaran Scolard cia...@phonovation.com
 wrote:

  Currently the Tx and Rx binds are named RND-1 and RND-1-Rx.

 Wouldn’t the SMPP binds have to be named the same for the DLR/ID matching
 to work?



 *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *krnrd b
 *Sent:* 23 January 2014 12:22
 *To:* users
 *Subject:* Re: DLR: received showing 0 in kannel status page



 Hi all,



 Any one faced this issue before?



 Sorry just curious to know .



 Thanks,

 KRNRDB

 On Thursday, January 23, 2014, krnrd b krn...@gmail.com wrote:

  Hi all,



 I am using kannel 1.5.0 devel version. When i use Tx and Rx separated
 while connecting SMSC now problem is when submit_sm happening message
 delivered to handset and sms sent as 1 on kannel status page and showing
 properly for Tx connection but when i receiving DLR on Rx connection it's
 showing DLR: received 0 on kannel status page but dlr's coming properly on
 kannel logs.



 Please suggest me why dlr's showing on kannel log but not showing on
 kannel status page.



 Please find the attached kannel status page.



Kannel bearerbox version `1.5.0'. Build `Jan 15 2014 15:56:30',
 compiler `4.1.2 20070626 (Red Hat 4.1.2-14)'. System Linux, release
 2.6.18-53.el5, version

#1 SMP Wed Oct 10 16:34:19 EDT 2007, machine x86_64. Hostname Blade1,
 IP 172.16.8.206. Libxml version 2.6.26. Using OpenSSL 0.9.8b 04 May 2006.
 Compiled

with MySQL 5.1.35, using MySQL 5.1.35. Using native malloc.



Status: running, uptime 0d 0h 1m 15s



WDP: received 0 (0 queued), sent 0 (0 queued)



SMS: received 0 (0 queued), sent 1 (0 queued), store size 0

SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.02,0.01,0.01)
 msg/sec



DLR: received 0, sent 0

DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00)
 msg/sec

DLR: 19 queued, using mysql storage



Box connections:

smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 4s)



SMSC connections:

RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:2161/0:TestAT:SMPP_RND
 (online 72s, rcvd: sms 0 / dlr 0, sent: sms 1 / dlr 0, failed 0, queued 0
 msgs)

RND-1-Rx[RND-1-Rx]SMPP:xxx.xxx.xxx.xxx:0/2161:TestAT:SMPP_RND
 (online 73s, rcvd: sms 0 / dlr 0, sent: sms 0 / dlr 0, failed 0, queued 0
 msgs)





 PDU :



 Tx

 -



 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP[RND-1]: throughput (0.00,1.00)

 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP[RND-1]: Sending PDU:

 2014-01-23 11:12:17 [20558] [6] DEBUG: SMPP PDU 0x2c000a80 dump:

 2014-01-23 11:12:17 [20558] [6] DEBUG:   type_name: submit_sm

 2014-01-23 11:12:17 [20558] [6] DEBUG:   command_id: 4 = 0x0004

 2014-01-23 11:12:17 [20558] [6] DEBUG:   command_status: 0 = 0x

 2014-01-23 11:12:17 [20558] [6] DEBUG:   sequence_number: 2 = 0x0002

 2014-01-23 11:12:17 [20558

Re: DLR: received showing 0 in kannel status page

2014-01-23 Thread John alero
Dear Krnrd,


Please use same smsc-id name for TX as well as RX session (RND-1).


Kindly find the sample example in given below.

SMSC connections:
   RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:2161/0:TestAT:SMPP_RND (online
72s, rcvd: sms 0 / dlr 0, sent: sms 1 / dlr 0, failed 0, queued 0 msgs)
   RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:0/2161:TestAT:SMPP_RND (online
73s, rcvd: sms 0 / dlr 0, sent: sms 0 / dlr 0, failed 0, queued 0 msgs)




On Fri, Jan 24, 2014 at 11:35 AM, krnrd b krn...@gmail.com wrote:

 Hi All,

 Any inputs for the issue I am facing.

 Please point me in right direction if I am doing any mistake.

 Thanks,
 KRNRDB


 On Thu, Jan 23, 2014 at 10:47 PM, krnrd b krn...@gmail.com wrote:

 I have try to rename RND-1-Rx bind to RND-1 same then dlr received
 showing on kannel status page but the serious problem is the dlr's which i
 am receiving, kannel sending the same dlr in submit_sm that means on Tx
 connection the same delivery report submitted as submit_sm.

 But when i use TRx mode kannel performing normally also submit and
 delivery repots showing on kannel status page.

 separate Tx and Rx binds use to work perfectly on kannel 1.4.3 but on
 kannel 1.5.0 the same separate Tx and Rx connections not working properly
 for same SMSC provider.

 My be i am missing some configuration parameters or this is the behavior
 of kannel 1.5.0.

 Configuration which is working fine with kannel 1.4.3 and which not
 working with kannel 1.5.0

 # GROUP SMSC Tx
 group = smsc
 smsc = smpp
 smsc-id = RND-1
 throughput = 1
 #transceiver-mode = yes
 host = xxx.xxx.xxx.xxx
 port = 
 system-type = RND
 smsc-username = x
 smsc-password = x
 address-range =  
 reconnect-delay = 2
 alt-charset = ASCII
 enquire-link-interval = 30

 # Rx connection
 group = smsc
 smsc = smpp
 smsc-id = RND-1-Rx
 throughput = 1
 host = xxx.xxx.xxx.xxx
 port = 
 system-type = RND
 smsc-username = x
 smsc-password = x
 address-range =  
 reconnect-delay = 2
 enquire-link-interval = 30





 On Thu, Jan 23, 2014 at 10:17 PM, Ciaran Scolard 
 cia...@phonovation.comwrote:

  It should happen automatically.

 I’m a bit new to kannel so I could be wrong but I think you just have to
 have the binds named the same.

 Try renaming your RND-1-Rx bind to RND-1 and see if that works.





 *From:* krnrd b [mailto:krn...@gmail.com]
 *Sent:* 23 January 2014 15:46
 *To:* Ciaran Scolard
 *Cc:* users

 *Subject:* Re: DLR: received showing 0 in kannel status page



 How would I match DLR/ID ?



 for Kannel 1.4.3 I use same configuration incoming and outgoing shows
 properly.



 Thanks,

 KRNRDB



 On Thu, Jan 23, 2014 at 7:22 PM, Ciaran Scolard cia...@phonovation.com
 wrote:

  Currently the Tx and Rx binds are named RND-1 and RND-1-Rx.

 Wouldn’t the SMPP binds have to be named the same for the DLR/ID
 matching to work?



 *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *krnrd b
 *Sent:* 23 January 2014 12:22
 *To:* users
 *Subject:* Re: DLR: received showing 0 in kannel status page



 Hi all,



 Any one faced this issue before?



 Sorry just curious to know .



 Thanks,

 KRNRDB

 On Thursday, January 23, 2014, krnrd b krn...@gmail.com wrote:

  Hi all,



 I am using kannel 1.5.0 devel version. When i use Tx and Rx separated
 while connecting SMSC now problem is when submit_sm happening message
 delivered to handset and sms sent as 1 on kannel status page and showing
 properly for Tx connection but when i receiving DLR on Rx connection it's
 showing DLR: received 0 on kannel status page but dlr's coming properly on
 kannel logs.



 Please suggest me why dlr's showing on kannel log but not showing on
 kannel status page.



 Please find the attached kannel status page.



Kannel bearerbox version `1.5.0'. Build `Jan 15 2014 15:56:30',
 compiler `4.1.2 20070626 (Red Hat 4.1.2-14)'. System Linux, release
 2.6.18-53.el5, version

#1 SMP Wed Oct 10 16:34:19 EDT 2007, machine x86_64. Hostname Blade1,
 IP 172.16.8.206. Libxml version 2.6.26. Using OpenSSL 0.9.8b 04 May 2006.
 Compiled

with MySQL 5.1.35, using MySQL 5.1.35. Using native malloc.



Status: running, uptime 0d 0h 1m 15s



WDP: received 0 (0 queued), sent 0 (0 queued)



SMS: received 0 (0 queued), sent 1 (0 queued), store size 0

SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.02,0.01,0.01)
 msg/sec



DLR: received 0, sent 0

DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00)
 msg/sec

DLR: 19 queued, using mysql storage



Box connections:

smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 4s)



SMSC connections:

RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:2161/0:TestAT:SMPP_RND
 (online 72s, rcvd: sms 0 / dlr 0, sent: sms 1 / dlr 0, failed 0, queued 0
 msgs)

RND-1-Rx[RND-1-Rx]SMPP:xxx.xxx.xxx.xxx:0/2161:TestAT:SMPP_RND
 (online 73s, rcvd: sms 0 / dlr 0, sent: sms 0 / dlr 0, failed 0, queued 0
 msgs)





 PDU :



 Tx

 -



 2014

Re: DLR: received showing 0 in kannel status page

2014-01-23 Thread krnrd b
When i did that the delivery report which is coming on Rx connection re
submited to Tx connection.


On Fri, Jan 24, 2014 at 11:42 AM, John alero johnale...@gmail.com wrote:

 Dear Krnrd,


 Please use same smsc-id name for TX as well as RX session (RND-1).


 Kindly find the sample example in given below.

 SMSC connections:
RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:2161/0:TestAT:SMPP_RND
 (online 72s, rcvd: sms 0 / dlr 0, sent: sms 1 / dlr 0, failed 0, queued 0
 msgs)
RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:0/2161:TestAT:SMPP_RND
 (online 73s, rcvd: sms 0 / dlr 0, sent: sms 0 / dlr 0, failed 0, queued 0
 msgs)




 On Fri, Jan 24, 2014 at 11:35 AM, krnrd b krn...@gmail.com wrote:

 Hi All,

 Any inputs for the issue I am facing.

 Please point me in right direction if I am doing any mistake.

 Thanks,
 KRNRDB


 On Thu, Jan 23, 2014 at 10:47 PM, krnrd b krn...@gmail.com wrote:

 I have try to rename RND-1-Rx bind to RND-1 same then dlr received
 showing on kannel status page but the serious problem is the dlr's which i
 am receiving, kannel sending the same dlr in submit_sm that means on Tx
 connection the same delivery report submitted as submit_sm.

 But when i use TRx mode kannel performing normally also submit and
 delivery repots showing on kannel status page.

 separate Tx and Rx binds use to work perfectly on kannel 1.4.3 but on
 kannel 1.5.0 the same separate Tx and Rx connections not working properly
 for same SMSC provider.

 My be i am missing some configuration parameters or this is the behavior
 of kannel 1.5.0.

 Configuration which is working fine with kannel 1.4.3 and which not
 working with kannel 1.5.0

 # GROUP SMSC Tx
 group = smsc
 smsc = smpp
 smsc-id = RND-1
 throughput = 1
 #transceiver-mode = yes
 host = xxx.xxx.xxx.xxx
 port = 
 system-type = RND
 smsc-username = x
 smsc-password = x
 address-range =  
 reconnect-delay = 2
 alt-charset = ASCII
 enquire-link-interval = 30

 # Rx connection
 group = smsc
 smsc = smpp
 smsc-id = RND-1-Rx
 throughput = 1
 host = xxx.xxx.xxx.xxx
 port = 
 system-type = RND
 smsc-username = x
 smsc-password = x
 address-range =  
 reconnect-delay = 2
 enquire-link-interval = 30





 On Thu, Jan 23, 2014 at 10:17 PM, Ciaran Scolard cia...@phonovation.com
  wrote:

  It should happen automatically.

 I’m a bit new to kannel so I could be wrong but I think you just have
 to have the binds named the same.

 Try renaming your RND-1-Rx bind to RND-1 and see if that works.





 *From:* krnrd b [mailto:krn...@gmail.com]
 *Sent:* 23 January 2014 15:46
 *To:* Ciaran Scolard
 *Cc:* users

 *Subject:* Re: DLR: received showing 0 in kannel status page



 How would I match DLR/ID ?



 for Kannel 1.4.3 I use same configuration incoming and outgoing shows
 properly.



 Thanks,

 KRNRDB



 On Thu, Jan 23, 2014 at 7:22 PM, Ciaran Scolard cia...@phonovation.com
 wrote:

  Currently the Tx and Rx binds are named RND-1 and RND-1-Rx.

 Wouldn’t the SMPP binds have to be named the same for the DLR/ID
 matching to work?



 *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *krnrd b
 *Sent:* 23 January 2014 12:22
 *To:* users
 *Subject:* Re: DLR: received showing 0 in kannel status page



 Hi all,



 Any one faced this issue before?



 Sorry just curious to know .



 Thanks,

 KRNRDB

 On Thursday, January 23, 2014, krnrd b krn...@gmail.com wrote:

  Hi all,



 I am using kannel 1.5.0 devel version. When i use Tx and Rx separated
 while connecting SMSC now problem is when submit_sm happening message
 delivered to handset and sms sent as 1 on kannel status page and showing
 properly for Tx connection but when i receiving DLR on Rx connection it's
 showing DLR: received 0 on kannel status page but dlr's coming properly on
 kannel logs.



 Please suggest me why dlr's showing on kannel log but not showing on
 kannel status page.



 Please find the attached kannel status page.



Kannel bearerbox version `1.5.0'. Build `Jan 15 2014 15:56:30',
 compiler `4.1.2 20070626 (Red Hat 4.1.2-14)'. System Linux, release
 2.6.18-53.el5, version

#1 SMP Wed Oct 10 16:34:19 EDT 2007, machine x86_64. Hostname
 Blade1, IP 172.16.8.206. Libxml version 2.6.26. Using OpenSSL 0.9.8b 04 May
 2006. Compiled

with MySQL 5.1.35, using MySQL 5.1.35. Using native malloc.



Status: running, uptime 0d 0h 1m 15s



WDP: received 0 (0 queued), sent 0 (0 queued)



SMS: received 0 (0 queued), sent 1 (0 queued), store size 0

SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.02,0.01,0.01)
 msg/sec



DLR: received 0, sent 0

DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00)
 msg/sec

DLR: 19 queued, using mysql storage



Box connections:

smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 4s)



SMSC connections:

RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:2161/0:TestAT:SMPP_RND
 (online 72s, rcvd: sms 0 / dlr 0, sent: sms 1 / dlr 0, failed 0, queued 0
 msgs)

RND

Re: DLR: received showing 0 in kannel status page

2014-01-23 Thread John alero
Dear Krnrd,

Please share your Kannel access logs as well as well as smsc conf file.


On Fri, Jan 24, 2014 at 11:50 AM, krnrd b krn...@gmail.com wrote:

 When i did that the delivery report which is coming on Rx connection re
 submited to Tx connection.


 On Fri, Jan 24, 2014 at 11:42 AM, John alero johnale...@gmail.com wrote:

 Dear Krnrd,


 Please use same smsc-id name for TX as well as RX session (RND-1).


 Kindly find the sample example in given below.

 SMSC connections:
RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:2161/0:TestAT:SMPP_RND
 (online 72s, rcvd: sms 0 / dlr 0, sent: sms 1 / dlr 0, failed 0, queued
 0 msgs)
RND-1[RND-1]SMPP:xxx.xxx.xxx.xxx:0/2161:TestAT:SMPP_RND
 (online 73s, rcvd: sms 0 / dlr 0, sent: sms 0 / dlr 0, failed 0, queued
 0 msgs)




 On Fri, Jan 24, 2014 at 11:35 AM, krnrd b krn...@gmail.com wrote:

 Hi All,

 Any inputs for the issue I am facing.

 Please point me in right direction if I am doing any mistake.

 Thanks,
 KRNRDB


 On Thu, Jan 23, 2014 at 10:47 PM, krnrd b krn...@gmail.com wrote:

 I have try to rename RND-1-Rx bind to RND-1 same then dlr received
 showing on kannel status page but the serious problem is the dlr's which i
 am receiving, kannel sending the same dlr in submit_sm that means on Tx
 connection the same delivery report submitted as submit_sm.

 But when i use TRx mode kannel performing normally also submit and
 delivery repots showing on kannel status page.

 separate Tx and Rx binds use to work perfectly on kannel 1.4.3 but on
 kannel 1.5.0 the same separate Tx and Rx connections not working properly
 for same SMSC provider.

 My be i am missing some configuration parameters or this is the
 behavior of kannel 1.5.0.

 Configuration which is working fine with kannel 1.4.3 and which not
 working with kannel 1.5.0

 # GROUP SMSC Tx
 group = smsc
 smsc = smpp
 smsc-id = RND-1
 throughput = 1
 #transceiver-mode = yes
 host = xxx.xxx.xxx.xxx
 port = 
 system-type = RND
 smsc-username = x
 smsc-password = x
 address-range =  
 reconnect-delay = 2
 alt-charset = ASCII
 enquire-link-interval = 30

 # Rx connection
 group = smsc
 smsc = smpp
 smsc-id = RND-1-Rx
 throughput = 1
 host = xxx.xxx.xxx.xxx
 port = 
 system-type = RND
 smsc-username = x
 smsc-password = x
 address-range =  
 reconnect-delay = 2
 enquire-link-interval = 30





 On Thu, Jan 23, 2014 at 10:17 PM, Ciaran Scolard 
 cia...@phonovation.com wrote:

  It should happen automatically.

 I’m a bit new to kannel so I could be wrong but I think you just have
 to have the binds named the same.

 Try renaming your RND-1-Rx bind to RND-1 and see if that works.





 *From:* krnrd b [mailto:krn...@gmail.com]
 *Sent:* 23 January 2014 15:46
 *To:* Ciaran Scolard
 *Cc:* users

 *Subject:* Re: DLR: received showing 0 in kannel status page



 How would I match DLR/ID ?



 for Kannel 1.4.3 I use same configuration incoming and outgoing shows
 properly.



 Thanks,

 KRNRDB



 On Thu, Jan 23, 2014 at 7:22 PM, Ciaran Scolard 
 cia...@phonovation.com wrote:

  Currently the Tx and Rx binds are named RND-1 and RND-1-Rx.

 Wouldn’t the SMPP binds have to be named the same for the DLR/ID
 matching to work?



 *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *krnrd b
 *Sent:* 23 January 2014 12:22
 *To:* users
 *Subject:* Re: DLR: received showing 0 in kannel status page



 Hi all,



 Any one faced this issue before?



 Sorry just curious to know .



 Thanks,

 KRNRDB

 On Thursday, January 23, 2014, krnrd b krn...@gmail.com wrote:

  Hi all,



 I am using kannel 1.5.0 devel version. When i use Tx and Rx separated
 while connecting SMSC now problem is when submit_sm happening message
 delivered to handset and sms sent as 1 on kannel status page and showing
 properly for Tx connection but when i receiving DLR on Rx connection it's
 showing DLR: received 0 on kannel status page but dlr's coming properly on
 kannel logs.



 Please suggest me why dlr's showing on kannel log but not showing on
 kannel status page.



 Please find the attached kannel status page.



Kannel bearerbox version `1.5.0'. Build `Jan 15 2014 15:56:30',
 compiler `4.1.2 20070626 (Red Hat 4.1.2-14)'. System Linux, release
 2.6.18-53.el5, version

#1 SMP Wed Oct 10 16:34:19 EDT 2007, machine x86_64. Hostname
 Blade1, IP 172.16.8.206. Libxml version 2.6.26. Using OpenSSL 0.9.8b 04 
 May
 2006. Compiled

with MySQL 5.1.35, using MySQL 5.1.35. Using native malloc.



Status: running, uptime 0d 0h 1m 15s



WDP: received 0 (0 queued), sent 0 (0 queued)



SMS: received 0 (0 queued), sent 1 (0 queued), store size 0

SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.02,0.01,0.01)
 msg/sec



DLR: received 0, sent 0

DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00)
 msg/sec

DLR: 19 queued, using mysql storage



Box connections:

smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 4s)



SMSC connections

RE: dlr-url don't insert SMS in database if message parts 1

2013-11-27 Thread Rene Kluwen
Probably it does. But only for the first part.

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of ?-?
Sent: woensdag 27 november 2013 8:05
To: users@kannel.org
Subject: dlr-url don't insert SMS in database if message parts  1

 

Hello. Sending sms works fine, dlr-url works fine, BUT if the message
contain more than one part (message lenght  160) script in dlr-url do not
insert data into the base. Why?

 

 

I use kannel with this config:

 

group = core

dlr-storage = mysql

admin-port = 13000

admin-password = *

status-password = *

admin-allow-ip = *

smsbox-port = 13001

log-level = 0

log-file = /var/log/kannel/kannel.log

box-allow-ip = 127.0.0.1

dlr-retry-count = 3

dlr-retry-delay = 200

 

group = smsbox

smsbox-id = BOX1

bearerbox-host = 127.0.0.1

sendsms-port = 13013

log-file = /var/log/kannel/smsbox.log

log-level = 0

access-log = /var/log/kannel/access.log

 

group = sendsms-user

default-smsc = smsc1

username = **

password = **

max-messages = 10

concatenation = true

 

group = smsc

smsc = smpp

smsc-id = smsc1

allowed-smsc-id = smsc1

host = **

port = **

smsc-username = **

smsc-password = **

address-range = 

system-type = 

transceiver-mode = true

validityperiod = 1440

source-addr-npi = 0

source-addr-ton = 5

dest-addr-npi = 1

dest-addr-ton = 1

 

group = smsc

smsc = smpp

smsc-id = smsc2

allowed-smsc-id = smsc2

host = **

port = **

smsc-username = **

smsc-password = **

address-range = 

system-type = 

transceiver-mode = true

validityperiod = 1440

source-addr-npi = 0

source-addr-ton = 5

dest-addr-npi = 1

dest-addr-ton = 1

 

group = mysql-connection

id = mydlr

host = localhost

username = **

password = **

database = **

max-connections = 10

 

group = dlr-db

id = mydlr

table = dlr

field-smsc = smsc

field-timestamp = ts

field-destination = destination

field-source = source

field-service = service

field-url = url

field-mask = mask

field-status = status

field-boxc-id = boxc



RE: DLR NOT UPDATED

2013-11-12 Thread Rene Kluwen
Dear Khan,

 

I just tried your insert query and it worked for me.

I got both the dlr-status = 8 and the dlr-status = 1.

 

Maybe your Trans001 smsc doesn’t support delivery reports to that destination.

 

=+= Rene

 

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Willy Mularto
Sent: maandag 11 november 2013 13:56
To: خان ابو زید
Cc: kannel users@kannel.org
Subject: Re: DLR NOT UPDATED

 

Read the user guide about dlr-mask.  

 

1=DLVRD

2=FAILED

4=BUFFERED

8=ACK

16=REJECTED

 

If you want to get update for DLVRD, FAILED, ACK then it means 1+2+8=11

 

 

 

Willy Mularto

SMS Gateway, Content Provider, Mobile Solution Specialist

M: +62811923464, +62818923464

PIN BBM: 74924429

 

 

 

On Nov 11, 2013, at 6:24 PM, خان ابو زید khan.abuz...@gmail.com wrote:





Dear Team,

 

I installed successfully kannel 1.5.0,sqlbox in my centos 6.4 VPS system.

I successfully start kannel in this sequence,  

1)/usr/local/kannel/sbin/bearerbox -v 0 /etc/kannel/kannel.conf

2)/usr/local/sbin/sqlbox -v 0 /etc/kannel/sqlbox.conf

3)/usr/local/kannel/sbin/smsbox -v 0 /etc/kannel/kannel.conf

 

Problem is that only ACK/ is received dlr_mask =8 getting.

message is delivered but dlr not updated.

 

My insert query :

 

INSERT INTO send_sms (  momt, sender, receiver, msgdata, sms_type, 
smsc_id,dlr_mask,dlr_url,boxc_id,coding) 

VALUES (  'MT', 'MOBLGI', '+919594092200 tel:%2B919594092200 ', 'TEST SMS', 
2,'Trans001',31,'uinque msg id','sqlbox',0);

 

 

 

My config file.

kannel.conf

group = core

admin-port = 13003

smsbox-port = 13016

admin-password = *

status-password = *

log-file = /var/log/kannel/kannel.log

log-level = 0

access-log = /var/log/kannel/access.log

store-type = spool

store-location = /var/log/kannel/spool

sms-resend-retry = 3

dlr-storage = mysql

smsbox-max-pending = 5

 

group = smsbox

bearerbox-host = localhost

bearerbox-port = 13020

sendsms-port = 13013

log-file = /var/log/kannel/smsbox.log

access-log = /var/log/kannel/access.log

log-level = 3

#mo-recode=true

#max-pending-requests = 2

 

group = smsbox-route

smsbox-id = sqlbox

smsc-id = Trans001

 

group = sendsms-user

username = abuzaid

password = 

#max-messages = 5

#concatenation = true

 

group=smsc

smsc=smpp

smsc-id=Trans001

allowed-smsc-id = Trans001

host = 121.241.242.121

port = 2351

transceiver-mode = 1

receive-port = 2351 

log-file = /var/log/kannel/Trans001.log

log-level = 0

smsc-username = *

smsc-password = *

msg-id-type = 0x00

source-addr-ton = 5

source-addr-npi = 9

dest-addr-ton = 1

dest-addr-npi = 1

enquire-link-interval = 60

system-type = default

reconnect-delay = 60

 

#Mysql Connection

group = mysql-connection

id = mydlr

host = localhost

username = root

password = mob@123

database = websms

max-connections = 10

 

#DLR Table Structure

group = dlr-db

id = mydlr

table = dlr

field-smsc = smsc

field-timestamp = ts

field-destination = destination

field-source = source

field-service = service

field-url = url

field-mask = mask

field-status = status

field-boxc-id = boxc

 

sqlbox.conf

group = sqlbox

id = sqlbox-db

smsbox-id = sqlbox

bearerbox-host = localhost

bearerbox-port = 13016

smsbox-port = 13020

smsbox-port-ssl = false

sql-log-table = sent_sms

sql-insert-table = send_sms

log-file = /var/log/kannel/kannel-sqlbox.log

log-level = 0

 

group = mysql-connection

id = sqlbox-db

host = localhost

username = root

password = 

database = testsms

 

-- 

Regards

Khan Abuzaid
Mob# :09664541886/9594092200
Mumbai

 



RE: DLR NOT UPDATED

2013-11-12 Thread Rene Kluwen
Do you see the dlr coming in, in your bearerbox logs?

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Rene Kluwen
Sent: dinsdag 12 november 2013 14:58
To: 'Willy Mularto'; 'خان ابو زید'
Cc: users@kannel.org
Subject: RE: DLR NOT UPDATED

 

Dear Khan,

 

I just tried your insert query and it worked for me.

I got both the dlr-status = 8 and the dlr-status = 1.

 

Maybe your Trans001 smsc doesn’t support delivery reports to that destination.

 

=+= Rene

 

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Willy Mularto
Sent: maandag 11 november 2013 13:56
To: خان ابو زید
Cc: kannel users@kannel.org
Subject: Re: DLR NOT UPDATED

 

Read the user guide about dlr-mask.  

 

1=DLVRD

2=FAILED

4=BUFFERED

8=ACK

16=REJECTED

 

If you want to get update for DLVRD, FAILED, ACK then it means 1+2+8=11

 

 

 

Willy Mularto

SMS Gateway, Content Provider, Mobile Solution Specialist

M: +62811923464, +62818923464

PIN BBM: 74924429

 

 

 

On Nov 11, 2013, at 6:24 PM, خان ابو زید khan.abuz...@gmail.com wrote:

 

Dear Team,

 

I installed successfully kannel 1.5.0,sqlbox in my centos 6.4 VPS system.

I successfully start kannel in this sequence,  

1)/usr/local/kannel/sbin/bearerbox -v 0 /etc/kannel/kannel.conf

2)/usr/local/sbin/sqlbox -v 0 /etc/kannel/sqlbox.conf

3)/usr/local/kannel/sbin/smsbox -v 0 /etc/kannel/kannel.conf

 

Problem is that only ACK/ is received dlr_mask =8 getting.

message is delivered but dlr not updated.

 

My insert query :

 

INSERT INTO send_sms (  momt, sender, receiver, msgdata, sms_type, 
smsc_id,dlr_mask,dlr_url,boxc_id,coding) 

VALUES (  'MT', 'MOBLGI', '+919594092200 tel:%2B919594092200 ', 'TEST SMS', 
2,'Trans001',31,'uinque msg id','sqlbox',0);

 

 

 

My config file.

kannel.conf

group = core

admin-port = 13003

smsbox-port = 13016

admin-password = *

status-password = *

log-file = /var/log/kannel/kannel.log

log-level = 0

access-log = /var/log/kannel/access.log

store-type = spool

store-location = /var/log/kannel/spool

sms-resend-retry = 3

dlr-storage = mysql

smsbox-max-pending = 5

 

group = smsbox

bearerbox-host = localhost

bearerbox-port = 13020

sendsms-port = 13013

log-file = /var/log/kannel/smsbox.log

access-log = /var/log/kannel/access.log

log-level = 3

#mo-recode=true

#max-pending-requests = 2

 

group = smsbox-route

smsbox-id = sqlbox

smsc-id = Trans001

 

group = sendsms-user

username = abuzaid

password = 

#max-messages = 5

#concatenation = true

 

group=smsc

smsc=smpp

smsc-id=Trans001

allowed-smsc-id = Trans001

host = 121.241.242.121

port = 2351

transceiver-mode = 1

receive-port = 2351 

log-file = /var/log/kannel/Trans001.log

log-level = 0

smsc-username = *

smsc-password = *

msg-id-type = 0x00

source-addr-ton = 5

source-addr-npi = 9

dest-addr-ton = 1

dest-addr-npi = 1

enquire-link-interval = 60

system-type = default

reconnect-delay = 60

 

#Mysql Connection

group = mysql-connection

id = mydlr

host = localhost

username = root

password = mob@123

database = websms

max-connections = 10

 

#DLR Table Structure

group = dlr-db

id = mydlr

table = dlr

field-smsc = smsc

field-timestamp = ts

field-destination = destination

field-source = source

field-service = service

field-url = url

field-mask = mask

field-status = status

field-boxc-id = boxc

 

sqlbox.conf

group = sqlbox

id = sqlbox-db

smsbox-id = sqlbox

bearerbox-host = localhost

bearerbox-port = 13016

smsbox-port = 13020

smsbox-port-ssl = false

sql-log-table = sent_sms

sql-insert-table = send_sms

log-file = /var/log/kannel/kannel-sqlbox.log

log-level = 0

 

group = mysql-connection

id = sqlbox-db

host = localhost

username = root

password = 

database = testsms

 

-- 

Regards

Khan Abuzaid
Mob# :09664541886/9594092200
Mumbai

 



Re: DLR NOT UPDATED

2013-11-11 Thread Willy Mularto
Read the user guide about dlr-mask. 

1=DLVRD
2=FAILED
4=BUFFERED
8=ACK
16=REJECTED

If you want to get update for DLVRD, FAILED, ACK then it means 1+2+8=11



Willy Mularto
SMS Gateway, Content Provider, Mobile Solution Specialist
M: +62811923464, +62818923464
PIN BBM: 74924429



On Nov 11, 2013, at 6:24 PM, خان ابو زید khan.abuz...@gmail.com wrote:

 Dear Team,
 
 I installed successfully kannel 1.5.0,sqlbox in my centos 6.4 VPS system.
 I successfully start kannel in this sequence,  
 1)/usr/local/kannel/sbin/bearerbox -v 0 /etc/kannel/kannel.conf
 2)/usr/local/sbin/sqlbox -v 0 /etc/kannel/sqlbox.conf
 3)/usr/local/kannel/sbin/smsbox -v 0 /etc/kannel/kannel.conf
 
 Problem is that only ACK/ is received dlr_mask =8 getting.
 message is delivered but dlr not updated.
 
 My insert query :
 
 INSERT INTO send_sms (  momt, sender, receiver, msgdata, sms_type, 
 smsc_id,dlr_mask,dlr_url,boxc_id,coding) 
 VALUES (  'MT', 'MOBLGI', '+919594092200', 'TEST SMS', 
 2,'Trans001',31,'uinque msg id','sqlbox',0);
 
 
 
 My config file.
 kannel.conf
 group = core
 admin-port = 13003
 smsbox-port = 13016
 admin-password = *
 status-password = *
 log-file = /var/log/kannel/kannel.log
 log-level = 0
 access-log = /var/log/kannel/access.log
 store-type = spool
 store-location = /var/log/kannel/spool
 sms-resend-retry = 3
 dlr-storage = mysql
 smsbox-max-pending = 5
 
 group = smsbox
 bearerbox-host = localhost
 bearerbox-port = 13020
 sendsms-port = 13013
 log-file = /var/log/kannel/smsbox.log
 access-log = /var/log/kannel/access.log
 log-level = 3
 #mo-recode=true
 #max-pending-requests = 2
 
 group = smsbox-route
 smsbox-id = sqlbox
 smsc-id = Trans001
 
 group = sendsms-user
 username = abuzaid
 password = 
 #max-messages = 5
 #concatenation = true
 
 group=smsc
 smsc=smpp
 smsc-id=Trans001
 allowed-smsc-id = Trans001
 host = 121.241.242.121
 port = 2351
 transceiver-mode = 1
 receive-port = 2351   
 log-file = /var/log/kannel/Trans001.log
 log-level = 0
 smsc-username = *
 smsc-password = *
 msg-id-type = 0x00
 source-addr-ton = 5
 source-addr-npi = 9
 dest-addr-ton = 1
 dest-addr-npi = 1
 enquire-link-interval = 60
 system-type = default
 reconnect-delay = 60
 
 #Mysql Connection
 group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = mob@123
 database = websms
 max-connections = 10
 
 #DLR Table Structure
 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-destination = destination
 field-source = source
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc
 
 sqlbox.conf
 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 bearerbox-host = localhost
 bearerbox-port = 13016
 smsbox-port = 13020
 smsbox-port-ssl = false
 sql-log-table = sent_sms
 sql-insert-table = send_sms
 log-file = /var/log/kannel/kannel-sqlbox.log
 log-level = 0
 
 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = root
 password = 
 database = testsms
 
 -- 
 Regards
 
 Khan Abuzaid
 Mob# :09664541886/9594092200
 Mumbai



Re: dlr

2013-10-25 Thread Alejandro Mussi
Hi Alvaro,

As for the error in response to submit_sm is fine. I know the reason. What
i need is a way to read automatically those errors (the status code). Some
of them are for insufficient credit on the line.

My DLR database is empty. In first email on this track i asked about that
issue. I posted my kannel.conf and dlr table structure.

Thanks again for the help.

Best



On Thu, Oct 24, 2013 at 5:10 PM, Alvaro Cornejo cornejo.alv...@gmail.comwrote:

 Hi Alejandro

 For your submit_sm you are receiving an specific error from your provider:


 2013-10-24 15:23:12 [8978] [6] ERROR:
 SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA]: SMSC returned error code
 0x0424 (Vendor-specific error, please refer to your SMPP provider)
 in response to submit_sm.

 You should contact the to see what this error means.

 On the other hand, kannel is creating the dlr:

 2013-10-24 15:23:12 [8978] [6] DEBUG:
 SMSC[SMPP:200.85.32.114:5600/5600:w3:VMA]: creating DLR message
 2013-10-24 15:23:12 [8978] [6] DEBUG:
 SMSC[SMPP:200.85.32.114:5600/5600:w3:VMA]: DLR =
 http://dev.w3.com.py/sms/api/dlr.php?myId=212

 Can you enter kannel dlr database and check what is in it? It migt
 give you a hint on the issue. Mostly ts and dst fields.

 Sorry can't help much.

 By the way, always cc kannel list so others can help and benefit from
 thread.

 Alvaro






 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, Oct 24, 2013 at 2:43 PM, Alejandro Mussi alemu...@gmail.com
 wrote:
  Hi Alvaro,
 
  Attach goes the log with a test sending to different phones. When i get
 
  command_status: 0 = 0x
 
  on a submit_sm_resp means that the message was successfully charged and
  delivered.
 
  Thanks
 
 
 
 
  On Thu, Oct 24, 2013 at 4:14 PM, Alvaro Cornejo 
 cornejo.alv...@gmail.com
  wrote:
 
  Hi
 
  Can you post a log of the submit  response for a message?
 
  Kannel is receiving the dlr, but seems can't make the match between
  dlr and message.
 
  Regards
 
  Alvaro
 
 
 |-|
  Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
  celular y Nextel
  en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
  SMS y GPRS online
Visitenos en www.perusms.com
 
 
  On Thu, Oct 24, 2013 at 1:10 PM, Alejandro Mussi alemu...@gmail.com
  wrote:
   Hi Alvaro,
  
   I tried with all possibles values for msg-id-type, 0x01, 0x02 and 0x03
   and i
   got the same error.
  
   Thanks
  
  
  
  
   On Wed, Oct 23, 2013 at 9:02 PM, Alvaro Cornejo
   cornejo.alv...@gmail.com
   wrote:
  
   Hi Alejandro.
  
   You are getting the dlr, but its id comes in the wrong format
   (dec/hex). And kannel is unable to match it with a message in its
   reccords, so it discards the dlr
  
   Check parameter msg-id-type and adjust accordingly
  
   You are receiving the message id as 10939229b39(HEX)  that is
   1139124902713(DEC)
  
   Hope this time you get it right.
  
   Regards
  
   Alvaro
  
  
  
 |-|
   Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde
 cualquier
   celular y Nextel
   en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias
 via
   SMS y GPRS online
 Visitenos en www.perusms.com
  
  
   On Wed, Oct 23, 2013 at 5:18 PM, Alejandro Mussi alemu...@gmail.com
 
   wrote:
Hi Alvaro,
   
I tried with dlr-mask=31 and i here is what i get on the logs
regarding
dlr,
see below:
   
2013-10-23 18:20:41 [2247] [7] DEBUG:
SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA]: Got PDU:
2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU 0x7fdfac000a70 dump:
2013-10-23 18:20:41 [2247] [7] DEBUG:   type_name: deliver_sm
2013-10-23 18:20:41 [2247] [7] DEBUG:   command_id: 5 = 0x0005
2013-10-23 18:20:41 [2247] [7] DEBUG:   command_status: 0 =
0x
2013-10-23 18:20:41 [2247] [7] DEBUG:   sequence_number: 52081 =
0xcb71
2013-10-23 18:20:41 [2247] [7] DEBUG:   service_type: NULL
2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr_ton: 1 =
0x0001
2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr_npi: 1 =
0x0001
2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr: 595981434xx
2013-10-23 18:20:41 [2247] [7] DEBUG:   dest_addr_ton: 2 =
 0x0002
2013-10-23 18:20:41 [2247] [7] DEBUG:   dest_addr_npi: 1 =
 0x0001
2013-10-23 18:20:41 [2247] [7] DEBUG:   destination_addr: 1244
2013-10-23 18:20:41 [2247] [7] DEBUG:   esm_class: 4 = 0x0004
2013-10-23 

Re: dlr

2013-10-25 Thread Alvaro Cornejo
Hmm lets return to start.

What version of kannel are you using? Try latest SVN if you are using
an outdated version. It is production ready.

Have you compiled kannel with mysql support:  ./configure --with-mysql
... ? you need mysql devel libs in order to be able to do this.

If kannel does not start with dlr-storage= myslq, then was a problem
with the compilation or the access/permits to the kannel dlr table

Lets try that

Regards

Alvaro
|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
  Visitenos en www.perusms.com


On Fri, Oct 25, 2013 at 9:51 AM, Alejandro Mussi alemu...@gmail.com wrote:

 Hi Alvaro,

 As for the error in response to submit_sm is fine. I know the reason. What i
 need is a way to read automatically those errors (the status code). Some of
 them are for insufficient credit on the line.

 My DLR database is empty. In first email on this track i asked about that
 issue. I posted my kannel.conf and dlr table structure.

 Thanks again for the help.

 Best



 On Thu, Oct 24, 2013 at 5:10 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 Hi Alejandro

 For your submit_sm you are receiving an specific error from your provider:


 2013-10-24 15:23:12 [8978] [6] ERROR:
 SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA]: SMSC returned error code
 0x0424 (Vendor-specific error, please refer to your SMPP provider)
 in response to submit_sm.

 You should contact the to see what this error means.

 On the other hand, kannel is creating the dlr:

 2013-10-24 15:23:12 [8978] [6] DEBUG:
 SMSC[SMPP:200.85.32.114:5600/5600:w3:VMA]: creating DLR message
 2013-10-24 15:23:12 [8978] [6] DEBUG:
 SMSC[SMPP:200.85.32.114:5600/5600:w3:VMA]: DLR =
 http://dev.w3.com.py/sms/api/dlr.php?myId=212

 Can you enter kannel dlr database and check what is in it? It migt
 give you a hint on the issue. Mostly ts and dst fields.

 Sorry can't help much.

 By the way, always cc kannel list so others can help and benefit from
 thread.

 Alvaro






 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, Oct 24, 2013 at 2:43 PM, Alejandro Mussi alemu...@gmail.com
 wrote:
  Hi Alvaro,
 
  Attach goes the log with a test sending to different phones. When i get
 
  command_status: 0 = 0x
 
  on a submit_sm_resp means that the message was successfully charged and
  delivered.
 
  Thanks
 
 
 
 
  On Thu, Oct 24, 2013 at 4:14 PM, Alvaro Cornejo
  cornejo.alv...@gmail.com
  wrote:
 
  Hi
 
  Can you post a log of the submit  response for a message?
 
  Kannel is receiving the dlr, but seems can't make the match between
  dlr and message.
 
  Regards
 
  Alvaro
 
 
  |-|
  Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
  celular y Nextel
  en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
  SMS y GPRS online
Visitenos en www.perusms.com
 
 
  On Thu, Oct 24, 2013 at 1:10 PM, Alejandro Mussi alemu...@gmail.com
  wrote:
   Hi Alvaro,
  
   I tried with all possibles values for msg-id-type, 0x01, 0x02 and
   0x03
   and i
   got the same error.
  
   Thanks
  
  
  
  
   On Wed, Oct 23, 2013 at 9:02 PM, Alvaro Cornejo
   cornejo.alv...@gmail.com
   wrote:
  
   Hi Alejandro.
  
   You are getting the dlr, but its id comes in the wrong format
   (dec/hex). And kannel is unable to match it with a message in its
   reccords, so it discards the dlr
  
   Check parameter msg-id-type and adjust accordingly
  
   You are receiving the message id as 10939229b39(HEX)  that is
   1139124902713(DEC)
  
   Hope this time you get it right.
  
   Regards
  
   Alvaro
  
  
  
   |-|
   Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde
   cualquier
   celular y Nextel
   en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias
   via
   SMS y GPRS online
 Visitenos en www.perusms.com
  
  
   On Wed, Oct 23, 2013 at 5:18 PM, Alejandro Mussi
   alemu...@gmail.com
   wrote:
Hi Alvaro,
   
I tried with dlr-mask=31 and i here is what i get on the logs
regarding
dlr,
see below:
   
2013-10-23 18:20:41 [2247] [7] DEBUG:
SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA]: Got PDU:
2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU 0x7fdfac000a70
dump:

Re: dlr

2013-10-24 Thread Alejandro Mussi
Hi Alvaro,

I tried with all possibles values for msg-id-type, 0x01, 0x02 and 0x03 and
i got the same error.

Thanks




On Wed, Oct 23, 2013 at 9:02 PM, Alvaro Cornejo cornejo.alv...@gmail.comwrote:

 Hi Alejandro.

 You are getting the dlr, but its id comes in the wrong format
 (dec/hex). And kannel is unable to match it with a message in its
 reccords, so it discards the dlr

 Check parameter msg-id-type and adjust accordingly

 You are receiving the message id as 10939229b39(HEX)  that is
 1139124902713(DEC)

 Hope this time you get it right.

 Regards

 Alvaro

 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Wed, Oct 23, 2013 at 5:18 PM, Alejandro Mussi alemu...@gmail.com
 wrote:
  Hi Alvaro,
 
  I tried with dlr-mask=31 and i here is what i get on the logs regarding
 dlr,
  see below:
 
  2013-10-23 18:20:41 [2247] [7] DEBUG:
  SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA]: Got PDU:
  2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU 0x7fdfac000a70 dump:
  2013-10-23 18:20:41 [2247] [7] DEBUG:   type_name: deliver_sm
  2013-10-23 18:20:41 [2247] [7] DEBUG:   command_id: 5 = 0x0005
  2013-10-23 18:20:41 [2247] [7] DEBUG:   command_status: 0 = 0x
  2013-10-23 18:20:41 [2247] [7] DEBUG:   sequence_number: 52081 =
 0xcb71
  2013-10-23 18:20:41 [2247] [7] DEBUG:   service_type: NULL
  2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr_ton: 1 = 0x0001
  2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr_npi: 1 = 0x0001
  2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr: 595981434xx
  2013-10-23 18:20:41 [2247] [7] DEBUG:   dest_addr_ton: 2 = 0x0002
  2013-10-23 18:20:41 [2247] [7] DEBUG:   dest_addr_npi: 1 = 0x0001
  2013-10-23 18:20:41 [2247] [7] DEBUG:   destination_addr: 1244
  2013-10-23 18:20:41 [2247] [7] DEBUG:   esm_class: 4 = 0x0004
  2013-10-23 18:20:41 [2247] [7] DEBUG:   protocol_id: 0 = 0x
  2013-10-23 18:20:41 [2247] [7] DEBUG:   priority_flag: 0 = 0x
  2013-10-23 18:20:41 [2247] [7] DEBUG:   schedule_delivery_time: NULL
  2013-10-23 18:20:41 [2247] [7] DEBUG:   validity_period: NULL
  2013-10-23 18:20:41 [2247] [7] DEBUG:   registered_delivery: 1 =
 0x0001
  2013-10-23 18:20:41 [2247] [7] DEBUG:   replace_if_present_flag: 0 =
  0x
  2013-10-23 18:20:41 [2247] [7] DEBUG:   data_coding: 0 = 0x
  2013-10-23 18:20:41 [2247] [7] DEBUG:   sm_default_msg_id: 0 = 0x
  2013-10-23 18:20:41 [2247] [7] DEBUG:   sm_length: 121 = 0x0079
  2013-10-23 18:20:41 [2247] [7] DEBUG:   short_message:
  2013-10-23 18:20:41 [2247] [7] DEBUG:Octet string at 0x7fdfac000c70:
  2013-10-23 18:20:41 [2247] [7] DEBUG:  len:  121
  2013-10-23 18:20:41 [2247] [7] DEBUG:  size: 122
  2013-10-23 18:20:41 [2247] [7] DEBUG:  immutable: 0
  2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 69 64 3a 31 30 39 33 39
 32
  32 39 62 33 39 20 73   id:10939229b39 s
  2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 75 62 3a 30 30 31 20 64
 6c
  76 72 64 3a 30 30 31   ub:001 dlvrd:001
  2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 20 73 75 62 6d 69 74 20
 64
  61 74 65 3a 31 33 31submit date:131
  2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 30 32 33 31 38 30 31 20
 64
  6f 6e 65 20 64 61 74   0231801 done dat
  2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 65 3a 31 33 31 30 32 33
 31
  38 30 31 20 73 74 61   e:1310231801 sta
  2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 74 3a 44 45 4c 49 56 52
 44
  20 65 72 72 3a 30 20   t:DELIVRD err:0
  2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 74 65 78 74 3a 6d 65 73
 73
  61 67 65 20 53 61 62   text:message Sab
  2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 69 61 73 20 71 75 65 20
 74
  ias que t
  2013-10-23 18:20:41 [2247] [7] DEBUG:Octet string dump ends.
  2013-10-23 18:20:41 [2247] [7] DEBUG:   message_state: 2 = 0x0002
  2013-10-23 18:20:41 [2247] [7] DEBUG:   receipted_message_id:
 10939229b39
  2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU dump ends.
 
  2013-10-23 18:20:41 [2247] [7] DEBUG:
  SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA] handle_pdu, got DLR
  2013-10-23 18:20:41 [2247] [7] DEBUG: DLR[internal]: Looking for DLR
  smsc=SMPP:200.85.32.114:5600/5600:w3:VMA, ts=10939229b39,
 dst=595981434xxx,
  type=1
  2013-10-23 18:20:41 [2247] [7] WARNING: DLR[internal]: DLR from
  SMSCSMPP:200.85.32.114:5600/5600:w3:VMA for DST595981434xxx not
 found.
  2013-10-23 18:20:41 [2247] [7] ERROR:
  SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA]: got DLR but could not find
  message or was not interested in it id10939229b39 dst595981434xxx,
  type1
 
  Here is what i send to kannel:
 
 

Re: dlr

2013-10-24 Thread Alvaro Cornejo
Hi Alejandro

For your submit_sm you are receiving an specific error from your provider:


2013-10-24 15:23:12 [8978] [6] ERROR:
SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA]: SMSC returned error code
0x0424 (Vendor-specific error, please refer to your SMPP provider)
in response to submit_sm.

You should contact the to see what this error means.

On the other hand, kannel is creating the dlr:

2013-10-24 15:23:12 [8978] [6] DEBUG:
SMSC[SMPP:200.85.32.114:5600/5600:w3:VMA]: creating DLR message
2013-10-24 15:23:12 [8978] [6] DEBUG:
SMSC[SMPP:200.85.32.114:5600/5600:w3:VMA]: DLR =
http://dev.w3.com.py/sms/api/dlr.php?myId=212

Can you enter kannel dlr database and check what is in it? It migt
give you a hint on the issue. Mostly ts and dst fields.

Sorry can't help much.

By the way, always cc kannel list so others can help and benefit from thread.

Alvaro





|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
  Visitenos en www.perusms.com


On Thu, Oct 24, 2013 at 2:43 PM, Alejandro Mussi alemu...@gmail.com wrote:
 Hi Alvaro,

 Attach goes the log with a test sending to different phones. When i get

 command_status: 0 = 0x

 on a submit_sm_resp means that the message was successfully charged and
 delivered.

 Thanks




 On Thu, Oct 24, 2013 at 4:14 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 Hi

 Can you post a log of the submit  response for a message?

 Kannel is receiving the dlr, but seems can't make the match between
 dlr and message.

 Regards

 Alvaro

 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, Oct 24, 2013 at 1:10 PM, Alejandro Mussi alemu...@gmail.com
 wrote:
  Hi Alvaro,
 
  I tried with all possibles values for msg-id-type, 0x01, 0x02 and 0x03
  and i
  got the same error.
 
  Thanks
 
 
 
 
  On Wed, Oct 23, 2013 at 9:02 PM, Alvaro Cornejo
  cornejo.alv...@gmail.com
  wrote:
 
  Hi Alejandro.
 
  You are getting the dlr, but its id comes in the wrong format
  (dec/hex). And kannel is unable to match it with a message in its
  reccords, so it discards the dlr
 
  Check parameter msg-id-type and adjust accordingly
 
  You are receiving the message id as 10939229b39(HEX)  that is
  1139124902713(DEC)
 
  Hope this time you get it right.
 
  Regards
 
  Alvaro
 
 
  |-|
  Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
  celular y Nextel
  en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
  SMS y GPRS online
Visitenos en www.perusms.com
 
 
  On Wed, Oct 23, 2013 at 5:18 PM, Alejandro Mussi alemu...@gmail.com
  wrote:
   Hi Alvaro,
  
   I tried with dlr-mask=31 and i here is what i get on the logs
   regarding
   dlr,
   see below:
  
   2013-10-23 18:20:41 [2247] [7] DEBUG:
   SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA]: Got PDU:
   2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU 0x7fdfac000a70 dump:
   2013-10-23 18:20:41 [2247] [7] DEBUG:   type_name: deliver_sm
   2013-10-23 18:20:41 [2247] [7] DEBUG:   command_id: 5 = 0x0005
   2013-10-23 18:20:41 [2247] [7] DEBUG:   command_status: 0 =
   0x
   2013-10-23 18:20:41 [2247] [7] DEBUG:   sequence_number: 52081 =
   0xcb71
   2013-10-23 18:20:41 [2247] [7] DEBUG:   service_type: NULL
   2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr_ton: 1 =
   0x0001
   2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr_npi: 1 =
   0x0001
   2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr: 595981434xx
   2013-10-23 18:20:41 [2247] [7] DEBUG:   dest_addr_ton: 2 = 0x0002
   2013-10-23 18:20:41 [2247] [7] DEBUG:   dest_addr_npi: 1 = 0x0001
   2013-10-23 18:20:41 [2247] [7] DEBUG:   destination_addr: 1244
   2013-10-23 18:20:41 [2247] [7] DEBUG:   esm_class: 4 = 0x0004
   2013-10-23 18:20:41 [2247] [7] DEBUG:   protocol_id: 0 = 0x
   2013-10-23 18:20:41 [2247] [7] DEBUG:   priority_flag: 0 = 0x
   2013-10-23 18:20:41 [2247] [7] DEBUG:   schedule_delivery_time: NULL
   2013-10-23 18:20:41 [2247] [7] DEBUG:   validity_period: NULL
   2013-10-23 18:20:41 [2247] [7] DEBUG:   registered_delivery: 1 =
   0x0001
   2013-10-23 18:20:41 [2247] [7] DEBUG:   replace_if_present_flag: 0 =
   0x
   2013-10-23 18:20:41 [2247] [7] DEBUG:   data_coding: 0 = 0x
   2013-10-23 18:20:41 [2247] [7] DEBUG:   sm_default_msg_id: 0 =
   0x
   2013-10-23 18:20:41 

Re: dlr

2013-10-23 Thread Alejandro Mussi
Hi Alvaro,

I tried with dlr-mask=31 and i here is what i get on the logs regarding
dlr, see below:

2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP[SMPP:
200.85.32.114:5600/5600:w3:VMA]: Got PDU:
2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU 0x7fdfac000a70 dump:
2013-10-23 18:20:41 [2247] [7] DEBUG:   type_name: deliver_sm
2013-10-23 18:20:41 [2247] [7] DEBUG:   command_id: 5 = 0x0005
2013-10-23 18:20:41 [2247] [7] DEBUG:   command_status: 0 = 0x
2013-10-23 18:20:41 [2247] [7] DEBUG:   sequence_number: 52081 = 0xcb71
2013-10-23 18:20:41 [2247] [7] DEBUG:   service_type: NULL
2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr_ton: 1 = 0x0001
2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr_npi: 1 = 0x0001
2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr: 595981434xx
2013-10-23 18:20:41 [2247] [7] DEBUG:   dest_addr_ton: 2 = 0x0002
2013-10-23 18:20:41 [2247] [7] DEBUG:   dest_addr_npi: 1 = 0x0001
2013-10-23 18:20:41 [2247] [7] DEBUG:   destination_addr: 1244
2013-10-23 18:20:41 [2247] [7] DEBUG:   esm_class: 4 = 0x0004
2013-10-23 18:20:41 [2247] [7] DEBUG:   protocol_id: 0 = 0x
2013-10-23 18:20:41 [2247] [7] DEBUG:   priority_flag: 0 = 0x
2013-10-23 18:20:41 [2247] [7] DEBUG:   schedule_delivery_time: NULL
2013-10-23 18:20:41 [2247] [7] DEBUG:   validity_period: NULL
2013-10-23 18:20:41 [2247] [7] DEBUG:   registered_delivery: 1 = 0x0001
2013-10-23 18:20:41 [2247] [7] DEBUG:   replace_if_present_flag: 0 =
0x
2013-10-23 18:20:41 [2247] [7] DEBUG:   data_coding: 0 = 0x
2013-10-23 18:20:41 [2247] [7] DEBUG:   sm_default_msg_id: 0 = 0x
2013-10-23 18:20:41 [2247] [7] DEBUG:   sm_length: 121 = 0x0079
2013-10-23 18:20:41 [2247] [7] DEBUG:   short_message:
2013-10-23 18:20:41 [2247] [7] DEBUG:Octet string at 0x7fdfac000c70:
2013-10-23 18:20:41 [2247] [7] DEBUG:  len:  121
2013-10-23 18:20:41 [2247] [7] DEBUG:  size: 122
2013-10-23 18:20:41 [2247] [7] DEBUG:  immutable: 0
2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 69 64 3a 31 30 39 33 39 32
32 39 62 33 39 20 73   id:10939229b39 s
2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 75 62 3a 30 30 31 20 64 6c
76 72 64 3a 30 30 31   ub:001 dlvrd:001
2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 20 73 75 62 6d 69 74 20 64
61 74 65 3a 31 33 31submit date:131
2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 30 32 33 31 38 30 31 20 64
6f 6e 65 20 64 61 74   0231801 done dat
2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 65 3a 31 33 31 30 32 33 31
38 30 31 20 73 74 61   e:1310231801 sta
2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 74 3a 44 45 4c 49 56 52 44
20 65 72 72 3a 30 20   t:DELIVRD err:0
2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 74 65 78 74 3a 6d 65 73 73
61 67 65 20 53 61 62   text:message Sab
2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 69 61 73 20 71 75 65 20 74
   ias que t
2013-10-23 18:20:41 [2247] [7] DEBUG:Octet string dump ends.
2013-10-23 18:20:41 [2247] [7] DEBUG:   message_state: 2 = 0x0002
2013-10-23 18:20:41 [2247] [7] DEBUG:   receipted_message_id: 10939229b39
2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU dump ends.

2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP[SMPP:
200.85.32.114:5600/5600:w3:VMA] handle_pdu, got DLR
2013-10-23 18:20:41 [2247] [7] DEBUG: DLR[internal]: Looking for DLR
smsc=SMPP:200.85.32.114:5600/5600:w3:VMA, ts=10939229b39, dst=595981434xxx,
type=1
2013-10-23 18:20:41 [2247] [7] WARNING: DLR[internal]: DLR from SMSCSMPP:
200.85.32.114:5600/5600:w3:VMA for DST595981434xxx not found.
2013-10-23 18:20:41 [2247] [7] ERROR: SMPP[SMPP:
200.85.32.114:5600/5600:w3:VMA]: got DLR but could not find message or was
not interested in it id10939229b39 dst595981434xxx, type1

Here is what i send to kannel:
http://xxx.xxx.xx:13013/cgi-bin/sendsms?username=xxxpassword=xxxto=+595981434xxxfrom=1244binfo=Ytext=bla+bla+bla+bladlr-url=http://xxx.xxx.xxx/sms/api/dlr.php?myId=181type=%ddlr-mask=31


I expect a http call with the type argument set but i got a GET resquest
with only myId set:
192.168.1.1 - - [23/Oct/2013:18:20:37 -0300] GET /sms/api/dlr.php?myId=189
HTTP/1.1 200 -

Any idea why i do not get the type parameter set back?

What i actually need is the command_status of the submit_sm_resp of the
corresponding submit_sm i sent.
When i look in the bearbox logs i know with the sequence_number the
corresponding submit_sm message i sent, and with the command_status on the
submit_sm_resp i can check what happened with the message (i know what
operator means with different status code), but this process i need to
automate and the closest solution i found is using DLR.

Thanks for the help.

Best







On Mon, Oct 21, 2013 at 2:43 PM, Alvaro Cornejo cornejo.alv...@gmail.comwrote:

 Hi Alejandro

 dlr-mask indicates which reports you want to receive. According to
 that, you add the values for each status and that is what you use.

 If you want status 1 and 2 use a value of 3 (1+2). Else try 

Re: dlr

2013-10-23 Thread JM LE FEVRE
Hello Alvaro, 

Can you try %26type= instead of type= in the Kannel URL ? 

Best Regards,

Le 24 oct. 2013 à 00:18, Alejandro Mussi alemu...@gmail.com a écrit :

 Hi Alvaro,
 
 I tried with dlr-mask=31 and i here is what i get on the logs regarding dlr, 
 see below:
 
 2013-10-23 18:20:41 [2247] [7] DEBUG: 
 SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA]: Got PDU:
 2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU 0x7fdfac000a70 dump:
 2013-10-23 18:20:41 [2247] [7] DEBUG:   type_name: deliver_sm
 2013-10-23 18:20:41 [2247] [7] DEBUG:   command_id: 5 = 0x0005
 2013-10-23 18:20:41 [2247] [7] DEBUG:   command_status: 0 = 0x
 2013-10-23 18:20:41 [2247] [7] DEBUG:   sequence_number: 52081 = 0xcb71
 2013-10-23 18:20:41 [2247] [7] DEBUG:   service_type: NULL
 2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr_ton: 1 = 0x0001
 2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr_npi: 1 = 0x0001
 2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr: 595981434xx
 2013-10-23 18:20:41 [2247] [7] DEBUG:   dest_addr_ton: 2 = 0x0002
 2013-10-23 18:20:41 [2247] [7] DEBUG:   dest_addr_npi: 1 = 0x0001
 2013-10-23 18:20:41 [2247] [7] DEBUG:   destination_addr: 1244
 2013-10-23 18:20:41 [2247] [7] DEBUG:   esm_class: 4 = 0x0004
 2013-10-23 18:20:41 [2247] [7] DEBUG:   protocol_id: 0 = 0x
 2013-10-23 18:20:41 [2247] [7] DEBUG:   priority_flag: 0 = 0x
 2013-10-23 18:20:41 [2247] [7] DEBUG:   schedule_delivery_time: NULL
 2013-10-23 18:20:41 [2247] [7] DEBUG:   validity_period: NULL
 2013-10-23 18:20:41 [2247] [7] DEBUG:   registered_delivery: 1 = 0x0001
 2013-10-23 18:20:41 [2247] [7] DEBUG:   replace_if_present_flag: 0 = 
 0x
 2013-10-23 18:20:41 [2247] [7] DEBUG:   data_coding: 0 = 0x
 2013-10-23 18:20:41 [2247] [7] DEBUG:   sm_default_msg_id: 0 = 0x
 2013-10-23 18:20:41 [2247] [7] DEBUG:   sm_length: 121 = 0x0079
 2013-10-23 18:20:41 [2247] [7] DEBUG:   short_message:
 2013-10-23 18:20:41 [2247] [7] DEBUG:Octet string at 0x7fdfac000c70:
 2013-10-23 18:20:41 [2247] [7] DEBUG:  len:  121
 2013-10-23 18:20:41 [2247] [7] DEBUG:  size: 122
 2013-10-23 18:20:41 [2247] [7] DEBUG:  immutable: 0
 2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 69 64 3a 31 30 39 33 39 32 
 32 39 62 33 39 20 73   id:10939229b39 s
 2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 75 62 3a 30 30 31 20 64 6c 
 76 72 64 3a 30 30 31   ub:001 dlvrd:001
 2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 20 73 75 62 6d 69 74 20 64 
 61 74 65 3a 31 33 31submit date:131
 2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 30 32 33 31 38 30 31 20 64 
 6f 6e 65 20 64 61 74   0231801 done dat
 2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 65 3a 31 33 31 30 32 33 31 
 38 30 31 20 73 74 61   e:1310231801 sta
 2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 74 3a 44 45 4c 49 56 52 44 
 20 65 72 72 3a 30 20   t:DELIVRD err:0 
 2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 74 65 78 74 3a 6d 65 73 73 
 61 67 65 20 53 61 62   text:message Sab
 2013-10-23 18:20:41 [2247] [7] DEBUG:  data: 69 61 73 20 71 75 65 20 74   
  ias que t
 2013-10-23 18:20:41 [2247] [7] DEBUG:Octet string dump ends.
 2013-10-23 18:20:41 [2247] [7] DEBUG:   message_state: 2 = 0x0002
 2013-10-23 18:20:41 [2247] [7] DEBUG:   receipted_message_id: 10939229b39
 2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU dump ends.
 
 2013-10-23 18:20:41 [2247] [7] DEBUG: 
 SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA] handle_pdu, got DLR
 2013-10-23 18:20:41 [2247] [7] DEBUG: DLR[internal]: Looking for DLR 
 smsc=SMPP:200.85.32.114:5600/5600:w3:VMA, ts=10939229b39, dst=595981434xxx, 
 type=1
 2013-10-23 18:20:41 [2247] [7] WARNING: DLR[internal]: DLR from 
 SMSCSMPP:200.85.32.114:5600/5600:w3:VMA for DST595981434xxx not found.
 2013-10-23 18:20:41 [2247] [7] ERROR: 
 SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA]: got DLR but could not find message 
 or was not interested in it id10939229b39 dst595981434xxx, type1
 
 Here is what i send to kannel:
 http://xxx.xxx.xx:13013/cgi-bin/sendsms?username=xxxpassword=xxxto=+595981434xxxfrom=1244binfo=Ytext=bla+bla+bla+bladlr-url=http://xxx.xxx.xxx/sms/api/dlr.php?myId=181type=%ddlr-mask=31
 
 
 I expect a http call with the type argument set but i got a GET resquest with 
 only myId set:
 192.168.1.1 - - [23/Oct/2013:18:20:37 -0300] GET /sms/api/dlr.php?myId=189 
 HTTP/1.1 200 -
 
 Any idea why i do not get the type parameter set back?
 
 What i actually need is the command_status of the submit_sm_resp of the 
 corresponding submit_sm i sent.
 When i look in the bearbox logs i know with the sequence_number the 
 corresponding submit_sm message i sent, and with the command_status on the 
 submit_sm_resp i can check what happened with the message (i know what 
 operator means with different status code), but this process i need to 
 automate and the closest solution i found is using DLR.
 
 Thanks for the help.
 
 Best
 
 
 
 
 
 
 
 On Mon, 

Re: dlr

2013-10-21 Thread Alejandro Mussi
Hi Alvaro,

Thanks for the response. I am new using kannel and i think i am missing
some info. I also tried sending my own url to the message i submit to
kannel. When a send to sms-service cgi i add these two parameters:
..dlr-url=$dlr_url_encodeddlr-mask=1+2

where $dlr_url_encoded = http://xxx.xxx.xxx.dlr.php?myId=YYYtype=%d

Message are sent successfully but i do not get the call back to the url i
defined above in order to process.

Thanks





On Fri, Oct 18, 2013 at 7:56 PM, Alvaro Cornejo cornejo.alv...@gmail.comwrote:

 Hi

 The table defined in kannel config is only for kannel usage. kannel
 stores dlr there only until message is delivered, then reccord is
 deleted. That is why it is normally empty.

 If you do want to store dlrs, you should add your own ulr to the
 message you submit to kannel. Then you do whatever you want with that
 info. Check user manual for dlr-url and related.

 Regards

 Alvaro

 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Fri, Oct 18, 2013 at 2:30 PM, Alejandro Mussi alemu...@gmail.com
 wrote:
  Hi,
 
  I am trying to save dlr on a persistant system in order to check messages
  that were successfully delivered or not,  but i am having problems to run
  dlr on mysql or using dlr-url. Here is my kannel.conf file
 
  group = core
  admin-port = 13000
  admin-password = xxx
  status-password = xxx
  admin-deny-ip = *.*.*.*
  admin-allow-ip = 127.0.0.1
  smsbox-port = 13001
  #wapbox-port = 13002
  box-deny-ip = *.*.*.*
  box-allow-ip = 127.0.0.1
  wdp-interface-name = *
  log-file = /var/log/kannel/bearerbox.log
  log-level = 0
 
  group = mysql-connection
  id = mydlr
  host = localhost
  username = xx
  password = xx
  database = xx
  max-connections = 1
 
  group = dlr-db
  id = mydlr
  table = dlr
  field-smsc = smsc
  field-timestamp = ts
  field-destination = destination
  field-source = source
  field-service = service
  field-url = url
  field-mask = mask
  field-status = status
  field-boxc-id = boxc
 
 
  Attach goes the dlr table structure.
 
  If I add on the core group dlr-storage = mysql, Kannnel does not start.
 
 
 
  #Using dlr-url
 
  I tried also using dlr-url on sms-service adding the following data:
 
  $url = Constant::$KANNEL_SMS_SENDER_URL .
 
 to=$to_numberfrom=$src_numberbinfo=$service_typetext=$text_encodeddlr-url=$dlr_url_encodeddlr-mask=1+2;
 
  Kannel receives and process the message but i could not get the response
  from kannel to the url i especified.
 
  I tried to add also in kannel.conf dlr-url and dlr-mas (see below) but
  kannel does not start when i add those two lines.
 
 
  group = sms-service
  keyword = default
  get-url =
  http://xxx.xxx.file.php?binfo=%Bkeyword=%kfrom=%pto=%Ptext=%a;
  accept-x-kannel-headers = true
  max-messages = 3
  concatenation = true
  catch-all = true
  omit-empty = true
  dlr-url = http://xxx.xxx.dlr.php?type=%d;
  dlr-mask = 1+2
 
 
 
  Any help with this issue??
 
  Thanks
 
  --
  -
  Alejandro Mussi Campos Cervera




-- 
-
Alejandro Mussi Campos Cervera


Re: dlr

2013-10-21 Thread Alvaro Cornejo
Hi Alejandro

dlr-mask indicates which reports you want to receive. According to
that, you add the values for each status and that is what you use.

If you want status 1 and 2 use a value of 3 (1+2). Else try starting
with 31. It does ask for all available status, included intermediates.

Manual provides values for other statuses.

Also note that eventhough you request all statuses; its the operator
who decides which dlrs is willing to send you if any :(

Hope helps

Alvaro
|-|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
  Visitenos en www.perusms.com


On Mon, Oct 21, 2013 at 8:35 AM, Alejandro Mussi alemu...@gmail.com wrote:
 Hi Alvaro,

 Thanks for the response. I am new using kannel and i think i am missing some
 info. I also tried sending my own url to the message i submit to kannel.
 When a send to sms-service cgi i add these two parameters:
 ..dlr-url=$dlr_url_encodeddlr-mask=1+2

 where $dlr_url_encoded = http://xxx.xxx.xxx.dlr.php?myId=YYYtype=%d

 Message are sent successfully but i do not get the call back to the url i
 defined above in order to process.

 Thanks





 On Fri, Oct 18, 2013 at 7:56 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 Hi

 The table defined in kannel config is only for kannel usage. kannel
 stores dlr there only until message is delivered, then reccord is
 deleted. That is why it is normally empty.

 If you do want to store dlrs, you should add your own ulr to the
 message you submit to kannel. Then you do whatever you want with that
 info. Check user manual for dlr-url and related.

 Regards

 Alvaro

 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Fri, Oct 18, 2013 at 2:30 PM, Alejandro Mussi alemu...@gmail.com
 wrote:
  Hi,
 
  I am trying to save dlr on a persistant system in order to check
  messages
  that were successfully delivered or not,  but i am having problems to
  run
  dlr on mysql or using dlr-url. Here is my kannel.conf file
 
  group = core
  admin-port = 13000
  admin-password = xxx
  status-password = xxx
  admin-deny-ip = *.*.*.*
  admin-allow-ip = 127.0.0.1
  smsbox-port = 13001
  #wapbox-port = 13002
  box-deny-ip = *.*.*.*
  box-allow-ip = 127.0.0.1
  wdp-interface-name = *
  log-file = /var/log/kannel/bearerbox.log
  log-level = 0
 
  group = mysql-connection
  id = mydlr
  host = localhost
  username = xx
  password = xx
  database = xx
  max-connections = 1
 
  group = dlr-db
  id = mydlr
  table = dlr
  field-smsc = smsc
  field-timestamp = ts
  field-destination = destination
  field-source = source
  field-service = service
  field-url = url
  field-mask = mask
  field-status = status
  field-boxc-id = boxc
 
 
  Attach goes the dlr table structure.
 
  If I add on the core group dlr-storage = mysql, Kannnel does not start.
 
 
 
  #Using dlr-url
 
  I tried also using dlr-url on sms-service adding the following data:
 
  $url = Constant::$KANNEL_SMS_SENDER_URL .
 
  to=$to_numberfrom=$src_numberbinfo=$service_typetext=$text_encodeddlr-url=$dlr_url_encodeddlr-mask=1+2;
 
  Kannel receives and process the message but i could not get the response
  from kannel to the url i especified.
 
  I tried to add also in kannel.conf dlr-url and dlr-mas (see below) but
  kannel does not start when i add those two lines.
 
 
  group = sms-service
  keyword = default
  get-url =
  http://xxx.xxx.file.php?binfo=%Bkeyword=%kfrom=%pto=%Ptext=%a;
  accept-x-kannel-headers = true
  max-messages = 3
  concatenation = true
  catch-all = true
  omit-empty = true
  dlr-url = http://xxx.xxx.dlr.php?type=%d;
  dlr-mask = 1+2
 
 
 
  Any help with this issue??
 
  Thanks
 
  --
  -
  Alejandro Mussi Campos Cervera




 --
 -
 Alejandro Mussi Campos Cervera



Re: DLR issue

2013-08-14 Thread dorin

Hello all!
are you sending to the same phone number? - NO



Give both sqlbox and your smsbox a different smsbox-id.

Then, when inserting a message, set the boxc_id field to your smsbox-id.

the config there is as you told.

doesn't matter if I send at two different numbers, or the numbers are 
the same, the results are:
Sometimes I receive only the status 8(SMSC Submit) for both and nothing 
else.
But sometimes I can receive statuses: 1(delivery success) and for the 
second 8(SMSC Submit)- herethe problem was in mysql dlr 
http://134.0.113.138:8080/sql.php?db=sendertoken=2447e923ad4c5e0f7b36bed850a573e3table=oempro_kannel_dlrpos=0 
table, one column had PRIMARY KEY.



I found this ERROR in the smpp-smsc.log
2013-08-14 13:01:13 [27442] [6] WARNING: DLR[mysql]: DLR from 
SMSCcrafttelecom for DST79269290*** not found.
2013-08-14 13:01:13 [27442] [6] ERROR: SMPP[crafttelecom]: got DLR but 
could not find message or was not interested in it id385950049 
dst79269290***, type1




On 14.08.2013 0:12, Rene Kluwen wrote:


It could be because Kannel is load balancing between your boxes.

Give both sqlbox and your smsbox a different smsbox-id.

Then, when inserting a message, set the boxc_id field to your smsbox-id.

== Rene

*From:*Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com]
*Sent:* dinsdag 13 augustus 2013 18:23
*To:* Rene Kluwen
*Cc:* dorin; users@kannel.org
*Subject:* Re: DLR issue

Also, are you sending to the same phone number? Many carriers have 
velocity check that would just ignore multiple messages to the same 
phone number if sent close together.


Regards,

Alex

On Tue, Aug 13, 2013 at 11:18 AM, Rene Kluwen rene.klu...@chimit.nl 
mailto:rene.klu...@chimit.nl wrote:


Check your sent_sms logs.
Do you get DLR rows for each of the sent sms? And smsbox doesn't forward
them to your webserver?
Or do you _not_ get any dlr entries, not even in sent_sms?

== Rene


-Original Message-
From: users [mailto:users-boun...@kannel.org 
mailto:users-boun...@kannel.org] On Behalf Of dorin

Sent: dinsdag 13 augustus 2013 17:10
To: users@kannel.org mailto:users@kannel.org
Subject: DLR issue

Hello!
who can help me?
I configured: bearerbox-smsbox-sqlbox.
That works fine if I send one message via sqlbox.
But if I send more messages at once, I receive DLR status only for the 
last

sent message.
For example I write into send_sms table one sms - I recieve a good DLR
status.
If I write into send_sms table 10 sms (10 rows) - I recieve a good DLR 
only

for 10th.

Unfortunately my SMSC don't support submit_sm_multi.
At the moment I see only one solution: to send next SMS after previous
returned DRL, but this is not a deal.

I write a lot of posts but I can't get the solution of this problem.







Re: DLR issue

2013-08-14 Thread dorin

Thanks all!
The problem is solved!
My solution was:
msg-id-type = 0x00

On 14.08.2013 12:19, dorin wrote:

Hello all!
are you sending to the same phone number? - NO



Give both sqlbox and your smsbox a different smsbox-id.

Then, when inserting a message, set the boxc_id field to your smsbox-id.

the config there is as you told.

doesn't matter if I send at two different numbers, or the numbers are 
the same, the results are:
Sometimes I receive only the status 8(SMSC Submit) for both and 
nothing else.
But sometimes I can receive statuses: 1(delivery success) and for the 
second 8(SMSC Submit)- herethe problem was in mysql dlr 
http://134.0.113.138:8080/sql.php?db=sendertoken=2447e923ad4c5e0f7b36bed850a573e3table=oempro_kannel_dlrpos=0 
table, one column had PRIMARY KEY.



I found this ERROR in the smpp-smsc.log
2013-08-14 13:01:13 [27442] [6] WARNING: DLR[mysql]: DLR from 
SMSCcrafttelecom for DST79269290*** not found.
2013-08-14 13:01:13 [27442] [6] ERROR: SMPP[crafttelecom]: got DLR but 
could not find message or was not interested in it id385950049 
dst79269290***, type1




On 14.08.2013 0:12, Rene Kluwen wrote:


It could be because Kannel is load balancing between your boxes.

Give both sqlbox and your smsbox a different smsbox-id.

Then, when inserting a message, set the boxc_id field to your smsbox-id.

== Rene

*From:*Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com]
*Sent:* dinsdag 13 augustus 2013 18:23
*To:* Rene Kluwen
*Cc:* dorin; users@kannel.org
*Subject:* Re: DLR issue

Also, are you sending to the same phone number? Many carriers have 
velocity check that would just ignore multiple messages to the same 
phone number if sent close together.


Regards,

Alex

On Tue, Aug 13, 2013 at 11:18 AM, Rene Kluwen rene.klu...@chimit.nl 
mailto:rene.klu...@chimit.nl wrote:


Check your sent_sms logs.
Do you get DLR rows for each of the sent sms? And smsbox doesn't forward
them to your webserver?
Or do you _not_ get any dlr entries, not even in sent_sms?

== Rene


-Original Message-
From: users [mailto:users-boun...@kannel.org 
mailto:users-boun...@kannel.org] On Behalf Of dorin

Sent: dinsdag 13 augustus 2013 17:10
To: users@kannel.org mailto:users@kannel.org
Subject: DLR issue

Hello!
who can help me?
I configured: bearerbox-smsbox-sqlbox.
That works fine if I send one message via sqlbox.
But if I send more messages at once, I receive DLR status only for 
the last

sent message.
For example I write into send_sms table one sms - I recieve a good DLR
status.
If I write into send_sms table 10 sms (10 rows) - I recieve a good 
DLR only

for 10th.

Unfortunately my SMSC don't support submit_sm_multi.
At the moment I see only one solution: to send next SMS after previous
returned DRL, but this is not a deal.

I write a lot of posts but I can't get the solution of this problem.









Re: DLR issue

2013-08-13 Thread Alejandro Guerrieri
Also, are you sending to the same phone number? Many carriers have velocity
check that would just ignore multiple messages to the same phone number if
sent close together.

Regards,

Alex


On Tue, Aug 13, 2013 at 11:18 AM, Rene Kluwen rene.klu...@chimit.nl wrote:

 Check your sent_sms logs.
 Do you get DLR rows for each of the sent sms? And smsbox doesn't forward
 them to your webserver?
 Or do you _not_ get any dlr entries, not even in sent_sms?

 == Rene

 -Original Message-
 From: users [mailto:users-boun...@kannel.org] On Behalf Of dorin
 Sent: dinsdag 13 augustus 2013 17:10
 To: users@kannel.org
 Subject: DLR issue

 Hello!
 who can help me?
 I configured: bearerbox-smsbox-sqlbox.
 That works fine if I send one message via sqlbox.
 But if I send more messages at once, I receive DLR status only for the last
 sent message.
 For example I write into send_sms table one sms - I recieve a good DLR
 status.
 If I write into send_sms table 10 sms (10 rows) - I recieve a good DLR only
 for 10th.

 Unfortunately my SMSC don't support submit_sm_multi.
 At the moment I see only one solution: to send next SMS after previous
 returned DRL, but this is not a deal.

 I write a lot of posts but I can't get the solution of this problem.







  1   2   3   4   5   6   7   >