Dear Nikos, Rene, Alexander and everyone else,

I'm sorry to bother this list and particularly the maintainers with
this question, but I'm puzzled about kannel's behavior (or my
ignorance) regarding DLRs and the http smsc.

I'm trying to set up kannel with opensmppbox  to route messages coming
from opensmppbox to an external script. I've accomplished this task
and I also moved on to DLRs.
Believe me I've RTFM and I've seen the list archives, e.g. the "esme
and http smsc delivery report" and "generic http smsc statuses"
threads.
However, I've noticed that due to my lack of experience I cannot set
up the http smsc with neither (generic or kannel) system-type to
generate simple [accept|reject] DLRs based on the text returned by my
script.

DLRs for _rejected_ messages get through nicely (awesome job with
Kannel BTW), but those that actually match the 'status-success-regex'
are also marked as UNDELIV

the relevant section of my kannel.conf:

smsc = http
smsc-id = BBBB
system-type = kannel
# or generic
smsc-username = whatever
smsc-password = ditto
# or without these
port = nnnnn
send-url = 
"http://host.name.tld/receive_sms_from_kannel.scr?from=%P&to=%p&text=%b&dlr-url=%R";
# or without the query part
log-level = 0
reroute-dlr = true
generic-param-dlr-mask = 24
# 28? 63?
status-success-regex = "queued"


the bearerbox output of a successfully queued (accepted) session:

2011-05-10 11:29:44 [23906] [13] DEBUG:   data: 2e 34 2e 32 38 0d 0a
0d 0a 71 75 65 75 65 64      .4.28....queued
2011-05-10 11:29:44 [23906] [13] DEBUG: Octet string dump ends.
# end of HTTP transcript
2011-05-10 11:29:44 [23906] [8] DEBUG: SMSC[AAAA]: creating DLR message
2011-05-10 11:29:44 [23906] [8] DEBUG: SMSC[AAAA]: DLR = 578769f2
2011-05-10 11:29:44 [23906] [32] DEBUG: send_msg: sending msg to boxc: <BBBB>
2011-05-10 11:29:44 [23906] [32] DEBUG: boxc_sender: sent message to
<188.65.177.89>
2011-05-10 11:29:45 [23906] [31] DEBUG: boxc_receiver: got ack

the relevant output from opensmppbox:

2011-05-10 11:29:44 [11423] [15] DEBUG:      data: 69 64 3a 35 37 38
37 36 39 66 32 20 73 75 62 3a   id:578769f2 sub:
2011-05-10 11:29:44 [11423] [15] DEBUG:      data: 30 30 31 20 64 6c
76 72 64 3a 30 30 30 20 73 75   001 dlvrd:000 su
2011-05-10 11:29:44 [11423] [15] DEBUG:      data: 62 6d 69 74 20 64
61 74 65 3a 31 31 30 35 31 30   bmit date:110510
2011-05-10 11:29:44 [11423] [15] DEBUG:      data: 31 31 32 39 20 64
6f 6e 65 20 64 61 74 65 3a 31   1129 done date:1
2011-05-10 11:29:44 [11423] [15] DEBUG:      data: 31 30 35 31 30 31
31 32 39 20 73 74 61 74 3a 55   105101129 stat:U
2011-05-10 11:29:44 [11423] [15] DEBUG:      data: 4e 44 45 4c 49 56
20 65 72 72 3a 30 30 30 20 74   NDELIV err:000 t
2011-05-10 11:29:44 [11423] [15] DEBUG:      data: 65 78 74 3a 20 4e
41 43 4b 2f 71 75 65 75 65 64   ext: NACK/queued

I realize that I myself might have induced this behavior by not
setting a proper dlr-mask override somewhere, or it could be just
normal, but it looks quite similar to the negative reply (which has
the same UNDELIV status), the only difference being the appended
'queued' or 'noqueue' reply from my application. Also it would by
nicer to get a REJECTD status for these, too, but I have no idea how
to configure Kannel to achieve this result.
I expected a status update with the status set to 'ACCEPTD' - am I
wrong? Or - in other words - ho can I get Kannel to transmit a
deliver_sm PDU with an ACCEPTD status? I might have to brush up my
skills in ANSI C. :)

Thanks in advance,
Gabor

Reply via email to