POST /cgi-bin/sendsms HTTP/1.1
Content-Type: text/xml
Connection: Keep-Alive
User-Agent: Jakarta Commons-HttpClient/2.0.2
Host: 192.168.1.145:13013
Content-Length: 182
<message><submit><da><number>+584167276448</number><number>+584127239834</number></da><ud>Texto del mensaje</ud><from><user>test</user><pass>coquimbo</pass></from></submit></message>
HTTP/1.1 202 Accepted
Server: Kannel/cvs-20050919
Content-Length: 52
Content-type: text/html
Pragma: no-cache
Cache-Control: no-cache
HTTP/1.1 202 Accepted
Server: Kannel/cvs-20050919
Content-Length: 52
Content-type: text/html
Pragma: no-cache
Cache-Control: no-cache
and with false it hangs waiting for the second message send (that doesn't occurs).
The smsbox.log with full panic when the inmediate reply is true is:
2005-09-23 11:09:40 [17504] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2005-09-23 11:09:40 [17504] [2] DEBUG: HTTP: Created HTTPClient area 0x814fe30.
2005-09-23 11:09:42 [17505] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <
127.0.0.1>
2005-09-23 11:09:42 [17505] [3] DEBUG: XMLParsing: XML: <<message><submit><da><number>+584167276448</number><number>+584127239834</number></>
2005-09-23 11:09:42 [17505] [3] DEBUG: XMLParsing: tag <from> value <<user>test</user><pass>coquimbo</pass>>
2005-09-23 11:09:42 [17505] [3] DEBUG: XMLParsing: tag <user> value <test>
2005-09-23 11:09:42 [17505] [3] DEBUG: XMLParsing: tag <pass> value <coquimbo>
2005-09-23 11:09:42 [17505] [3] DEBUG: XMLParsing: tag <da> value <<number>+584167276448</number><number>+584127239834</number>>
2005-09-23 11:09:42 [17505] [3] DEBUG: XMLParsing: tag <number> value <+584167276448>
2005-09-23 11:09:42 [17505] [3] DEBUG: XMLParsing: tag <ud> value <Texto del mensaje>
2005-09-23 11:09:42 [17505] [3] INFO: sendsms used by <test>
2005-09-23 11:09:42 [17505] [3] INFO: sendsms sender:<test:+584126244578> (127.0.0.1) to:<multi-cast> msg:<Texto del mensaje>
2005-09-23 11:09:42 [17505] [3] DEBUG: message length 17, sending 1 messages
2005-09-23 11:09:42 [17505] [3] DEBUG: Status: 202 Answer: <Sent.>
2005-09-23 11:09:42 [17505] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
2005-09-23 11:09:42 [17505] [3] PANIC: gwlib/octstr.c:2355: seems_valid_real: Assertion `ostr->data != NULL' failed. (Called from gwlib/octs)
2005-09-23 11:09:42 [17505] [3] PANIC: ./smsbox(gw_panic+0x19a) [0x808015b]
2005-09-23 11:09:42 [17505] [3] PANIC: ./smsbox [0x8086fa2]
2005-09-23 11:09:42 [17505] [3] PANIC: ./smsbox(octstr_destroy+0x2f) [0x8081641]
2005-09-23 11:09:42 [17505] [3] PANIC: ./smsbox [0x805af7d]
2005-09-23 11:09:42 [17505] [3] PANIC: ./smsbox [0x8075dae]
2005-09-23 11:09:42 [17505] [3] PANIC: /lib/libpthread.so.0 [0xb7f0b2fe]
2005-09-23 11:09:42 [17505] [3] PANIC: /lib/libc.so.6(__clone+0x5a) [0xb7cb4ada]
but if the inmediate-reply is false, the log is
2005-09-23 11:15:03 [17529] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2005-09-23 11:15:03 [17529] [2] DEBUG: HTTP: Created HTTPClient area 0x814fe30.
2005-09-23 11:15:14 [17530] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <
127.0.0.1>
2005-09-23 11:15:14 [17530] [3] DEBUG: XMLParsing: XML: <<message><submit><da><number>+584167276448</number><number>+584127239834</number></da><ud>Texto del mensaje</ud><from><user>test</user><pass>coquimbo</pass></from></submit></message>>
2005-09-23 11:15:14 [17530] [3] DEBUG: XMLParsing: tag <from> value <<user>test</user><pass>coquimbo</pass>>
2005-09-23 11:15:14 [17530] [3] DEBUG: XMLParsing: tag <user> value <test>
2005-09-23 11:15:14 [17530] [3] DEBUG: XMLParsing: tag <pass> value <coquimbo>
2005-09-23 11:15:14 [17530] [3] DEBUG: XMLParsing: tag <da> value <<number>+584167276448</number><number>+584127239834</number>>
2005-09-23 11:15:14 [17530] [3] DEBUG: XMLParsing: tag <number> value <+584167276448>
2005-09-23 11:15:14 [17530] [3] DEBUG: XMLParsing: tag <ud> value <Texto del mensaje>
2005-09-23 11:15:14 [17530] [3] INFO: sendsms used by <test>
2005-09-23 11:15:14 [17530] [3] INFO: sendsms sender:<test:+584126244578> (127.0.0.1) to:<multi-cast> msg:<Texto del mensaje>
2005-09-23 11:15:14 [17530] [3] DEBUG: message length 17, sending 1 messages
2005-09-23 11:15:14 [17530] [3] DEBUG: Stored UUID 446c0b51-c4a0-48a3-8654-00d5a6d9262e
2005-09-23 11:15:14 [17530] [3] DEBUG: Status: 202 Answer: <Sent.>
2005-09-23 11:15:14 [17530] [3] DEBUG: Delayed reply - wait for bearerbox
2005-09-23 11:15:14 [17526] [0] DEBUG: Got ACK (0) of 446c0b51-c4a0-48a3-8654-00d5a6d9262e
2005-09-23 11:15:14 [17526] [0] DEBUG: No client - multi-send or ACK to pull-reply
I'm clueless for the reason that kannel doesn't send the second message and hangs. The funny part of all is that you do the same thing, but instead of using a POST method, use a GET method, kannel sends both messages, but don't return anything.
Gelvis
