from the code yes dlr-url is assigned to:
$http_path['base'] .
"/plugin/gateway/kannel/dlr.php?type=%d&slid=$smslog_id&uid=$uid"

that should be
/var/www/playsms/plugin/gateway/kannel/dlr.php?type=%d&slid=$smslog_id&uid=$uid"

I don't know how to echo this variable on the screen as this function is
called from another that is called from another...
I will try to paste this in file ? if I can not display it on the screen.

Can you just explain me the way it works when we ask for a DLR? (call-flow?)

Regards,

Emmanuel


2009/10/20 Nikos Balkanas <n...@amdtelecom.net>

>  Hi,
>
> No, it is not a question of configuration. You don't need to url-encode the
> rest of your request, just your dlr-url. To help you, you need to post the
> output of dlr_url. The str_replace looks mighty suspicious. Are you trying
> to use:
>
> dlr_url = http:/www.base.com/plugin....
>
> ??
>
> BR,
> Nikos
>
>
> ----- Original Message -----
> *From:* Emmanuel CHANSON <emmanuelchan...@gmail.com>
> *To:* users <users@kannel.org>
> *Sent:* Tuesday, October 20, 2009 2:24 PM
> *Subject:* Kannel, PlaySMS and dlr-url
>
> Hello guys,
>
> Kannel installed and running version 1.4.2
> PlaySMS 0.9.4 installed and almost running with Kannel (I have some issue)
> And one is the following:
>
> I can not send SMS using PlaySMS web portal if the URL defined in the code
> is the following:
> (fn.php from PlaySMS version 0.8.4):
>
>     $dlr_url = $http_path['base'] .
> "/plugin/gateway/kannel/dlr.php?type=%d&slid=$smslog_id&uid=$uid";
>     $dlr_url = str_replace('//', '/', $dlr_url);
> ...
> *    $URL = "http://localhost:13013/var/www/kannel/sendsms?username=
> ".urlencode($kannel_param['username'])."&password=".urlencode($kannel_param['password']);
>     $URL .=
> "&from=".urlencode($sms_from)."&to=".urlencode($sms_to)."&text=".urlencode($sms_msg);
>     $URL .= "&dlr-mask=31&dlr-url=".urlencode($dlr_url);
>     $URL .= "&mclass=".$msg_type;*
>
> I got this on the smsbox.log file:
>
> *2009-10-20 22:08:12 [14601] [2] DEBUG: HTTP: Creating HTTPClient for
> `127.0.0.1'.
> 2009-10-20 22:08:12 [14601] [2] DEBUG: HTTP: Created HTTPClient area
> 0x987e2d0.
> 2009-10-20 22:08:12 [14601] [3] INFO: smsbox: Got HTTP request
> </var/www/kannel/sendsms> from <127.0.0.1>
> 2009-10-20 22:08:12 [14601] [3] INFO: sendsms used by <playsms>
> 2009-10-20 22:08:12 [14601] [3] INFO: sendsms sender:<playsms:+687850850>
> (127.0.0.1) to:<+687850850> msg:<test - playSMS>
> 2009-10-20 22:08:12 [14601] [3] DEBUG: Status: 400 Answer: <DLR-URL field
> misformed, rejected>
> 2009-10-20 22:08:12 [14601] [3] DEBUG: HTTP: Destroying HTTPClient area
> 0x987e2d0.
> 2009-10-20 22:08:12 [14601] [3] DEBUG: HTTP: Destroying HTTPClient for
> `127.0.0.1'.*
>
> If I comment the 3rd line about DLR it works, my SMS is sent.
>
> Do I have to configure something in Kannel.conf file about DLR ?
> Does anyone used PlaySMS v0.9.4 with kannel ?
>
> PlaySMS seems to be a great SMS web portal but there is still some little
> bugs and it is annoying...
>
> Regards,
>
> --
> Emmanuel
>
>


-- 
Emmanuel

CHANSON Emmanuel
Mobile Nouvelle-Calédonie: +687 850.850
Mobile France: +33 (0) 6.68.03.89.56
@email : emmanuelchan...@gmail.com

Reply via email to