DLR with seimens-tc35

joseph mercado <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi list;
    Hereis my setup: Im using kannel1.21.Linux
7.1,mysql,php,perl,tc35.
I push sms via cgi sendsms and added the dlrmask and
dlrurl in the link

http://localhost:13013/cgi-bin/sendsms?username=sss&password=infotext&to=$cellnum&text=$msg&dlrmask=31&dlrurl=http://192.168.40.212/digitel/dlr.php%3fmsgid=$msgid&type=%25d


$msgid is generated by my code,one id = i msg send. So
far things are alright but this is what i get at the
smsbox.log
--------------------------------------------------------------------------------------------------
2003-01-13 18:24:36 [3] INFO: smsbox: Got HTTP request
</cgi-bin/sendsms> from <127.0.0.1>
2003-01-13 18:24:36 [3] INFO: sendsms used by <sss>
2003-01-13 18:24:36 [3] INFO: sendsms
sender:<sss:12345> (127.0.0.1) to:<639207797847>
msg:<Hello joseph>
2003-01-13 18:24:36 [3] DEBUG: message length 12,
sending 1 messages
2003-01-13 18:24:36 [3] DEBUG: Status: 202 Answer:
<Sent.>
2003-01-13 18:24:36 [3] DEBUG: HTTP: Destroying
HTTPClient area 0x814ecc8.
2003-01-13 18:24:36 [3] DEBUG: HTTP: Destroying
HTTPClient for `127.0.0.1'.
2003-01-13 18:24:39 [4] INFO: Starting delivery report
<sss> from <+639207797847>
2003-01-13 18:24:39 [9] DEBUG: HTTP: Opening
connection to `192.168.40.212:80' (fd=30).
2003-01-13 18:24:39 [9] DEBUG: HTTP: Sending request:
2003-01-13 18:24:39 [9] DEBUG: Octet string at
0x814ecb8:
2003-01-13 18:24:39 [9] DEBUG:   len:  120
2003-01-13 18:24:39 [9] DEBUG:   size: 121
2003-01-13 18:24:39 [9] DEBUG:   immutable: 0
2003-01-13 18:24:39 [9] DEBUG:   data: 47 45 54 20 2f
64 69 67   GET /dig
2003-01-13 18:24:39 [9] DEBUG:   data: 69 74 65 6c 2f
64 6c 72   itel/dlr
2003-01-13 18:24:39 [9] DEBUG:   data: 2e 70 68 70 3f
6d 73 67   .php?msg
2003-01-13 18:24:39 [9] DEBUG:   data: 69 64 3d 31 32
33 34 35   id=12345
2003-01-13 18:24:39 [9] DEBUG:   data: 36 37 38 38 30
20 48 54   67880 HT
2003-01-13 18:24:39 [9] DEBUG:   data: 54 50 2f 31 2e
31 0d 0a   TP/1.1..
2003-01-13 18:24:39 [9] DEBUG:   data: 48 6f 73 74 3a
20 31 39   Host: 19
2003-01-13 18:24:39 [9] DEBUG:   data: 32 2e 31 36 38
2e 34 30   2.168.40
2003-01-13 18:24:39 [9] DEBUG:   data: 2e 32 31 32 0d
0a 55 73   .212..Us
2003-01-13 18:24:39 [9] DEBUG:   data: 65 72 2d 41 67
65 6e 74   er-Agent
2003-01-13 18:24:39 [9] DEBUG:   data: 3a 20 4b 61 6e
6e 65 6c   : Kannel
2003-01-13 18:24:39 [9] DEBUG:   data: 2f 31 2e 32 2e
31 0d 0a   /1.2.1..
2003-01-13 18:24:39 [9] DEBUG:   data: 58 2d 4b 61 6e
6e 65 6c   X-Kannel
2003-01-13 18:24:39 [9] DEBUG:   data: 2d 46 72 6f 6d
3a 20 31   -From: 1
2003-01-13 18:24:39 [9] DEBUG:   data: 32 33 34 35 0d
0a 0d 0a   2345....
2003-01-13 18:24:39 [9] DEBUG: Octet string dump ends.
2003-01-13 18:24:39 [8] DEBUG: HTTP: Status line:
<HTTP/1.1 200 OK>
---------------------------------------------------------------------------------------------

if you notice you can find value of $type in the
logs.How will i know what bitmask did i got from tc35
if a particular msg was send? I only got the msgid and
i my dlr.php do was to interpret those bit map and
email a corresponding report to the sender.


Any idea how? Many thanks,


jmer


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.