you need to get more familiar with the MANUAL /var/www/kannel/sendsms is the full path of something i bet you dont have at your filesystem its not the URL ... the url of the send-sms interface is virtual - created by the kannel http server
http://localhost:13013/cgi-bin/sendsms_or_whatever_if_you_have_renamed_it_in_the_config?user... Emmanuel CHANSON wrote: > 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
