Re: Problem with smsbox

"Alexander Malysh" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi,

just try to specify URL and not only cgi values, e.g.

	http://localhost:port/xxxxx

where xxxx are you cgi vars.


Am 11.01.2007, 11:52 Uhr, schrieb migital <[email protected]>:

>
> I am facing some problem when i updated my code to use kannel1.4.1.  
> Earlier I
> was using kannel1.2.1. And everything was working fine.
>
> Following are the logs which i got when i was using Kannel.1.2.1. (It was
> working fine and message gets delivered on the phone)
>
> 2007-01-11 05:35:16 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms>
> from <127.0.0.1>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: XML: <<?xml version="1.0"
> encoding="UTF-8"?>
> <message><submit><da><number>919810301478</number></da><oa><number>14781</number></oa><ud>THIS
> IS FOR
> TESTING</ud><statusrequest><dlr-mask>31</dlr-mask><dlr-url>O-0-726340-201268-2-1-US2-SJOB=6
> SEG=1-E5073153</dlr-url></statusrequest><from><user>tester</user><password>foobar</password></from><to>smpp</to><vp><delay>2007-01-14T10:37:27Z</delay></vp></submit></message>>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <from> value
> <<user>tester</user><password>foobar</password>>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <user> value <tester>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <password> value <foobar>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <da> value
> <<number>919810301478</number>>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <number> value  
> <919810301478>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <oa> value
> <<number>14781</number>>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <number> value <14781>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <to> value <smpp>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <statusrequest> value
> <<dlr-mask>31</dlr-mask><dlr-url>O-0-726340-201268-2-1-US2-SJOB=6
> SEG=1-E5073153</dlr-url>>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <dlr-mask> value <31>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <dlr-url> value
> <O-0-726340-201268-2-1-US2-SJOB=6 SEG=1-E5073153>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <vp> value
> <<delay>2007-01-14T10:37:27Z</delay>>
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <delay> value
> <2007-01-14T10:37:27Z>
> 2007-01-11 05:35:16 [3] DEBUG:  Source 2007-01-14T10:37:27Z Parsed Sun,  
> 14
> Jan 2007 10:37:27 GMT date
> 2007-01-11 05:35:16 [3] DEBUG: XMLParsing: tag <ud> value <THIS IS FOR
> TESTING>
> 2007-01-11 05:35:16 [3] DEBUG: validity 1168771047 now 1168511716 delta
> 259331
> 2007-01-11 05:35:16 [3] INFO: sendsms used by <tester>
> 2007-01-11 05:35:16 [3] INFO: sendsms sender:<tester:14781> (127.0.0.1)
> to:<919810301478> msg:<THIS IS FOR TESTING>
> 2007-01-11 05:35:16 [3] DEBUG: message length 19, sending 1 messages
> 2007-01-11 05:35:16 [3] DEBUG: Status: 202 Answer: <Sent.>
> 2007-01-11 05:35:16 [3] DEBUG: HTTP: Resetting HTTPClient for  
> `127.0.0.1'.
> 2007-01-11 05:35:16 [1] DEBUG: HTTP: Destroying HTTPClient area af280.
> 2007-01-11 05:35:16 [1] DEBUG: HTTP: Destroying HTTPClient for  
> `127.0.0.1'.
> 2007-01-11 05:35:16 [4] INFO: Starting delivery report <tester> from
> <919810301478>
> 2007-01-11 05:35:16 [4] DEBUG: Msg object at bfb48:
> 2007-01-11 05:35:16 [4] DEBUG:  type: sms
> 2007-01-11 05:35:16 [4] DEBUG:  sms.sender:
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string at bdd68:
> 2007-01-11 05:35:16 [4] DEBUG:    len:  12
> 2007-01-11 05:35:16 [4] DEBUG:    size: 13
> 2007-01-11 05:35:16 [4] DEBUG:    immutable: 0
> 2007-01-11 05:35:16 [4] DEBUG:    data: 39 31 39 38 31 30 33 30    
> 91981030
> 2007-01-11 05:35:16 [4] DEBUG:    data: 31 34 37 38               1478
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string dump ends.
> 2007-01-11 05:35:16 [4] DEBUG:  sms.receiver:
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string at bdd20:
> 2007-01-11 05:35:16 [4] DEBUG:    len:  5
> 2007-01-11 05:35:16 [4] DEBUG:    size: 6
> 2007-01-11 05:35:16 [4] DEBUG:    immutable: 0
> 2007-01-11 05:35:16 [4] DEBUG:    data: 30 33 33 33 30            14781
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string dump ends.
> 2007-01-11 05:35:16 [4] DEBUG:  sms.udhdata:
> 2007-01-11 05:35:16 [4] DEBUG:  sms.msgdata:
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string at bdcf0:
> 2007-01-11 05:35:16 [4] DEBUG:    len:  11
> 2007-01-11 05:35:16 [4] DEBUG:    size: 12
> 2007-01-11 05:35:16 [4] DEBUG:    immutable: 0
> 2007-01-11 05:35:16 [4] DEBUG:    data: 30 78 30 30 30 30 30 30    
> 0x000000
> 2007-01-11 05:35:16 [4] DEBUG:    data: 30 30 2f                  00/
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string dump ends.
> 2007-01-11 05:35:16 [4] DEBUG:  sms.time: 1168511716
> 2007-01-11 05:35:16 [4] DEBUG:  sms.smsc_id:
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string at bdcd8:
> 2007-01-11 05:35:16 [4] DEBUG:    len:  6
> 2007-01-11 05:35:16 [4] DEBUG:    size: 7
> 2007-01-11 05:35:16 [4] DEBUG:    immutable: 0
> 2007-01-11 05:35:16 [4] DEBUG:    data: 70 67 73 6d 70 70         pgsmpp
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string dump ends.
> 2007-01-11 05:35:16 [4] DEBUG:  sms.service:
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string at bde70:
> 2007-01-11 05:35:16 [4] DEBUG:    len:  6
> 2007-01-11 05:35:16 [4] DEBUG:    size: 7
> 2007-01-11 05:35:16 [4] DEBUG:    immutable: 0
> 2007-01-11 05:35:16 [4] DEBUG:    data: 74 65 73 74 65 72         tester
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string dump ends.
> 2007-01-11 05:35:16 [4] DEBUG:  sms.account:
> 2007-01-11 05:35:16 [4] DEBUG:  sms.id: 0
> 2007-01-11 05:35:16 [4] DEBUG:  sms.sms_type: 3
> 2007-01-11 05:35:16 [4] DEBUG:  sms.mclass: 0
> 2007-01-11 05:35:16 [4] DEBUG:  sms.mwi: 0
> 2007-01-11 05:35:16 [4] DEBUG:  sms.coding: 0
> 2007-01-11 05:35:16 [4] DEBUG:  sms.compress: 0
> 2007-01-11 05:35:16 [4] DEBUG:  sms.validity: 0
> 2007-01-11 05:35:16 [4] DEBUG:  sms.deferred: 0
> 2007-01-11 05:35:16 [4] DEBUG:  sms.dlr_mask: 12
> 2007-01-11 05:35:16 [4] DEBUG:  sms.dlr_url:
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string at be708:
> 2007-01-11 05:35:16 [4] DEBUG:    len:  47
> 2007-01-11 05:35:16 [4] DEBUG:    size: 48
> 2007-01-11 05:35:16 [4] DEBUG:    immutable: 0
> 2007-01-11 05:35:16 [4] DEBUG:    data: 4f 2d 30 2d 37 32 36 33    
> O-0-7263
> 2007-01-11 05:35:16 [4] DEBUG:    data: 34 30 2d 32 30 31 32 36    
> 40-20126
> 2007-01-11 05:35:16 [4] DEBUG:    data: 38 2d 32 2d 31 2d 55 53    
> 8-2-1-US
> 2007-01-11 05:35:16 [4] DEBUG:    data: 32 2d 53 4a 4f 42 3d 36    
> 2-SJOB=6
> 2007-01-11 05:35:16 [4] DEBUG:    data: 20 53 45 47 3d 31 2d 45     
> SEG=1-E
> 2007-01-11 05:35:16 [4] DEBUG:    data: 35 30 37 33 31 35 33      5073153
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string dump ends.
> 2007-01-11 05:35:16 [4] DEBUG:  sms.pid: 0
> 2007-01-11 05:35:16 [4] DEBUG:  sms.alt_dcs: 0
> 2007-01-11 05:35:16 [4] DEBUG:  sms.rpi: 0
> 2007-01-11 05:35:16 [4] DEBUG:  sms.charset:
> 2007-01-11 05:35:16 [4] DEBUG:  sms.messageid:
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string at be798:
> 2007-01-11 05:35:16 [4] DEBUG:    len:  9
> 2007-01-11 05:35:16 [4] DEBUG:    size: 10
> 2007-01-11 05:35:16 [4] DEBUG:    immutable: 0
> 2007-01-11 05:35:16 [4] DEBUG:    data: 34 33 31 38 30 32 39 31    
> 43180291
> 2007-01-11 05:35:16 [4] DEBUG:    data: 36                        6
> 2007-01-11 05:35:16 [4] DEBUG:  Octet string dump ends.
> 2007-01-11 05:35:16 [4] DEBUG:  sms.end_time:
> 2007-01-11 05:35:16 [4] DEBUG:  sms.count_seq: 1
> 2007-01-11 05:35:16 [4] DEBUG:  sms.num_seq: 1
> 2007-01-11 05:35:16 [4] DEBUG: Msg object ends.
> 2007-01-11 05:35:22 [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
> 2007-01-11 05:35:22 [3] INFO: smsbox: Got HTTP request </cgi-bin/getsms>
> from <127.0.0.1>
> 2007-01-11 05:35:22 [3] DEBUG: XMLParsing: XML: <<?xml version="1.0"
> encoding="UTF-8"?>
> <message><submit><from><user>tester</user><password>foobar</password></from></submit></message>>
> 2007-01-11 05:35:22 [3] DEBUG: XMLParsing: tag <from> value
> <<user>tester</user><password>foobar</password>>
> 2007-01-11 05:35:22 [3] DEBUG: XMLParsing: tag <user> value <tester>
> 2007-01-11 05:35:22 [3] DEBUG: XMLParsing: tag <password> value <foobar>
> 2007-01-11 05:35:22 [3] INFO: sendsms used by <tester>
> 2007-01-11 05:35:22 [3] DEBUG: step1
> 2007-01-11 05:35:22 [3] DEBUG: Status: 202 Answer: <<?xml version="1.0"
> encoding="UTF-8"?>
> <message><submit><messageid>431802916</messageid><opaque_str>O-0-726340-201268-2-1-US2-SJOB=6
> SEG=1-E5073153</opaque_str>
> <delivery_status>12</delivery_status>
>                 <time>1168511716</time>
>                 <count_seq>1</count_seq>
>                 <num_seq>1</num_seq>
> </submit></message>>
> 2007-01-11 05:35:22 [3] DEBUG: HTTP: Resetting HTTPClient for  
> `127.0.0.1'.
> 2007-01-11 05:35:22 [1] DEBUG: HTTP: Destroying HTTPClient area af280.
> 2007-01-11 05:35:22 [1] DEBUG: HTTP: Destroying HTTPClient for  
> `127.0.0.1'.
> 2007-01-11 05:35:22 [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
> 2007-01-11 05:35:23 [3] INFO: smsbox: Got HTTP request </cgi-bin/getsms>
> from <127.0.0.1>
> 2007-01-11 05:35:23 [3] DEBUG: XMLParsing: XML: <<?xml version="1.0"
> encoding="UTF-8"?>
> <message><submit><from><user>tester</user><password>foobar</password></from></submit></message>>
> 2007-01-11 05:35:23 [3] DEBUG: XMLParsing: tag <from> value
> <<user>tester</user><password>foobar</password>>
> 2007-01-11 05:35:23 [3] DEBUG: XMLParsing: tag <user> value <tester>
> 2007-01-11 05:35:23 [3] DEBUG: XMLParsing: tag <password> value <foobar>
> 2007-01-11 05:35:23 [3] INFO: sendsms used by <tester>
> 2007-01-11 05:35:23 [3] DEBUG: step1
> 2007-01-11 05:35:23 [3] DEBUG: No messages found.
> 2007-01-11 05:35:23 [3] DEBUG: Status: 202 Answer: <(null)>
> 2007-01-11 05:35:23 [3] DEBUG: HTTP: Resetting HTTPClient for  
> `127.0.0.1'.
> 2007-01-11 05:35:23 [1] DEBUG: HTTP: Destroying HTTPClient area af280.
>
>
>
>
>
> Following are the logs which i am getting i am using kannel1.4.1
>
>
> 2007-01-11 05:46:29 [3055] [2] DEBUG: HTTP: Creating HTTPClient for
> `127.0.0.1'.
> 2007-01-11 05:46:29 [3055] [2] DEBUG: HTTP: Created HTTPClient area  
> c4d60.
> 2007-01-11 05:46:29 [3055] [3] INFO: smsbox: Got HTTP request
> </cgi-bin/sendsms> from <127.0.0.1>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: XML: <<?xml  
> version="1.0"
> encoding="UTF-8"?>
> <message><submit><da><number>919810301478</number></da><oa><number>14781</number></oa><ud>THIS
> IS FOR
> TESTING</ud><statusrequest><dlr-mask>31</dlr-mask><dlr-url>O-0-726340-201272-2-1-US2-SJOB=6
> SEG=1-CE8AE3CD</dlr-url></statusrequest><from><user>tester</user><password>foobar</password></from><to>smpp</to><vp><delay>2007-01-14T10:48:41Z</delay></vp></submit></message>>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <from> value
> <<user>tester</user><password>foobar</password>>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <user> value  
> <tester>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <password> value
> <foobar>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <oa> value
> <<number>14781</number>>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <number> value  
> <14781>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <da> value
> <<number>919810301478</number>>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <number> value
> <919810301478>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <to> value <smpp>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <statusrequest>  
> value
> <<dlr-mask>31</dlr-mask><dlr-url>O-0-726340-201272-2-1-US2-SJOB=6
> SEG=1-CE8AE3CD</dlr-url>>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <dlr-mask> value  
> <31>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <dlr-url> value
> <O-0-726340-201272-2-1-US2-SJOB=6 SEG=1-CE8AE3CD>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <vp> value
> <<delay>2007-01-14T10:48:41Z</delay>>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <delay> value
> <2007-01-14T10:48:41Z>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: XMLParsing: tag <ud> value <THIS IS
> FOR TESTING>
> 2007-01-11 05:46:29 [3055] [3] INFO: sendsms used by <tester>
> 2007-01-11 05:46:29 [3055] [3] INFO: sendsms sender:<tester:14781>
> (127.0.0.1) to:<multi-cast> msg:<THIS IS FOR TESTING>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: Status: 400 Answer: <DLR-URL field
> misformed 2, rejected>
> 2007-01-11 05:46:29 [3055] [3] DEBUG: HTTP: Resetting HTTPClient for
> `127.0.0.1'.
> 2007-01-11 05:46:29 [3055] [1] DEBUG: HTTP: Destroying HTTPClient area
> c4d60.
> 2007-01-11 05:46:29 [3055] [1] DEBUG: HTTP: Destroying HTTPClient for
> `127.0.0.1'.
>
>
> Please analyze and suggest.
>
>
> Thanks,



-- 
Thanks,
Alex
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.