Users,
 
I will say this now as it will only become blindingly obvious through out this email: I'm very new to kannel, having worked with it for about a week! At present I have set up a service sending messages without a problem, but I'm experiencing problems related to delivery reports.
 
I'm currently using mysql support for storing delivery messages. I have attached my bearerbox debugging information as a reference, as I'm sure this might help. I have set up delivery reports by setting dlr-mask in the url that calls my sendsms service. This is set to 31 for all responses.
 
I have also added a dlr-url to my sendsms-user group. My dlr-url is being called no problem, however, the only reports I'm currently receiving are level 8 and 16. SMSC accepted and SMSC rejected respectively. As I'm sure you'll all understand this is of no use - I'm desperately after the delivered to handset reports. My SMSC assure me that they're sending these reportsbut kannel doesn't appear to be getting them. The SMSC Log details are below:
 
SMSC log:
 
Incoming to SMPP2 from your  kannel application

2004-10-12 13:52:12.000;;>>;SubmitReq:Sequence=256015,StatusReportReq=true,Destination=00447956583543,ProfileId=4210,Body=test my connection mblox,Class=1,BodyEncoding=text,Originator=61211,OriginatorType=3, ;;

2004-10-12 13:52:13.000;;<<;StatusInd:MsgReference=1096399801097589132762,Sequence=420640532854,At=1097589132854,Originator=00447956583543,Status=acked,Reason=3,Time=0, ;;

outgoing from SMPP2 to your Kannel application

2004-10-12 13:52:13.000;;<;cmd=deliver_sm,status=0x00000000 (No error),seq=5,source_addr=447956583543,dest_addr=,esm_class=0x04,short_message=id:646510892 sub:001 dlvrd:001 submit date:0410121352 done date:0410121352 stat:ACKED   err:003 text: , ;;

2004-10-12 13:52:24.000;;<<;StatusInd:MsgReference=1096399801097589132762,Sequence=420644723062,At=1097589143062,Originator=00447956583543,Status=delivered,Reason=4,Time=1097592742, ;;

2004-10-12 13:52:24.000;;<;cmd=deliver_sm,status=0x00000000 (No error),seq=6,source_addr=447956583543,dest_addr=,esm_class=0x04,short_message=id:646510892 sub:001 dlvrd:001 submit date:0410121452 done date:0410121352 stat:DELIVRD err:000 text: , ;;

Can someone help me?
 
I run two conf files for the one connections.
 
one for the bearerbox and another for the smsbox. Conf file content can be found after debugging.
 
2004-10-13 16:55:13 [22016] [6] DEBUG: SMPP[mblox-free]: Sending enquire link:
2004-10-13 16:55:13 [22016] [6] DEBUG: SMPP PDU 0x974d260 dump:
2004-10-13 16:55:13 [22016] [6] DEBUG:   type_name: enquire_link
2004-10-13 16:55:13 [22016] [6] DEBUG:   command_id: 21 = 0x00000015
2004-10-13 16:55:13 [22016] [6] DEBUG:   command_status: 0 = 0x00000000
2004-10-13 16:55:13 [22016] [6] DEBUG:   sequence_number: 5 = 0x00000005
2004-10-13 16:55:13 [22016] [6] DEBUG: SMPP PDU dump ends.
2004-10-13 16:55:13 [22016] [6] DEBUG: SMPP[mblox-free]: Got PDU:
2004-10-13 16:55:13 [22016] [6] DEBUG: SMPP PDU 0x974d260 dump:
2004-10-13 16:55:13 [22016] [6] DEBUG:   type_name: enquire_link_resp
2004-10-13 16:55:13 [22016] [6] DEBUG:   command_id: 2147483669 = 0x80000015
2004-10-13 16:55:13 [22016] [6] DEBUG:   command_status: 0 = 0x00000000
2004-10-13 16:55:13 [22016] [6] DEBUG:   sequence_number: 5 = 0x00000005
2004-10-13 16:55:13 [22016] [6] DEBUG: SMPP PDU dump ends.
2004-10-13 16:55:28 [22016] [9] DEBUG: boxc_receiver: sms received
2004-10-13 16:55:28 [22016] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2004-10-13 16:55:28 [22016] [6] DEBUG: SMPP[mblox-free]: Manually forced dest addr ton = 1, dest add npi = 1
2004-10-13 16:55:28 [22016] [6] DEBUG: SMPP[mblox-free]: Sending PDU:
2004-10-13 16:55:28 [22016] [6] DEBUG: SMPP PDU 0x974d318 dump:
2004-10-13 16:55:28 [22016] [6] DEBUG:   type_name: submit_sm
2004-10-13 16:55:28 [22016] [6] DEBUG:   command_id: 4 = 0x00000004
2004-10-13 16:55:28 [22016] [6] DEBUG:   command_status: 0 = 0x00000000
2004-10-13 16:55:28 [22016] [6] DEBUG:   sequence_number: 6 = 0x00000006
2004-10-13 16:55:28 [22016] [6] DEBUG:   service_type: "4210"
2004-10-13 16:55:28 [22016] [6] DEBUG:   source_addr_ton: 2 = 0x00000002
2004-10-13 16:55:28 [22016] [6] DEBUG:   source_addr_npi: 1 = 0x00000001
2004-10-13 16:55:28 [22016] [6] DEBUG:   source_addr: "61211"
2004-10-13 16:55:28 [22016] [6] DEBUG:   dest_addr_ton: 1 = 0x00000001
2004-10-13 16:55:28 [22016] [6] DEBUG:   dest_addr_npi: 1 = 0x00000001
2004-10-13 16:55:28 [22016] [6] DEBUG:   destination_addr: "447956583543"
2004-10-13 16:55:28 [22016] [6] DEBUG:   esm_class: 3 = 0x00000003
2004-10-13 16:55:28 [22016] [6] DEBUG:   protocol_id: 0 = 0x00000000
2004-10-13 16:55:28 [22016] [6] DEBUG:   priority_flag: 0 = 0x00000000
2004-10-13 16:55:28 [22016] [6] DEBUG:   schedule_delivery_time: NULL
2004-10-13 16:55:28 [22016] [6] DEBUG:   validity_period: NULL
2004-10-13 16:55:28 [22016] [6] DEBUG:   registered_delivery: 1 = 0x00000001
2004-10-13 16:55:28 [22016] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2004-10-13 16:55:28 [22016] [6] DEBUG:   data_coding: 0 = 0x00000000
2004-10-13 16:55:28 [22016] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2004-10-13 16:55:28 [22016] [6] DEBUG:   sm_length: 24 = 0x00000018
2004-10-13 16:55:28 [22016] [6] DEBUG:   short_message:
2004-10-13 16:55:28 [22016] [6] DEBUG:    Octet string at 0x974d488:
2004-10-13 16:55:28 [22016] [6] DEBUG:      len:  24
2004-10-13 16:55:28 [22016] [6] DEBUG:      size: 25
2004-10-13 16:55:28 [22016] [6] DEBUG:      immutable: 0
2004-10-13 16:55:28 [22016] [6] DEBUG:      data: 74 65 73 74 20 6d 79 20 63 6f 6e 6e 65 63 74 69   test my connecti
2004-10-13 16:55:28 [22016] [6] DEBUG:      data: 6f 6e 20 6d 62 6c 6f 78                           on mblox
2004-10-13 16:55:28 [22016] [6] DEBUG:    Octet string dump ends.
2004-10-13 16:55:28 [22016] [6] DEBUG: SMPP PDU dump ends.
2004-10-13 16:55:28 [22016] [6] DEBUG: SMPP[mblox-free]: Got PDU:
2004-10-13 16:55:28 [22016] [6] DEBUG: SMPP PDU 0x974d2f0 dump:
2004-10-13 16:55:28 [22016] [6] DEBUG:   type_name: submit_sm_resp
2004-10-13 16:55:28 [22016] [6] DEBUG:   command_id: 2147483652 = 0x80000004
2004-10-13 16:55:28 [22016] [6] DEBUG:   command_status: 0 = 0x00000000
2004-10-13 16:55:28 [22016] [6] DEBUG:   sequence_number: 6 = 0x00000006
2004-10-13 16:55:28 [22016] [6] DEBUG:   message_id: "2695a782"
2004-10-13 16:55:28 [22016] [6] DEBUG: SMPP PDU dump ends.
2004-10-13 16:55:28 [22016] [6] DEBUG: DLR[mysql]: Adding DLR smsc=mblox-free, ts=2695, src="" dst=447956583543, mask=31, boxc=
2004-10-13 16:55:28 [22016] [6] DEBUG: sql: INSERT INTO delivery_receipts (smsc, timestamp, source, destination, service, url, mask, boxc, status) VALUES ('mblox-free', '2695', '61211', '447956583543', 'mblox-free', '', '31', '', '0');
2004-10-13 16:55:28 [22016] [6] DEBUG: SMSC[mblox-free]: creating DLR message
2004-10-13 16:55:28 [22016] [6] DEBUG: SMSC[mblox-free]: DLR =
2004-10-13 16:55:28 [22016] [10] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2004-10-13 16:55:28 [22016] [10] DEBUG: boxc_sender: sent message to <127.0.0.1>
2004-10-13 16:55:28 [22016] [9] DEBUG: boxc_receiver: got ack
2004-10-13 16:55:40 [22016] [9] DEBUG: boxc_receiver: heartbeat with load value 0 received
2004-10-13 16:56:03 [22016] [6] DEBUG: SMPP[mblox-free]: Sending enquire link:
2004-10-13 16:56:03 [22016] [6] DEBUG: SMPP PDU 0x974d898 dump:
2004-10-13 16:56:03 [22016] [6] DEBUG:   type_name: enquire_link
2004-10-13 16:56:03 [22016] [6] DEBUG:   command_id: 21 = 0x00000015
2004-10-13 16:56:03 [22016] [6] DEBUG:   command_status: 0 = 0x00000000
2004-10-13 16:56:03 [22016] [6] DEBUG:   sequence_number: 7 = 0x00000007
2004-10-13 16:56:03 [22016] [6] DEBUG: SMPP PDU dump ends.
2004-10-13 16:56:03 [22016] [6] DEBUG: SMPP[mblox-free]: Got PDU:
2004-10-13 16:56:03 [22016] [6] DEBUG: SMPP PDU 0x974d648 dump:
2004-10-13 16:56:03 [22016] [6] DEBUG:   type_name: enquire_link_resp
2004-10-13 16:56:03 [22016] [6] DEBUG:   command_id: 2147483669 = 0x80000015
2004-10-13 16:56:03 [22016] [6] DEBUG:   command_status: 0 = 0x00000000
2004-10-13 16:56:03 [22016] [6] DEBUG:   sequence_number: 7 = 0x00000007
2004-10-13 16:56:03 [22016] [6] DEBUG: SMPP PDU dump ends.
2004-10-13 16:56:53 [22016] [6] DEBUG: SMPP[mblox-free]: Sending enquire link:
2004-10-13 16:56:53 [22016] [6] DEBUG: SMPP PDU 0x974d648 dump:
2004-10-13 16:56:53 [22016] [6] DEBUG:   type_name: enquire_link
2004-10-13 16:56:53 [22016] [6] DEBUG:   command_id: 21 = 0x00000015
2004-10-13 16:56:53 [22016] [6] DEBUG:   command_status: 0 = 0x00000000
2004-10-13 16:56:53 [22016] [6] DEBUG:   sequence_number: 8 = 0x00000008
2004-10-13 16:56:53 [22016] [6] DEBUG: SMPP PDU dump ends.
2004-10-13 16:56:53 [22016] [6] DEBUG: SMPP[mblox-free]: Got PDU:
2004-10-13 16:56:53 [22016] [6] DEBUG: SMPP PDU 0x974d648 dump:
2004-10-13 16:56:53 [22016] [6] DEBUG:   type_name: enquire_link_resp
2004-10-13 16:56:53 [22016] [6] DEBUG:   command_id: 2147483669 = 0x80000015
2004-10-13 16:56:53 [22016] [6] DEBUG:   command_status: 0 = 0x00000000
2004-10-13 16:56:53 [22016] [6] DEBUG:   sequence_number: 8 = 0x00000008
2004-10-13 16:56:53 [22016] [6] DEBUG: SMPP PDU dump ends.

 
/////// bearerbox conf //////////
 
group = core
admin-port = 32000
wapbox-port = 32002
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
wdp-interface-name = "*"
log-file = "/home/dlr/kannel_logs/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#access-log = "access.log"
#store-file = "kannel.store"
#http-proxy-host = "127.0.0.1"
#http-proxy-port = "8080"
 
group = wapbox
bearerbox-host = localhost
log-file = "/home/dlr/kannel_logs/wapbox.log"
log-level = 3
syslog-level = none
 
include = "/home/dlr/smskannel_mblox_free.conf"

 
 
 
/////// smsbox.conf ///////////
 
group = core
admin-port = 32000
smsbox-port = 32001
admin-password = bar
log-file = "/home/dlr/kannel_logs/smsbox.log"
log-level = 5
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
unified-prefix = "00358,0"
dlr-storage = mysql
 
# SMSC CONNECTIONS
 
group = smsc
smsc = smpp
smsc-id = mblox-free
host = ******
port = ****
#receive-port = ****
smsc-username = "*******"
smsc-password = "*******"
enquire-link-interval = 50
system-type = "******"
address-range = ""
source-addr-ton = 3
#source-addr-npi = 1
dest-addr-npi = 1
dest-addr-ton = 1
#transceiver-mode = TRUE
service-type = 4210
#registered-delivery = 1
msg-id-type = 0x00
 
# DATABASE CONNECTION FOR DELIVERY RECEIPTS
 
group = mysql-connection
id = mydlr
host = localhost
mysql-username = ******
mysql-password = ******
database = ******
max-connections = 1
 
group = dlr-db
id = mydlr
table = delivery_receipts
field-smsc = smsc
field-timestamp = timestamp
field-destination = destination
field-source = source
field-service = service
field-url = "">field-mask = mask
field-status = status
field-boxc-id = boxc
 
# SMSBOX SETUP
 
group = smsbox
bearerbox-host = localhost
sendsms-port = 32013
global-sender = "*****"
#sendsms-chars = "0123456789 +-"
log-file = "/home/dlr/kannel_logs/smsbox.log"
log-level = 0
access-log = "/home/dlr/kannel_logs/access.log"
 
# this sender is for Kannel relay testing (http_smsc)
group = sendsms-user
username = ******
password = *****
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1;81.89.143.76;81.89.143.77;81.89.143.78"
dlr-url = ""http://my.site.com/nick_test_sms.php?type=%d&time=%T&connection_id=%i&receiver=%p&sender=%P&smsc=%A">http://my.site.com/nick_test_sms.php?type=%d&time=%T&connection_id=%i&receiver=%p&sender=%P&smsc=%A"
 
# SERVICES
 
# there should be default always
group = sms-service
keyword = default
max-messages = 0
get-url = "">http://my.site.com/nick_test_sms.php
 
Any help would be greatly appreciated,
 
Nick

Reply via email to