Hi,
I had the same issue. I resolved this issue by using a unique id for
each sending sms. please follow the given URL (small tutorial on
dlr+php+mysql). it worked well for me. if u need any help let me know.
Thanks,
Tharanga
Dr. Peter Kontopoulos wrote:
Dear Tharanga, Dear Alejandro,
thank you for your prompt answers.In the mean time I have conducted some tests
in order to specify the problem more accurately.
Here come the info on these tests.
Let me layout the scenario of the test. Two switched off mobiles.
Send message to mobile 111 then send message to mobile 222.
Switch on mobile 222. The return of "delivered" status is done corectly on the
access side as you can see from the logs below,
but kannel sends back to my application delivery status of the earlier message
send to mobile 222. It appears that kannel cannot associate the ids, and
allows the status to go to the earliest message.
Special mention to two incidents.
TS in mysql dlr db is always the same from this provider.
By changing msg-id-type to 0,1,2,3 nothing happens.All things remain the same.
In case of a bulk delivery a lot of dlr remain hanging in the db even after
expiry.
/var/log/kannel/CCCCCC.log
2009-04-19 23:20:08 [9935] [6] INFO: DLR[mysql]: DLR not destroyed, still
waiting for other delivery report
2009-04-19 23:20:33 [9935] [6] INFO: DLR[mysql]: DLR not destroyed, still
waiting for other delivery report
/var/log/kannel/access.log
2009-04-19 23:20:05 send-SMS request added - sender:xxxyyyzzz:KSE 127.0.0.1
target:306944000111 request: 'ABEZHIKMNOPTYX-ABEZHIKMNOPTYX'
2009-04-19 23:20:05 Sent SMS [SMSC:CCCCCC] [SVC:xxxyyyzzz] [ACT:] [BINF:]
[from:KSE] [to:306944000111] [flags:1:0:-1:-1:31] [msg:49:ABEZHIKMNOPTYX-
ABEZHIKMNOPTYX] [udh:0:]
2009-04-19 23:20:05 DLR SMS [SMSC:CCCCCC] [SVC:xxxyyyzzz] [ACT:] [BINF:]
[from:KSE] [to:306944000111] [flags:-1:-1:-1:-1:8] [msg:4:ACK/] [udh:0:]
2009-04-19 23:20:08 DLR SMS [SMSC:CCCCCC] [SVC:xxxyyyzzz] [ACT:] [BINF:]
[from:KSE] [to:306944000111] [flags:-1:-1:-1:-1:4]
[msg:132:id:583501240172396402+306944000111 sub:001 dlvrd:000 submit
date:0904192219 done date:0904192219 stat:BUFFERD err:001b text:ABEZH]
[udh:0:]
2009-04-19 23:20:29 send-SMS request added - sender:xxxyyyzzz:KSE 127.0.0.1
target:306944000222 request: 'ABEZHIKMNOPTYX-ABEZHIKMNOPTYX'
2009-04-19 23:20:29 Sent SMS [SMSC:CCCCCC] [SVC:xxxyyyzzz] [ACT:] [BINF:]
[from:KSE] [to:306944000222] [flags:1:0:-1:-1:31] [msg:49:ABEZHIKMNOPTYX-
ABEZHIKMNOPTYX] [udh:0:]
2009-04-19 23:20:29 DLR SMS [SMSC:CCCCCC] [SVC:xxxyyyzzz] [ACT:] [BINF:]
[from:KSE] [to:306944000222] [flags:-1:-1:-1:-1:8] [msg:4:ACK/] [udh:0:]
2009-04-19 23:20:33 DLR SMS [SMSC:CCCCCC] [SVC:xxxyyyzzz] [ACT:] [BINF:]
[from:KSE] [to:306944000111] [flags:-1:-1:-1:-1:4]
[msg:132:id:583501240172420718+306944000222 sub:001 dlvrd:000 submit
date:0904192220 done date:0904192220 stat:BUFFERD err:001b text:ABEZH]
[udh:0:]
2009-04-19 23:23:24 DLR SMS [SMSC:CCCCCC] [SVC:xxxyyyzzz] [ACT:] [BINF:]
[from:KSE] [to:306944000111] [flags:-1:-1:-1:-1:1]
[msg:132:id:583501240172420718+306944000222 sub:001 dlvrd:001 submit
date:0904192220 done date:0904192223 stat:DELIVRD err:0000 text:ABEZH]
[udh:0:]
/var/log/kannel/smsbox.log
2009-04-19 23:20:05 [9954] [3] INFO: sendsms used by <xxxyyyzzz>
2009-04-19 23:20:05 [9954] [3] INFO: sendsms sender:<xxxyyyzzz:KSE>
(127.0.0.1) to:<306944000111> msg:<ABEZHIKMNOPTYX-ABEZHIKMNOPTYX>
2009-04-19 23:20:05 [9954] [4] INFO: Starting delivery report <xxxyyyzzz> from
<KSE>
2009-04-19 23:20:08 [9954] [4] INFO: Starting delivery report <xxxyyyzzz> from
<KSE>
2009-04-19 23:20:29 [9954] [3] INFO: smsbox: Got HTTP request </cgi-
bin/sendsms> from <127.0.0.1>
2009-04-19 23:20:29 [9954] [3] INFO: sendsms used by <xxxyyyzzz>
2009-04-19 23:20:29 [9954] [3] INFO: sendsms sender:<xxxyyyzzz:KSE>
(127.0.0.1) to:<306944000222> msg:<ABEZHIKMNOPTYX-ABEZHIKMNOPTYX>
2009-04-19 23:20:29 [9954] [4] INFO: Starting delivery report <xxxyyyzzz> from
<KSE>
2009-04-19 23:20:33 [9954] [4] INFO: Starting delivery report <xxxyyyzzz> from
<KSE>
2009-04-19 23:23:24 [9954] [4] INFO: Starting delivery report <xxxyyyzzz> from
<KSE>
my-sql dlr database entry
smsc=CCCCCC
ts=4294967295
source=LOCOTEL
destination=306937211361
service=http://localhost/plugin/gateway/kannel/dlr.php?type=%d&slid=11837&uid=1
mask=31
status=0
boxc=
(nothing appears in boxc)
/etc/kannel/kannel.conf
# CORE SETUP
group = core
admin-port = 13000
admin-password = xxxyyyzzz
status-password = xxxyyyzzz
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
log-file = "/var/log/kannel/kannel.log"
log-level = 2
access-log = "/var/log/kannel/access.log"
smsbox-port = 13001
wapbox-port = 13002
store-file = "/var/log/kannel/kannel.store"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
dlr-storage = mysql
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
bearerbox-port = 13001
sendsms-port = 13013
sendsms-chars = "0123456789+"
log-file = "/var/log/kannel/smsbox.log"
log-level = 1
access-log = "/var/log/kannel/access.log"
# WAPBOX SETUP
group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"
#SMSC Fake
#group = smsc
#smsc-id = "Fake"
#smsc = fake
#host = localhost
#port = 13333
#connect-allow-ip =
#SMSC SMPP - CCCCCC
group = smsc
smsc-id = CCCCCC
smsc = smpp
host = "78.110.226.163"
port = 2775
transceiver-mode = 1
smsc-username = "xxxyyyzzz"
smsc-password = "xxxyyyzzz"
source-addr-ton = 0
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
system-type = "CMT"
msg-id-type = 0x01
enquire-link-interval = 10
reconnect-delay = 5
throughput = 34
validityperiod = 340
allowed-smsc-id = CCCCCC
log-file = "var/log/kannel/CCCCCC.log"
log-level = 1
# SEND-SMS USERS
group = sendsms-user
username = xxxyyyzzz
password = xxxyyyzzz
max-messages = 3
concatenation = 1
#user-deny-ip = ""
#user-allow-ip = ""
#default-smsc = CCCCCC
# DLR database
group = mysql-connection
id = mydlr
host = localhost
username = xxxyyyzzz
password = xxxyyyzzz
database = kannel
max-connections = 1
group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc
# SMS SERVICE 'Default'
# there should be default always
group = sms-service
keyword = default
max-messages = 0
#exec = /usr/local/bin/kannel_incoming %t %q %a
get-url = "http://localhost/plugin/gateway/kannel/geturl.php?t=%t&q=%q&a=%a"
accept-x-kannel-headers = true
On Monday 20 April 2009 04:20:35 Tharanga wrote:
Hi,
I have posted a small tutorial on this dlr notifications sometimes back
. Anyway iam sending that url as a reference. hope this helps
http://www.mail-archive.com/[email protected]/msg12859.html
Tharanga Abeyseela
Dr. Peter Kontopoulos wrote:
Dear kannel users,
I assume it must be very basic to you but I encounter a lot of problems
using smpp and kannel. My link to the smsc is operating and I am
receiving dlr's but these do not associate to the relevant message. I
changed msg-id-type to 0 or 1 or 2 but still get the same problem.
If I send a message to two switched off mobiles I get status "delivered"
to the first message send irrespective of which mobile I switch on
first. This shows that kannel has received the dlr and could not
comprehent or associate the dlr with the respective message.
I am using kannel 1.4.1 on ubuntu server 8.10. I can include the smpp
part of the configuration, but I prefer your educated answers first.
I will appreciate any help.
Best regards,
Peter