Hello All,

I got the following architecture :
  - kannel 1.5.0 (compile with mysql from last SVN)
  - opensmppbox coming from the addons in the above svn

I want to have a kannel machine acting as a SMPP server and then sent traffic 
to other kannel gw.

SMPP client <-> kannel SMPP Server <-> Kannel GW[1..4]

The kannel SMPP server got connection to Kannel GW1 with following 
configuration :

group = smsc
smsc = http
smsc-id = mortimer
log-level = 1
log-file = "/var/log/kannel/mortimer.log"
system-type = kannel
port = 14000
send-url = http://10.0.1.5:13013/cgi-bin/sendsms
connect-allow-ip = "127.0.0.1;192.168.1.2;192.168.1.1;10.0.1.*"
smsc-username = ME
smsc-password = mypass 
allowed-smsc-id = france;general;probe;tt;mortimer
allowed-prefix = "336;+336;00336;337;+337;00337"
unified-prefix = "336,00336;337,00337"
reroute-dlr = true



The kannel SMPP server is acting as a load balancer between the final Kannel GW 
(one of them is 10.0.1.5).



my issue is the DLR generated by the kannel SMPP server is not showing the 
"http" scheme and then whatever I put the dlr-mask or not, I got similar error 
"DLR-URL misformed, rejected" from the Kannel GW1.

Do someone got similar issue ?
Do I miss something ?


Thanks in advance for your help.



here is the log of the errors :

2012-02-07 14:38:14 [25407] [18] DEBUG: Octet string dump ends.
2012-02-07 14:38:14 [25407] [17] DEBUG: send_msg: sending msg to boxc: <user1>
2012-02-07 14:38:14 [25407] [17] DEBUG: boxc_sender: sent message to <127.0.0.1>
2012-02-07 14:38:15 [25407] [16] DEBUG: boxc_receiver: got ack
2012-02-07 14:38:28 [25407] [11] DEBUG: Dumping 0 messages to store
2012-02-07 14:38:50 [25407] [16] DEBUG: boxc_receiver: sms received
2012-02-07 14:38:50 [25407] [16] DEBUG: send_msg: sending msg to boxc: <user1>
2012-02-07 14:38:50 [25407] [19] DEBUG: Queue contains 0 pending requests.
2012-02-07 14:38:50 [25407] [19] DEBUG: Parsing URL 
`http://10.0.1.5:13013/cgi-bin/sendsms?username=ME&password=mypass&to=%2B33699440666&text=Cpte+test+++%3Atest+fromSPIP11410&from=titext&coding=0&charset=UTF-8&smsc=general&dlr-url=a9fddbe0':
2012-02-07 14:38:50 [25407] [19] DEBUG:   Scheme: http://
2012-02-07 14:38:50 [25407] [19] DEBUG:   Host: 10.0.1.5
2012-02-07 14:38:50 [25407] [19] DEBUG:   Port: 13013
2012-02-07 14:38:50 [25407] [19] DEBUG:   Username: (null)
2012-02-07 14:38:50 [25407] [19] DEBUG:   Password: (null)
2012-02-07 14:38:50 [25407] [19] DEBUG:   Path: /cgi-bin/sendsms
2012-02-07 14:38:50 [25407] [19] DEBUG:   Query: 
username=ME&password=mypass&to=%2B33699440666&text=Cpte+titext+++%3Atest+fromSPIP11410&from=titext&coding=0&charset=UTF-8&smsc=general&dlr-url=a9fddbe0
2012-02-07 14:38:50 [25407] [19] DEBUG:   Fragment: (null)
2012-02-07 14:38:50 [25407] [19] DEBUG: HTTP: Reusing connection to 
`10.0.1.5:13013' (fd=64).
2012-02-07 14:38:50 [25407] [19] DEBUG: Socket connected at once
2012-02-07 14:38:50 [25407] [19] DEBUG: HTTP: Sending request:
2012-02-07 14:38:50 [25407] [19] DEBUG: Octet string at 0x8df3d00:
2012-02-07 14:38:50 [25407] [19] DEBUG:   len:  235
2012-02-07 14:38:50 [25407] [19] DEBUG:   size: 1024
2012-02-07 14:38:50 [25407] [19] DEBUG:   immutable: 0
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 47 45 54 20 2f 63 67 69 2d 62 
69 6e 2f 73 65 6e   GET /cgi-bin/sen
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 64 73 6d 73 3f 75 73 65 72 6e 
61 6d 65 3d 66 66   dsms?username=ME
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 66 66 66 74 26 70 61 73 73 77 
6f 72 64 3d 61 61   MEME&password=my
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 61 61 66 73 26 74 6f 3d 25 32 
42 33 33 36 39 39   pass&to=%2B33699
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 34 34 30 36 36 36 26 74 65 78 
74 3d 43 70 74 65   440666&text=Cpte
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 2b 66 67 68 69 70 74 2b 2b 2b 
25 33 41 74 65 73   +test+++++%3Ates
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 74 2b 66 72 6f 6d 53 50 49 50 
31 31 34 31 30 26   t+fromSPIP11410&
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 66 72 6f 6d 3d 74 69 74 65 78 
74 26 63 6f 64 69   from=titext&codi
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 6e 67 3d 30 26 63 68 61 72 73 
65 74 3d 55 54 46   ng=0&charset=UTF
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 2d 38 26 73 6d 73 63 3d 67 65 
6e 65 72 61 6c 26   -8&smsc=general&
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 64 6c 72 2d 75 72 6c 3d 61 39 
66 64 64 62 65 30   dlr-url=a9fddbe0
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 20 48 54 54 50 2f 31 2e 31 0d 
0a 48 6f 73 74 3a    HTTP/1.1..Host:
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 20 31 30 2e 30 2e 31 2e 35 3a 
31 33 30 31 33 0d    10.0.1.5:13013.
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 0a 43 6f 6e 6e 65 63 74 69 6f 
6e 3a 20 6b 65 65   .Connection: kee
2012-02-07 14:38:50 [25407] [19] DEBUG:   data: 70 2d 61 6c 69 76 65 0d 0a 0d 
0a                  p-alive....
2012-02-07 14:38:50 [25407] [19] DEBUG: Octet string dump ends.
2012-02-07 14:38:50 [25407] [18] DEBUG: HTTP: Status line: <HTTP/1.1 400 Bad 
Request>
2012-02-07 14:38:50 [25407] [18] DEBUG: HTTP: Received response:
2012-02-07 14:38:50 [25407] [18] DEBUG: Octet string at 0x8df3d00:
2012-02-07 14:38:50 [25407] [18] DEBUG:   len:  189
2012-02-07 14:38:50 [25407] [18] DEBUG:   size: 1024
2012-02-07 14:38:50 [25407] [18] DEBUG:   immutable: 0
2012-02-07 14:38:50 [25407] [18] DEBUG:   data: 53 65 72 76 65 72 3a 20 4b 61 
6e 6e 65 6c 2f 63   Server: Kannel/c
2012-02-07 14:38:50 [25407] [18] DEBUG:   data: 76 73 2d 32 30 31 30 30 32 31 
38 0d 0a 44 61 74   vs-20100218..Dat
2012-02-07 14:38:50 [25407] [18] DEBUG:   data: 65 3a 20 54 75 65 2c 20 30 37 
20 46 65 62 20 32   e: Tue, 07 Feb 2
2012-02-07 14:38:50 [25407] [18] DEBUG:   data: 30 31 32 20 31 33 3a 33 38 3a 
30 36 20 47 4d 54   012 13:38:06 GMT
2012-02-07 14:38:50 [25407] [18] DEBUG:   data: 0d 0a 43 6f 6e 74 65 6e 74 2d 
4c 65 6e 67 74 68   ..Content-Length
2012-02-07 14:38:50 [25407] [18] DEBUG:   data: 3a 20 33 33 0d 0a 43 6f 6e 74 
65 6e 74 2d 74 79   : 33..Content-ty
2012-02-07 14:38:50 [25407] [18] DEBUG:   data: 70 65 3a 20 74 65 78 74 2f 68 
74 6d 6c 0d 0a 50   pe: text/html..P
2012-02-07 14:38:50 [25407] [18] DEBUG:   data: 72 61 67 6d 61 3a 20 6e 6f 2d 
63 61 63 68 65 0d   ragma: no-cache.
2012-02-07 14:38:50 [25407] [18] DEBUG:   data: 0a 43 61 63 68 65 2d 43 6f 6e 
74 72 6f 6c 3a 20   .Cache-Control:
2012-02-07 14:38:50 [25407] [18] DEBUG:   data: 6e 6f 2d 63 61 63 68 65 0d 0a 
0d 0a 44 4c 52 2d   no-cache....DLR-
2012-02-07 14:38:50 [25407] [18] DEBUG:   data: 55 52 4c 20 66 69 65 6c 64 20 
6d 69 73 66 6f 72   URL field misfor
2012-02-07 14:38:50 [25407] [18] DEBUG:   data: 6d 65 64 2c 20 72 65 6a 65 63 
74 65 64            med, rejected
2012-02-07 14:38:50 [25407] [18] DEBUG: Octet string dump ends.
2012-02-07 14:39:08 [25407] [11] DEBUG: Dumping 0 messages to store
2012-02-07 14:39:50 [25407] [18] DEBUG: HTTP: Server closed connection, 
destroying it <10.0.1.5:13013:0::><0x8df3918><fd:64>.

Reply via email to