Hi,

Yes I finaly found a solution. In fact I've followed the advice of Rene, I 
inspected the source code to get the url variables to give to the kannel and 
I'm sending DLR on the following URL throught my php script :

$query = 
'http://<ip_of_my_kannel>:13014/sms?username=*****&password=*****&dlr-mask='.$dlr_status.'&dlr-mid='.$smsid.'&to='.str_replace('+','',$_REQUEST['phone']);


You have to respect the dlr_status code from kannel (check user guide for 
codes) and provide a good msg id in the dlr-mid.
I've add problems with id provided by kannel, I don't know why but msgid given 
by kannel when kannel submit the sms to my script are truncated.
For exemple kannel internel msgid is "45klmn-jsdlk59-jdsklfj" and when kannel 
submit message on the http link it give the following id : "45klmn"
So I've add the following line in my kannel.conf file on smsc = http section to 
say to kannel to keep my own msgid instead of kannel msgid :

generic-foreign-id-regex = "<id>(.+)</id>"


Also if you want to re route this dlr to another box (openssmppbox in my case) 
don't forget to put the following line in your kannel.conf :

reroute-dlr = true


Sorry for my poor english, if you need any more help do not hesitate.

Regards,

Bertrand



________________________________
De : "Peter@locotel" <p...@locotel.gr>
À : Bertrand Dupont <bertrand.dupon...@yahoo.fr>
Envoyé le : Mardi 20 Septembre 2011 11h55
Objet : Re: Re : Re : How to inject DLR in kannel ?


Hi Bertrand,
Did you by any chance found a way to do that injection of DLR back into kannel?
(I followed that problem in kannel users' list).
I will appreciate your help here.
Best regards,




________________________________
 


Dr. Peter Kontopoulos
CTO

LOCOTEL SA
2, Parnassou St.
10561 Athens, GREECE
T:+30 210 3258 350 F:+30 210 3258 359
www.locotel.gr  &  www.locosms.gr 
________________________________
 


Email Disclaimer
The information in this email is confidential and is intended solely for the 
addressee(s). If you have received this transmission in error, and you are not 
an intended recipient, be aware that any disclosure, copying, distribution or 
use of this transmission or its contents is prohibited. Furthermore, you are 
kindly requested to send us back the original message at the address 
portmas...@locotel.gr, and delete the message from your system immediately. 
Internet communications are not secure and therefore LOCOTEL SA does not accept 
legal responsibility for the contents of this message and for any damage 
whatsoever that is caused by viruses being passed. Any views or opinions 
presented are solely those of the author and do not necessarily represent those 
of LOCOTEL SA. 
Thank you,
LOCOTEL SA
Think Before you Print   

Στις 29-08-2011, ημέρα Δευ, και ώρα 15:16 +0100, ο/η Bertrand Dupont έγραψε: 
sorry I made a mistake in my previous mail : I mean send back a "DLR" and not 
an "URL" 

>

>________________________________
> 
>De :Bertrand Dupont <bertrand.dupon...@yahoo.fr>
>À :Rene Kluwen <rene.klu...@chimit.nl>; users@kannel.org
>Envoyé le :Lun 29 août 2011, 18h 07min 22s
>Objet :Re : How to inject DLR in kannel ?
>
>
I and thank you for your answer. 

>
>
I've add the port = 13015 in my config file but I can't find in kannel 
documentation what the url should look like. 
How can I send back a DLR for a specific message to my kannel ? does someone 
know what are the get variables ? 

>
>
http://my_kannelbox_ip:13015/ ????? 

>
>
Rergards, 
Bertrand 

>

>________________________________
> 
>De :Rene Kluwen <rene.klu...@chimit.nl>
>À :Bertrand Dupont <bertrand.dupon...@yahoo.fr>; users@kannel.org
>Envoyé le :Jeu 25 août 2011, 20h 48min 18s
>Objet :RE: How to inject DLR in kannel ?
>
>
In your group = smsc (being your http smsc) set:
>
> 
>
>port = 13015 (or any other port)
>
> 
>
>Then, this port will listen for dlr’s.
>
>I am not an expert in this matter. But if you look in the sources, you should 
>be able to figure it out.
>
> 
>
>== Rene
>
> 
>
> 
>
>
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Bertrand Dupont
>Sent: Thursday, 25 August, 2011 14:40
>To: users@kannel.org
>Subject: How to inject DLR in kannel ?
>
>
>
 
>
>
Hi all,
>
>
>
 
>
>
>
As I need an smpp server to accept incomming connection I've recently compiled 
and installed the addons/opensmppbox with success, this kannel send the sms to 
a third party application that is performing control, billing and re route sms 
to the correct SMSC (throught another kannel) but I've the following problems :
>
>
>
- how my third party application can sendback DLR to the kannel with 
opensmppbox ?
>
>
>
 
>
>
>
My architecture is like this :
>
>
>
 
>
>
>
SMPP Client --> Kannel with Opensmppbox configured with an SMSC HTTP link on 
"myscript.php" --> my own application for billing, re route etc.... --> another 
kannel with smpp and at connection
>
>
>
 
>
>
>
Regards,
>
>
>
Bertrand.
>
>
>

>

>


________________________________
 

Dr. Peter Kontopoulos
CTO

LOCOTEL SA
2, Parnassou St.
10561 Athens, GREECE
T:+30 210 3258 350 F:+30 210 3258 359
www.locotel.gr  &  www.locosms.gr 
________________________________
 

Email Disclaimer
The information in this email is confidential and is intended solely for the 
addressee(s). If you have received this transmission in error, and you are not 
an intended recipient, be aware that any disclosure, copying, distribution or 
use of this transmission or its contents is prohibited. Furthermore, you are 
kindly requested to send us back the original message at the address 
portmas...@locotel.gr, and delete the message from your system immediately. 
Internet communications are not secure and therefore LOCOTEL SA does not accept 
legal responsibility for the contents of this message and for any damage 
whatsoever that is caused by viruses being passed. Any views or opinions 
presented are solely those of the author and do not necessarily represent those 
of LOCOTEL SA. 
Thank you,
LOCOTEL SA
Think Before you Print   

Reply via email to