Hi there,
Just a quick word on the subject. Getting an correct DLR really depends on how the SMSC itself is configured. I work here with several providers and there are two of them which return only one DLR with the value 8 (submitted to SMSC) regardless of actual situation. This can explain why you received 1 (delivered to phone) instead of 4 (queued to SMSC) when your phone was off. Unfortunately, there is nothing you can do about it, but test every possible situation at your end and record it for that specific provider.

Have a nice day.
Mihai

----- Original Message ----- From: "Peter Lum" <[EMAIL PROTECTED]>
To: "'seik'" <[EMAIL PROTECTED]>
Cc: "'Kannel Users'" <[email protected]>
Sent: Friday, July 06, 2007 5:53 AM
Subject: RE: Re[2]: Relation DLR and MT


Hi

Thanks for the quick response.

Sorry, I actually got a '1' for delivered to phone even when my phone is
switched off..
It was not a '0', it was a '1'
I used  dlr-mask=19 and get '1'

Also, I kept getting gargage in the actual SMS itself.
I need to send both English and Chinese.

Is this the right way to send?

$url = "/cgi-bin/sendsms?username=" . $CONFIG_KANNEL_USER_NAME
         . "&password=" . $CONFIG_KANNEL_PASSWORD
         . "&charset=UCS-2&coding=2"
         . "&to=$in_phoneNumber"
         . "&text=" . urlencode( mysql_iconv('utf-8', 'ucs-2', $in_msg) )
   . "&dlr-mask=19";

Thanks!
Peter

-----Original Message-----
From: seik [mailto:[EMAIL PROTECTED]
Sent: Friday, July 06, 2007 9:59 AM
To: Peter Lum
Cc: 'Kannel Users'
Subject: Re[2]: Relation DLR and MT

Hi,
1. I dont need the udh so i have never used that I mean I have it already
because I initiate the MT traffic, right ?:) 2. i paste direct from
dlr-mask: number (bit mask)        Optional.
Request for delivery reports with the state of the sent message.
The value is a bit mask composed of:
1: Delivered to phone,
2: Non-Delivered to Phone,
4: Queued on SMSC,
8: Delivered to SMSC,
16: Non-Delivered to SMSC.
Must set dlr-url on sendsms-user group or use the dlr-url CGI variable.
so, 1+2+4+8+16=31
i.e. i use dlr-mask=31 and i get from the SMSC two statuses in the usual
case:
ACK => 8
DELIVRD => 1

i cannot explain 0 value for status, as far as i know , kannel has only the
above mentioned status codes ...
but i could be wrong :/

what dlr-url do you use when you get 0 status ?

cheers

-----Original Message-----
From: Peter Lum [EMAIL PROTECTED]
Sent: 06 Юли 2007 г.
To: seik
Subject:Relation DLR and MT

Hi

Got a couple of questions:

(a) Are we able to retrieve the udh as well by adding udh=%u
(b) Is the DLR up to the hand set level? When I send MT, I receive a '0'
accepted for delivery and DLR says success.
But I am not sure the handset really get the SMS.

I tested with my handset swiched off, and the DLR also says success???

Regards,
Peter

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of seik
Sent: Thursday, July 05, 2007 7:34 PM
To: Kannel Users
Subject: Re: Relation DLR and MT

use external dlrID
example for the DLR_URL
"http://127.0.0.1/dlr.pgsql.php?smscID=%i&dlr=%d&answer=%A&to=%p&from=
%P&ts=
%T&smsID=8e08a94122e147571029f30caf046cef&charset=%C&kannel_id=%I"



-----Original Message-----
From: Fajar [EMAIL PROTECTED]
Sent: 05 ??? 2007 ?.
To: seik
Subject:Relation DLR and MT

Hello all,

After using for while, i've setup
bearerbox<->sqlboxstandalone<->smsbox

I'm using the DLR function.., but I'm confuse how to related the DLR
with which MT. The MT will be logged in a table in database before it
get submit_resp. After kannel submit the message the kannel will
insert in another part of table in database with it's submit_resp
that kannel get from smsc. And it will get updated once the SMSC send
the DLR. Eventhough in DLR there is some part that include text part,
but it's
not complete. And then, how do I know which DLR report for a MT ?

Fajar










Reply via email to