Well it seems that you are inserting the SMS correctly but it's status isn't
being updated ? kannel should call the URL to update the message status I
suggest you start there, maybe call it manually and see if it works or
not...

 

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Rio Yotto
Sent: Tuesday, November 20, 2012 10:31 AM
To: 'Willy Mularto'
Cc: users@kannel.org
Subject: RE: Step By Step DLR Kannel ?

 

the value of dlr-mask=31

 

thx

 

From: Willy Mularto [mailto:sangpr...@gmail.com] 
Sent: Tuesday, November 20, 2012 3:26 PM
To: Rio Yotto
Cc: users@kannel.org
Subject: Re: Step By Step DLR Kannel ?

 

What is your dlr-mask value? Please check user guide to set the proper
value.

 

 

 

On Nov 20, 2012, at 2:22 PM, Rio Yotto wrote:

 

Dear bro and sis,

 

i have already configure delivery report, but i'm still stuck with the
status, because i only receive the 8 status.

not 1(delivery success). How to receive the next status (1) ?

 

need some help from kannel experts,

 

thanks in advance and warm regards,

Rio Yotto - r...@rioyotto.info

 

below my config :

 

smsbox.conf :

group = sendsms-user

dlr-url = "http://xxx.xxx.xxx.xxx/sms/
dlr.php?smsc=%A&ts=%T&destination=%p&source=%P&message_id=%F&service=%n&url=
%R&mask=%d&isisms=%a"

username = xxxxx

password = xxxxx

forced-smsc = xxxxx

default-sender = 1234

max-messages = 20

concatenation = true

 

URL Hit :

  $url_path="http://xxx.xxx.xxx.xxx/sms
/dlr.php?smsc=%i&dlr=%d&answer=%A&destination=%p&source=%P&ts=%T&smsID=12123
&charset=%C&message_id=%I&status=%d";

 

   $hitpull = "http://xxx.xxx.xxx.xxx:13013/cgi-bin/sendsms?username=xxxx
<http://xxx.xxx.xxx.xxx:13013/cgi-bin/sendsms?username=xxxx&smsc=xxxx&passwo
rd=xxx&from=$dest&to=$src&text=>
&smsc=xxxx&password=xxx&from=$dest&to=$src&text=".urlencode($reply)."&dlr-ma
sk=31&dlr-url=".urlencode($url_path)."&meta-data=".urlencode("?smpp?shortnam
e=$shortname&tx_id=$tx_id");

 

DLR.PHP :

<?

include("inc/config.inc.php");

 

$smsc = $_GET['smsc'];

$ts = $_GET['ts'];

$destination = $_GET['destination'];

$source = $_GET['source'];

$service = $_GET['service'];

$url = $_GET['url'];

$mask = $_GET['mask'];

$status = $_GET['status'];

$boxc = $_GET['boxc'];

$message_id = $_GET['message_id'];

$isisms = $_GET['isisms'];

 

$sql="insert into dlr
(smsc,ts,destination,source,message_id,isisms,service,url,mask,status,boxc)
values
('$smsc','$ts','$destination','$source','$message_id','$isisms','$service','
$url','$mask','$status','$boxc')";

mysql_query($sql);

 

$query ="UPDATE dlr SET status='$status' WHERE message_id='$message_id'";

$result = mysql_query($query) or die("Query failed : " . mysql_error());

 

?>

 

 

 

Willy Mularto

F300HD+MR18DE (NLC1725)

 

 

 

 

 

 

 

 

Reply via email to