Hi all,

I am using Kannel 1.4.3 and testing SMPP connections, SMS delivery report etc with Selenium SMPP Sim (http://www.seleniumsoftware.com/). I use MySQL for DLR storage type. Please see my configuration below for reference.

If I do not declare 'address-range' then DLR report of outgoing SMS from Kannel works well with dlr-mask set to 3 (1 +2 = delivery of the SMS to mobile is YES or NO). In this case, Kannel writes a record for each outgoing SMS in 'dlr' table. When the SMS is delivered, the record is deleted and my PHP script dlr.php is invoked.

If I declare address-range = 1xxx, for example, then DLR report of outgoing SMS from Kannel does not work (dlr-mask is set to 3): Kannel writes a record for each outgoing SMS in the 'dlr' table; but when the SMS is delived, the record is NOT deleted and my PHP script 'dlr.php' is NOT invoked either.

Today I am testing Kannel with a real SMSC. The SMSC requires declaration of address-range. Kannel delivery report is not working :( I also set dlr-mask to 3.

Please help me making the delivery report works. Thanks a lot.

Chau

-------


###############################################

group = core
admin-port = 25100
smsbox-port = 25101
admin-password = xyz
status-password = abc
store-type = mysql
store-location = xxx.queue
access-log-time = local
dlr-storage = mysql
log-level = 1
log-file = /home/chau/xxx/tmp/xxxbearer.log
access-log = /home/chau/xxx/tmp/xxxbeareraccess.log

################################################

group = smsc
smsc = smpp
smsc-id = xx
throughput = 40
host = 1.2.3.4
port = 3000
smsc-username = smppclient
smsc-password = password
address-range = 1x01
system-type = VMA
transceiver-mode = true

################################################

group = smsbox
bearerbox-host = 127.0.0.1
bearerbox-port = 25101
sendsms-port = 25102
sendsms-url = /sendsms
sendota-url = /sendota
sendsms-chars = "0123456789 +-"

log-level = 1
log-file = /home/chau/xxx/tmp/xxxsms.log
access-log = /home/chau/xxx/tmp/xxxsmsaccess.log

################################################

group = sendsms-user
username = usr
password = passwd
name = USERNAME

################################################

group = sms-service
keyword = news
name = "Return 3 latest news headlines to users"
get-url = "http://localhost/~chau/xxx/smsnews.php?smstext=%r&sender=%p&recipient=%P&timestamp=%t&service=%k&bill=%b&msgid=%F&err=0";
omit-empty = true
max-messages = 0

################################################

group = sms-service
keyword = default
text = "Wrong service"
get-url = "http://localhost/~chau/xxx/logsms.php?smstext=%r&sender=%p&recipient=%P&timestamp=%t&service=%k&bill=%b&msgid=%F&err=1";
max-messages = 1

########################################################################

group = mysql-connection
id = mydlr
host = localhost
username = xxx
password = yyy
database = xxx
# max count of connections that will be opened for dbpool
# default is 1
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


An example of a URL for sending SMS in my system:

http://localhost:25102/sendsms?username=usr&password=passwd&charset=UCS&coding=1&from=6008&to=84903405040&dlr-mask=3&dlr-url=http://localhost/~chau/xxx/dlr.php?sender=%p&recipient=%P&timestamp=%t&dlr=%d&bill=%A&&msgid=%F&outgoid=10&text=Test+Send+SMS+with+DLR+report

My dlr.php is just save parameters return from Kannel to a table in my MySQL database.



Reply via email to