Thanks for the pointers, Bill. Recompilation seemed to go well. I am now
running 'cvs-20030915'.

I'm still having problems with dlr reports. The status html page shows
the dlrs stored internally. I'm trying to specify a dlr-url in the
sending url (see below). 

    2003-09-16 14:01:22 [7] DEBUG: DLR[internal]: Looking for DLR smsc=fruitshort, 
ts=0104685451, dst=87262, type=1
    2003-09-16 14:01:22 [7] WARNING: DLR[internal]: DLR for DST<87262> not found.

My sending url is (with added returns)

    http://localhost:13002/cgi-bin/sendsms?
    username=sands&password=sands&
    from=87262&to=+447777777777&
    text=cvs%20test%203&
    dlr-mask=7&dlr-url=http%3A%2F%2Flocalhost%2Fsms%2Fdlr.php%3Ftype%3D%25d

I turned off my phone before sending and and bearerbox reported:

    DLR[internal]: Adding DLR smsc=fruitshort, ts=063E2DF4, src=87262, 
dst=447777777777, mask=7, boxc=

I turned on my phone and bearerbox reported:

    DEBUG: SMPP PDU 0x81a84e8 dump:
    DEBUG:   type_name: deliver_sm
    DEBUG:   command_id: 5 = 0x00000005
    DEBUG:   command_status: 0 = 0x00000000
    DEBUG:   sequence_number: 7 = 0x00000007
    DEBUG:   service_type: "NOREP"
    DEBUG:   source_addr_ton: 1 = 0x00000001
    DEBUG:   source_addr_npi: 1 = 0x00000001
    DEBUG:   source_addr: "447777777777"
    DEBUG:   dest_addr_ton: 3 = 0x00000003
    DEBUG:   dest_addr_npi: 1 = 0x00000001
    DEBUG:   destination_addr: "87262"
    DEBUG:   esm_class: 4 = 0x00000004
    DEBUG:   protocol_id: 0 = 0x00000000
    DEBUG:   priority_flag: 0 = 0x00000000
    DEBUG:   schedule_delivery_time: NULL
    DEBUG:   validity_period: NULL
    DEBUG:   registered_delivery: 0 = 0x00000000
    DEBUG:   replace_if_present_flag: 0 = 0x00000000
    DEBUG:   data_coding: 0 = 0x00000000
    DEBUG:   sm_default_msg_id: 0 = 0x00000000
    DEBUG:   sm_length: 114 = 0x00000072
    DEBUG:   short_message:
    DEBUG:    Octet string at 0x81a8830:
    DEBUG:      len:  114
    DEBUG:      size: 115
    DEBUG:      immutable: 0
    DEBUG:      data: 69 64 3a 30 31 30 34 37 33 38 32 39 32 20 73 75   id:0104738292 
su
    DEBUG:      data: 62 3a 30 30 31 20 64 6c 76 72 64 3a 30 30 31 20   b:001 dlvrd:001
    DEBUG:      data: 73 75 62 6d 69 74 20 64 61 74 65 3a 30 33 30 39   submit 
date:0309
    DEBUG:      data: 31 36 31 34 32 36 20 64 6f 6e 65 20 64 61 74 65   161426 done 
date
    DEBUG:      data: 3a 30 33 30 39 31 36 31 34 32 39 20 73 74 61 74   :0309161429 
stat
    DEBUG:      data: 3a 44 45 4c 49 56 52 44 20 65 72 72 3a 30 36 30   :DELIVRD 
err:060
    DEBUG:      data: 20 74 65 78 74 3a 61 6e 6f 74 68 65 72 20 74 65    text:another 
te
    DEBUG:      data: 73 74                                             st
    DEBUG:    Octet string dump ends.
    DEBUG: SMPP PDU dump ends.
    DEBUG: SMPP[fruitshort] handle_pdu, got DLR
    DEBUG: DLR[internal]: Looking for DLR smsc=fruitshort, ts=0104738292, dst=87262, 
type=1
    WARNING: DLR[internal]: DLR for DST<87262> not found.
    ERROR: SMPP[fruitshort]: got DLR but could not find message or was not interested 
in it

kannel.conf:
============

########################################################################
# CORE
########################################################################
group                = core
admin-port           = 13000
smsbox-port          = 13001
admin-password       = bar
wdp-interface-name   = "*"
log-file             = "/var/log/kannel/bearerbox.log"
log-level            = 0
box-deny-ip          = "*.*.*.*"
box-allow-ip         = "127.0.0.1"
access-log           = "/var/log/kannel/access.log"
store-file           = "/var/log/kannel/kannel.store"

########################################################################
# SMSC
########################################################################
group               = smsc
smsc-id             = fruitshort
allowed-smsc-id     = fruitshort
smsc                = smpp
host                = 000000000000
port                = 8000
receive-port        = 8000
smsc-username       = "xxxx"
smsc-password       = _put_in_here_
system-type         = "SMPP"
dest-addr-ton       = 1
dest-addr-npi       = 1 
source-addr-ton     = 3
source-addr-npi     = 1 

group               = smsc
smsc-id             = fruitlong
allowed-smsc-id     = fruitlong
smsc                = smpp
host                = 000000000000
port                = 8000
receive-port        = 0
smsc-username       = "xxxx"
smsc-password       = _put_in_here_
system-type         = "SMPP"
dest-addr-ton       = 1
dest-addr-npi       = 1 
source-addr-ton     = 1
source-addr-npi     = 1 

########################################################################
# SMSBOX 
########################################################################
group               = smsbox
bearerbox-host      = localhost
sendsms-port        =  13002
log-file            = "/tmp/smsbox.log"
log-level           = 0

########################################################################
# SMS SERVICE
########################################################################

group               = sms-service
keyword             = default
get-url             = 
"http://localhost/cgi-bin/receive.pl?all=%a&time=%t&source=%p&receiver=%P&delivery=%d&smscid=%i";
max-messages        = 0
accepted-smsc       = "fruitshort"

########################################################################
# SMS USER
########################################################################

group               = sendsms-user
username            = sands
password            = sands
name                = fruitshort
forced-smsc         = fruitshort

group               = sendsms-user
username            = sandl
password            = sandl
name                = fruitlong
forced-smsc         = fruitlong


On 16/09/03, Bill Brigden ([EMAIL PROTECTED]) wrote:
> Looking through cvs:
> 
> 2003-06-19  Stipe Tolj  <[EMAIL PROTECTED]>
>     * gw/dlr*.[ch], gw/smsc_[soap|smpp|oisd|emi2|cimd2|cgw|at2].c,
>       gw/bearerbox.c: Alexander's major DLR rewrite to support callbacks
>       for the various storage types.
>       [Msg-ID: <[EMAIL PROTECTED]>]

-- 
Rory Campbell-Lange 
<[EMAIL PROTECTED]>
<www.campbell-lange.net>

Reply via email to