Hi list. 

I have some problem with using kannel as a wap gateway. I have two machines, 
one with a CVS snapshot of about a month ago and one with a recent CVS 
snapshot (let's say - today). now I'm using a kyocera phone to access the 
gateway, and it works with the old version but not with the new one. For the 
life of me I can't figure why. 

From the logs it looks like a problem in the WTP state machine - on the 
machine that works I get this:
2004-05-05 11:27:29 [6] DEBUG: WTP: Created WTPRespMachine 0x4999fb48 (1925)
2004-05-05 11:27:29 [6] DEBUG: WTP: resp_machine 1925, state LISTEN, event 
RcvInvoke.
2004-05-05 11:27:29 [6] DEBUG: WTP 1925: New state INVOKE_RESP_WAIT
2004-05-05 11:27:29 [1] DEBUG: WSP: Created WSPMachine 0x499ad158
2004-05-05 11:27:29 [1] DEBUG: WSP: machine 0x499ad158, state NULL_SESSION, 
event TR-Invoke.ind
2004-05-05 11:27:29 [6] DEBUG: WTP: resp_machine 1925, state INVOKE_RESP_WAIT, 
event TR-Invoke.res.
2004-05-05 11:27:29 [6] DEBUG: WTP 1925: New state RESULT_WAIT
2004-05-05 11:27:29 [1] DEBUG: WSP: decoding headers:
<dump of packet from phone>
2004-05-05 11:27:29 [1] INFO: Returning to code page 1 (default).
2004-05-05 11:27:29 [1] DEBUG: WSP: decoded headers:
<decoded headers from packet>
2004-05-05 11:27:29 [1] DEBUG: WSP: End of decoded headers.
2004-05-05 11:27:29 [1] DEBUG: WSP 582: New state CONNECTING
2004-05-05 11:27:29 [1] DEBUG: WSP: machine 0x499ad158, state CONNECTING, 
event S-Connect.res

All this is the same on both machines. then the one that works say this:

2004-05-05 11:27:29 [6] DEBUG: WTP: resp_machine 1925, state RESULT_WAIT, 
event TR-Result.req.
2004-05-05 11:27:29 [1] DEBUG: WSP 582: New state CONNECTING_2
2004-05-05 11:27:29 [6] DEBUG: WTP 1925: New state RESULT_RESP_WAIT
2004-05-05 11:27:30 [6] DEBUG: WTP: resp_machine 1925, state RESULT_RESP_WAIT, 
event RcvAck.
2004-05-05 11:27:30 [6] DEBUG: WTP 1925: New state LISTEN
2004-05-05 11:27:30 [6] DEBUG: WTP: Destroying WTPRespMachine 0x4999fb48 
(1925)
2004-05-05 11:27:30 [1] DEBUG: WSP: machine 0x499ad158, state CONNECTING_2, 
event TR-Result.cnf
2004-05-05 11:27:30 [1] DEBUG: WSP 582: New state CONNECTED
2004-05-05 11:27:30 [6] DEBUG: WTP: Created WTPRespMachine 0x499bd0a8 (1926)
2004-05-05 11:27:30 [6] DEBUG: WTP: resp_machine 1926, state LISTEN, event 
RcvInvoke.
2004-05-05 11:27:30 [6] DEBUG: WTP 1926: New state INVOKE_RESP_WAIT

and it goes on fetching HTTP request and everything is ok. OTOH the newer 
version say this:


2004-05-05 14:01:59 [6459] [1] DEBUG: WSP: Mapping `Encoding-Version', WSP 1.2 
to 0xffffffff.
2004-05-05 14:01:59 [6464] [6] DEBUG: WTP: resp_machine 0, state RESULT_WAIT, 
event TR-Result.req.
2004-05-05 14:01:59 [6459] [1] DEBUG: WSP 0: New state CONNECTING_2
2004-05-05 14:01:59 [6464] [6] DEBUG: WTP 0: New state RESULT_RESP_WAIT
2004-05-05 14:02:04 [6464] [6] DEBUG: WTP: resp_machine 0, state 
RESULT_RESP_WAIT, event RcvInvoke.
2004-05-05 14:02:04 [6464] [6] DEBUG: WTP 0: New state RESULT_RESP_WAIT
2004-05-05 14:02:06 [6462] [4] DEBUG: Timeout-R elapsed.
2004-05-05 14:02:06 [6464] [6] DEBUG: WTP: resp_machine 0, state 
RESULT_RESP_WAIT, event Timeout-R.
2004-05-05 14:02:06 [6464] [6] DEBUG: WTP 0: New state RESULT_RESP_WAIT
2004-05-05 14:02:12 [6464] [6] DEBUG: WTP: resp_machine 0, state 
RESULT_RESP_WAIT, event RcvInvoke.
2004-05-05 14:02:12 [6464] [6] DEBUG: WTP 0: New state RESULT_RESP_WAIT
2004-05-05 14:02:13 [6462] [4] DEBUG: Timeout-R elapsed.

And repeats the last 5 lines over and over and over again until I get bored 
and turn off the phone. 
I don't know much about Kannel's wap internals but it looks like a timeout 
somewhere , but 2 seconds is really not that long. I tried to compare the 
code from both versions but I can't put my finger on what might be causing 
the probelm - mostly as there are about 20 lines of codes changed between 
both versions, mostly to do with whitespace and other non-crucial stuff.

Please tell me what am I missing

-- 
Oded Arbel
m-Wise mobile solutions
[EMAIL PROTECTED]

+972-9-9611212 (204)
+972-54-7340014

::..
Leeloo : "Everything you create, you use to destroy."
Korben Dallas : "Yeah, we call it human nature."
        -- from "The Fifth Element"

Reply via email to