I'm using Kannel(1.5.0) to work on SMPP. Report generating dlr-url on your
script.
The problem is, I get the status of the operator, they do not reach my
script.
Here is the log file operator:
    2012-02-15 11:13:50 [7214] [6] DEBUG: SMPP[Astelit]: Got PDU:
    2012-02-15 11:13:50 [7214] [6] DEBUG: SMPP PDU 0x9f344f0 dump:
    2012-02-15 11:13:50 [7214] [6] DEBUG:   type_name: deliver_sm
    2012-02-15 11:13:50 [7214] [6] DEBUG:   command_id: 5 = 0x00000005
    2012-02-15 11:13:50 [7214] [6] DEBUG:   command_status: 0 = 0x00000000
    2012-02-15 11:13:50 [7214] [6] DEBUG:   sequence_number: 14345402 =
0x00dae4ba
    2012-02-15 11:13:50 [7214] [6] DEBUG:   service_type: NULL
    2012-02-15 11:13:50 [7214] [6] DEBUG:   source_addr_ton: 1 = 0x00000001
    2012-02-15 11:13:50 [7214] [6] DEBUG:   source_addr_npi: 1 = 0x00000001
    2012-02-15 11:13:50 [7214] [6] DEBUG:   source_addr: "380676220823"
    2012-02-15 11:13:50 [7214] [6] DEBUG:   dest_addr_ton: 5 = 0x00000005
    2012-02-15 11:13:50 [7214] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000
    2012-02-15 11:13:50 [7214] [6] DEBUG:   destination_addr: "TOSKANA"
    2012-02-15 11:13:50 [7214] [6] DEBUG:   esm_class: 4 = 0x00000004
    2012-02-15 11:13:50 [7214] [6] DEBUG:   protocol_id: 0 = 0x00000000
    2012-02-15 11:13:50 [7214] [6] DEBUG:   priority_flag: 0 = 0x00000000
    2012-02-15 11:13:50 [7214] [6] DEBUG:   schedule_delivery_time: NULL
    2012-02-15 11:13:50 [7214] [6] DEBUG:   validity_period: NULL
    2012-02-15 11:13:50 [7214] [6] DEBUG:   registered_delivery: 0 =
0x00000000
    2012-02-15 11:13:50 [7214] [6] DEBUG:   replace_if_present_flag: 0 =
0x00000000
    2012-02-15 11:13:50 [7214] [6] DEBUG:   data_coding: 0 = 0x00000000
    2012-02-15 11:13:50 [7214] [6] DEBUG:   sm_default_msg_id: 0 =
0x00000000
    2012-02-15 11:13:50 [7214] [6] DEBUG:   sm_length: 89 = 0x00000059
    2012-02-15 11:13:50 [7214] [6] DEBUG:   short_message:
    2012-02-15 11:13:50 [7214] [6] DEBUG:    Octet string at 0x9f34be8:
    2012-02-15 11:13:50 [7214] [6] DEBUG:      len:  89
    2012-02-15 11:13:50 [7214] [6] DEBUG:      size: 90
    2012-02-15 11:13:50 [7214] [6] DEBUG:      immutable: 0
    2012-02-15 11:13:50 [7214] [6] DEBUG:      data: 69 64 3a 53 4d 35 38 33
37 32 30 35 32 31 20 73   id:SM583720521 s
    2012-02-15 11:13:50 [7214] [6] DEBUG:      data: 75 62 3a 30 30 31 20 64
6c 76 72 64 3a 30 30 31   ub:001 dlvrd:001
    2012-02-15 11:13:50 [7214] [6] DEBUG:      data: 20 73 75 62 6d 69 74 20
64 61 74 65 3a 31 32 30    submit date:120
    2012-02-15 11:13:50 [7214] [6] DEBUG:      data: 32 31 35 31 31 31 33 20
64 6f 6e 65 20 64 61 74   2151113 done dat
    2012-02-15 11:13:50 [7214] [6] DEBUG:      data: 65 3a 31 32 30 32 31 35
31 31 31 33 20 73 74 61   e:1202151113 sta
    2012-02-15 11:13:50 [7214] [6] DEBUG:      data: 74 3a 44 45 4c 49 56 52
44                        t:DELIVRD
    2012-02-15 11:13:50 [7214] [6] DEBUG:    Octet string dump ends.
    2012-02-15 11:13:50 [7214] [6] DEBUG:   message_state: 2 = 0x00000002
    2012-02-15 11:13:50 [7214] [6] DEBUG:   receipted_message_id:
"SM583720521"
    2012-02-15 11:13:50 [7214] [6] DEBUG: SMPP PDU dump ends.
    2012-02-15 11:13:50 [7214] [6] DEBUG: SMPP[Astelit] handle_pdu, got DLR
    2012-02-15 11:13:50 [7214] [6] DEBUG: SMPP[Astelit]: Couldnot parse DLR
string sscanf way,fallback to old way. Please report!
    2012-02-15 11:13:50 [7214] [6] DEBUG: DLR[mysql]: Looking for DLR
smsc=Astelit, ts=SM583720521, dst=380676220823, type=1
    2012-02-15 11:13:50 [7214] [6] DEBUG: sql: SELECT `mask`, `service`,
`url`, `source`, `destination`, `boxc` FROM `dlr` WHERE `smsc`=? AND `ts`=? 
LIMIT 1
    2012-02-15 11:13:50 [7214] [6] DEBUG: column=mask buffer_type=253
max_length=0 length=255
    2012-02-15 11:13:50 [7214] [6] DEBUG: column=service buffer_type=253
max_length=0 length=40
    2012-02-15 11:13:50 [7214] [6] DEBUG: column=url buffer_type=253
max_length=0 length=255
    2012-02-15 11:13:50 [7214] [6] DEBUG: column=source buffer_type=253
max_length=0 length=40
    2012-02-15 11:13:50 [7214] [6] DEBUG: column=destination buffer_type=253
max_length=0 length=40
    2012-02-15 11:13:50 [7214] [6] DEBUG: column=boxc buffer_type=253
max_length=0 length=40
    2012-02-15 11:13:50 [7214] [6] DEBUG: DLR[mysql]: created DLR message
for URL
<http://****/report.php?messageID=2&delivery=%d&nid=11&SMSId=%I&send=%t&rep=%A>
    2012-02-15 11:13:50 [7214] [6] DEBUG: removing DLR from database
    2012-02-15 11:13:50 [7214] [6] DEBUG: sql: DELETE FROM `dlr` WHERE
`smsc`=? AND `ts`=?  LIMIT 1
Why can not he write to the dlr table?
This is not the time. Some of the statuses of reach.

My config:

# ------ CORE GROUPE ------
group = core
wdp-interface-name = "*"
admin-port = 13000
smsbox-port = 13001
admin-password = ********
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1;*.*.*.*"
log-file = "/var/log/kannel/bearerbox.log"
log-level =0
access-log = "/var/log/kannel/access.log"
access-log-clean = false
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;*.*.*.*"
store-type = spool
store-location = "/var/spool/kannel"
smsbox-max-pending = 5000
sms-resend-freq = 30
sms-resend-retry = 60
dlr-storage=MySQL

# ------ SMSBOX GROUPE ------
group = smsbox
smsbox-id = SMS_Box
bearerbox-host = localhost
bearerbox-port = 13001
sendsms-port = 13002
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/sms-access.log"
sendsms-chars = "0123456789+"
http-request-retry = 10
http-queue-delay = 60
max-pending-requests = 10
mo-recode = no



# --- MySQL DLR Storage
include = "/etc/kannel/dlr.conf"

# ------ SMSC CONNECTIONS ------
include = "/etc/kannel/sms-centers/smpp-smsc.conf"

# ------ SMSBOX SETUP ------
include = "/etc/kannel/smsbox.conf"


# ------ ROUTING ------
group = smsbox-route
smsbox-id = "SMS_Box"
smsc-id = "SMSC"


    # ------ SEND-SMS USERS ------
    include = "/etc/kannel/sendsms-users/sendsms-users.conf"

    # ------ SMS-SERVICE ------
    include = "/etc/kannel/sms-services/sms-service.conf"

    My dlr-url : $dlrURL =
urlencode("http://**/report.php?messageID=".$msg_id."&delivery=%d&;  
nid=".$newsletter_id."&SMSId=%I&send=%t&rep=%A"); 
-- 
View this message in context: 
http://old.nabble.com/Problem-with-delivery-reports-tp33327313p33327313.html
Sent from the Kannel - User mailing list archive at Nabble.com.


Reply via email to