Hi,

I have posted a small tutorial on this dlr notifications sometimes back . Anyway iam sending that url as a reference. hope this helps

http://www.mail-archive.com/[email protected]/msg12859.html

if u need any help let me know , personally.


Tharanga Abeyseela




Antonio Pavletich wrote:
Hi,
No replies? Any suggestions on where to start looking them? I've read the v1.4.2 & 1.4.3 release notes & see that there has been some bug fixes in the DLR area since v1.4.1 Before I try compiling the latest version on a RHEL4 box, is anyone using %a or %b which is working as expected? Is there any other method for producing delivery reports? I'm not concerned with getting a SMS reply from for a end to end delivery notification but just that the SMSC received and accepted the message. I understand from the forum's, howto's & the documentation on the web that there is 3 methods: 1) DLR - SQL
2) DLR-URL in the kannel.conf file & using &dlr-mask=xy.
3) DLR-URL & using &dlr-mask=xy and a &dlr-url=....
Thanks, Antonio

    ----- Original Message -----
    *From:* Antonio Pavletich <mailto:[email protected]>
    *To:* [email protected] <mailto:[email protected]>
    *Sent:* Saturday, April 18, 2009 5:02 PM
    *Subject:* Kannel dlr-url %a http post shows is always empty in ?

    Hi,

    In the Kannel debug output %a produces an empty sting instead of
    inserting the message text into the URL? I have tried %b, %s and
    also %S but all produce empty strings?

    On page 85 of the Kannel user manual / guide (latest version):
    %a = all words of the SMS message, including the first one, with
    spaces squeezed to one
    %b =  the original SMS message, in a binary form

    Is anyone else having this issue / know how to resolve it?

    Thanks,


    Antonio
PS: Is this a bug / has it been fixed in 1.4.3?

    2009-04-18 16:23:15 [6876] [2] DEBUG: HTTP: Creating HTTPClient
    for `127.0.0.1'.
    2009-04-18 16:23:15 [6876] [2] DEBUG: HTTP: Created HTTPClient
    area 0x9693718.
    2009-04-18 16:23:15 [6876] [3] INFO: smsbox: Got HTTP request
    </cgi-bin/sendsms> from <127.0.0.1>
    2009-04-18 16:23:15 [6876] [3] INFO: sendsms used by <hiddenname
    2009-04-18 16:23:15 [6876] [3] INFO: sendsms
    sender:<hiddenname:021012345> (127.0.0.1) to:<021012345> msg:<TEST
    SMS>
    2009-04-18 16:23:15 [6876] [3] DEBUG: Stored UUID
    5d85a6bc-a74a-4f57-8420-5e853f79f4ff
    2009-04-18 16:23:15 [6876] [3] DEBUG: message length 8, sending 1
    messages
    2009-04-18 16:23:15 [6874] [9] DEBUG: boxc_receiver: sms received
    2009-04-18 16:23:15 [6874] [9] DEBUG: send_msg: sending msg to
    box: <127.0.0.1>
    2009-04-18 16:23:15 [6876] [0] DEBUG: Got ACK (0) of
    5d85a6bc-a74a-4f57-8420-5e853f79f4ff
    2009-04-18 16:23:15 [6876] [0] DEBUG: HTTP: Destroying HTTPClient
    area 0x9693718.
    2009-04-18 16:23:15 [6876] [0] DEBUG: HTTP: Destroying HTTPClient
    for `127.0.0.1'.
    2009-04-18 16:23:15 [6876] [3] DEBUG: Status: 202 Answer: <Sent.>
    2009-04-18 16:23:15 [6876] [3] DEBUG: Delayed reply - wait for
    bearerbox
    2009-04-18 16:23:15 send-SMS request added -
    sender:userhidden:021012345
    127.0.0.1 target:021012345 request: 'TEST SMS'
    2009-04-18 16:23:17 [6874] [6] DEBUG: AT2[wavecom]:
    TP-Validity-Period: 24.0
    hours
    2009-04-18 16:23:17 [6874] [6] DEBUG: AT2[wavecom]: --> AT+CMGS=20^M
    2009-04-18 16:23:17 [6874] [6] DEBUG: AT2[wavecom]: <-- >
    2009-04-18 16:23:17 [6874] [6] DEBUG: AT2[wavecom]: send command
    status: 1
    2009-04-18 16:23:17 [6874] [6] DEBUG: AT2[wavecom]: -->
    003100098120814008F44100A708D4E2940A9A36A7
    2009-04-18 16:23:17 [6874] [6] DEBUG: AT2[wavecom]: --> ^Z
    2009-04-18 16:23:19 [6874] [6] DEBUG: AT2[wavecom]: <-- >
    2009-04-18 16:23:19 [6874] [6] DEBUG: AT2[wavecom]: <-- +CMGS: 185
    2009-04-18 16:23:19 [6874] [6] DEBUG: AT2[wavecom]: <-- OK
    2009-04-18 16:23:19 [6874] [6] DEBUG: AT2[wavecom]: send command
    status: 0
    2009-04-18 16:23:19 [6874] [6] DEBUG: DLR[internal]: Adding DLR
    smsc=wavecom, ts=185, src=0021012345, dst=021012345, mask=31, boxc=
    2009-04-18 16:23:19 [6874] [6] DEBUG: SMSC[wavecom]: creating DLR
    message
    2009-04-18 16:23:19 [6874] [6] DEBUG: SMSC[wavecom]: DLR =
    2009-04-18 16:23:19 [6874] [10] DEBUG: send_msg: sending msg to
    box: <127.0.0.1>
    2009-04-18 16:23:19 [6874] [10] DEBUG: boxc_sender: sent message
    to <127.0.0.1>
    2009-04-18 16:23:19 [6876] [4] INFO: Starting delivery report
    <userhidden> from <021012345>
    2009-04-18 16:23:19 [6876] [9] DEBUG: Parsing URL
    
`http://127.0.0.1/scripts/dlr.php?dlr&time=2009-04-18+04:23:19&sender=021012345&recipient=021012345&smsc=wavecom&user=userhidden&msg=&result=ACK%2F&dlr=8':
    2009-04-18 16:23:19 [6876] [9] DEBUG:   Scheme: http://
    2009-04-18 16:23:19 [6876] [9] DEBUG:   Host: 127.0.0.1
    2009-04-18 16:23:19 [6876] [9] DEBUG:   Port: 80
    2009-04-18 16:23:19 [6876] [9] DEBUG:   Username: (null)
    2009-04-18 16:23:19 [6876] [9] DEBUG:   Password: (null)
    2009-04-18 16:23:19 [6876] [9] DEBUG:   Path: /scripts/dlr.php
    2009-04-18 16:23:19 [6876] [9] DEBUG:   Query:
    
dlr&time=2009-04-18+04:23:19&sender=021012345&recipient=021012345&smsc=wavecom&user=userhidden&msg=&result=ACK%2F&dlr=8
    2009-04-18 16:23:19 [6876] [9] DEBUG:   Fragment: (null)
    2009-04-18 16:23:19 [6874] [9] DEBUG: boxc_receiver: got ack
    2009-04-18 16:23:19 [6876] [9] DEBUG: HTTP: Opening connection to
    `127.0.0.1:80' (fd=28).
    2009-04-18 16:23:19 [6876] [9] DEBUG: Socket connecting
    2009-04-18 16:23:19 [6876] [8] DEBUG: Get info about connecting socket
    2009-04-18 16:23:19 [6876] [8] DEBUG: HTTP: Sending request:
    2009-04-18 16:23:19 [6876] [8] DEBUG: Octet string at 0x9686a18:
    2009-04-18 16:23:19 [6876] [8] DEBUG:   len:  193
    2009-04-18 16:23:19 [6876] [8] DEBUG:   size: 1024
    2009-04-18 16:23:19 [6876] [8] DEBUG:   immutable: 0
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 47 45 54 20 2f 73 63
    72 69 70 74 73 2f 64 6c 72   GET /scripts/dlr
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 2e 70 68 70 3f 64 6c
    72 26 74 69 6d 65 3d 32 30   .php?dlr&time=20
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 30 39 2d 30 34 2d 31
    38 2b 30 34 3a 32 33 3a 31   09-04-18+04:23:1
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 39 26 73 65 6e 64 65
    72 3d 30 00 00 00 00 00 00   9&sender=0210123
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 00 00 26 72 65 63 69
    70 69 65 6e 74 3d 30 32 31   45&recipient=021
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 00 00 00 00 00 00 26
    73 6d 73 63 3d 77 61 76 65   012345&smsc=wave
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 63 6f 6d 26 75 73 65
    72 00 00 00 00 00 00 00 00   com&user=userhidden
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 26 6d 73 67 3d 26 72
    65 73 75 6c 74 3d 41 43 4b   &msg=&result=ACK
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 25 32 46 26 64 6c 72
    3d 38 20 48 54 54 50 2f 31   %2F&dlr=8 HTTP/1
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 2e 31 0d 0a 48 6f 73
    74 3a 20 31 32 37 2e 30 2e   .1..Host: 127.0.
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 30 2e 31 0d 0a 55 73
    65 72 2d 41 67 65 6e 74 3a   0.1..User-Agent:
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 20 4b 61 6e 6e 65 6c
    2f 31 2e 34 2e 31 0d 0a 0d    Kannel/1.4.1...
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 0a
    .
    2009-04-18 16:23:19 [6876] [8] DEBUG: Octet string dump ends.
    2009-04-18 16:23:19 [6876] [8] DEBUG: HTTP: Status line: <HTTP/1.1
    200 OK>
    2009-04-18 16:23:19 [6876] [8] DEBUG: HTTP: Received response:
    2009-04-18 16:23:19 [6876] [8] DEBUG: Octet string at 0x9686a18:
    2009-04-18 16:23:19 [6876] [8] DEBUG:   len:  391
    2009-04-18 16:23:19 [6876] [8] DEBUG:   size: 1024
    2009-04-18 16:23:19 [6876] [8] DEBUG:   immutable: 0
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 44 61 74 65 3a 20 53
    61 74 2c 20 31 38 20 41 70   Date: Sat, 18 Ap
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 72 20 32 30 30 39 20
    30 34 3a 32 33 3a 31 39 20   r 2009 04:23:19
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 47 4d 54 0d 0a 53 65
    72 76 65 72 3a 20 41 70 61   GMT..Server: Apa
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 63 68 65 2f 32 2e 30
    2e 35 35 20 28 52 65 64 20   che/2.0.55 (Red
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 48 61 74 29 0d 0a 58
    2d 50 6f 77 65 72 65 64 2d   Hat)..X-Powered-
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 42 79 3a 20 50 48 50
    2f 34 2e 33 2e 39 0d 0a 43   By: PHP/4.3.9..C
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 6f 6e 74 65 6e 74 2d
    4c 65 6e 67 74 68 3a 20 31   ontent-Length: 1
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 39 32 0d 0a 43 6f 6e
    6e 65 63 74 69 6f 6e 3a 20   92..Connection:
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 63 6c 6f 73 65 0d 0a
    43 6f 6e 74 65 6e 74 2d 54   close..Content-T
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 79 70 65 3a 20 74 65
    78 74 2f 68 74 6d 6c 3b 20   ype: text/html;
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 63 68 61 72 73 65 74
    3d 55 54 46 2d 38 0d 0a 43   charset=UTF-8..C
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 6f 6e 74 65 6e 74 2d
    4c 61 6e 67 75 61 67 65 3a   ontent-Language:
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 20 65 6e 0d 0a 0d 0a
    3c 48 54 4d 4c 3e 3c 42 4f    en....<HTML><BO
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 44 59 3e 74 69 6d 65
    20 3d 20 32 30 30 39 2d 30   DY>time = 2009-0
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 34 2d 31 38 20 30 34
    3a 32 33 3a 31 39 3c 62 72   4-18 04:23:19<br
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 3e 73 65 6e 64 65 72
    20 3d 20 30 32 00 00 00 00   >sender = 021012
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 00 00 00 3c 62 72 3e
    72 65 63 69 70 69 65 6e 74   345<br>recipient
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 20 3d 20 30 32 31 00
    00 00 00 00 00 3c 62 72 3e    = 021012345<br>
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 73 6d 73 63 20 3d 20
    77 61 76 65 63 6f 6d 20 3c   smsc = wavecom <
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 62 72 3e 75 73 65 72
    20 3d 20 00 00 00 00 00 00   br>user = userhidden
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 00 20 3c 62 72 3e 64
    6c 72 20 3d 20 38 20 3c 62     <br>dlr = 8 <b
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 72 3e 73 6d 73 63 72
    65 73 75 6c 74 20 3d 20 41   r>smscresult = A
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 43 4b 2f 20 3c 62 72
    3e 6d 73 67 20 3d 20 20 3c   CK/ <br>msg =  <
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 62 72 3e 3c 2f 48 54
    4d 4c 3e 3c 2f 42 4f 44 59   br></HTML></BODY
    2009-04-18 16:23:19 [6876] [8] DEBUG:   data: 3e 0a 0a 0a 0a 0a 0a
     >......
    2009-04-18 16:23:19 [6876] [8] DEBUG: Octet string dump ends.
    2009-04-18 16:23:19 Sent SMS [SMSC:wavecom] [SVC:userhidden]
    [ACT:] [BINF:] [from:021012345] [to:021012345]
    [flags:-1:0:-1:-1:31] [msg:8:TEST SMS]
    [udh:0:]
    2009-04-18 16:23:19 DLR SMS [SMSC:wavecom] [SVC:userhidden] [ACT:]
    [BINF:] [from:021012345] [to:021012345] [flags:-1:-1:-1:-1:8]
    [msg:4:ACK/] [udh:0:]

    kannel.conf:

    group = sendsms-user
    username = userhidden
    password = hidden
    max-messages = 3
    concatenation = true
    user-deny-ip = "*.*.*.*"
    user-allow-ip = "127.0.0.1"
    dlr-url =
    
"http://127.0.0.1/scripts/dlr.php?dlr&time=%t&sender=%p&recipient=%P&smsc=%i&user=%n&msg=%a&result=%A&dlr=%d
    
<http://127.0.0.1/scripts/dlr.php?dlr&time=%t&sender=%p&recipient=%P&smsc=%i&user=%n&msg=%a&result=%A&dlr=%d>"

    I have tested the dlr.php script which works perfectly.  All other
    fields are inserted into the DB table ok just %a is empty.

    2009-04-18 16:42:03 [3442] [0] INFO: Debug_lvl = -1, log_file =
    <none>,
    log_lvl = 0
    2009-04-18 16:42:03 [3442] [0] DEBUG: Loading include file
    `/etc/modems.conf' (on line 145 of file /etc/kannel.conf).
    2009-04-18 16:42:03 [3444] [0] DEBUG: Loading include file
    `/etc/modems.conf' (on line 145 of file /etc/kannel.conf).
    2009-04-18 16:42:03 [3442] [0] INFO: DLR using storage type: internal
    2009-04-18 16:42:03 [3444] [0] DEBUG: Kannel smsbox version `1.4.1'.
    Build `Sep  8 2007 16:47:54', compiler `3.4.6 20060404 (Red Hat
    3.4.6-8)'.
    System Linux, release 2.6.9-78.0.8.ELsmp, version #1 SMP Wed Nov 5
    07:10:44
    EST 2008, machine i686.
    Hostname hidden, IP 127.0.0.1.
    Libxml version 2.6.16.
    Using OpenSSL 0.9.7a Feb 19 2003.
    Using native malloc.

    2009-04-18 16:42:03 [3442] [0] DEBUG: Kannel bearerbox version
    `1.4.1'.
    Build `Sep  8 2007 16:47:54', compiler `3.4.6 20060404 (Red Hat
    3.4.6-8)'.
    System Linux, release 2.6.9-78.0.8.ELsmp, version #1 SMP Wed Nov 5
    07:10:44
    EST 2008, machine i686.
    Hostname hidden, IP 127.0.0.1.
    Libxml version 2.6.16.
    Using OpenSSL 0.9.7a Feb 19 2003.
    Using native malloc.




Reply via email to