From: S <s...@ka...> - 2004-03-23 17:32:13
|
Hi Steve, I found the registry bug in the libiax2/src/iax2.c, In function iax_header_to_event(...) is no POKE command handle, so I add this line and it work (only POKE case section) : case IAX_COMMAND_PING: /* Just immediately reply */ e->etype = IAX_EVENT_PING; e->ts = ts; e = schedule_delivery(e, ts); break; case IAX_COMMAND_POKE: /* SKA fix registry problem */ send_command_immediate( session, AST_FRAME_IAX, IAX_COMMAND_PONG, ts, NULL, 0, fh->iseqno); e = NULL; break; case IAX_COMMAND_PONG: Please add the POKE case section to libiax2/src/iax2.c line 2119 iax2 show peers skaAtHome 172.16.16.160 (D) 255.255.255.255 4569 OK (22 ms) I suspect there is still a other bug, because afer a while ( and 4 times refreshing registration ) I get a UNREACHABLE and a while later I get a REACHABLE Regards Stephan PS : This is the next stop to iax phone on a ARM RISC Zaurs PDA. PS : There are still some align patches for iax2-parser.c out... S wrote: > Hi IAX Guru's, > > I have the problem to register a iaxclient (iaxcomm or my own Zaurus > client) to asterisk. > Here is my observation on asterisk with iax2 debug on where a iaxclient > try to register : > > Rx --> REGREQ > TX <-- REGAUTH > Rx --> REGREQ > TX <-- POKE > TX <-- REGACK > RX --> ACK > RX --> ACK > TX <--POKE > > iax2 show peers > Name/Username Host Mask Port Status > muggel/muggel (Unspecified) (D) 255.255.255.255 0 UNKNOWN > skaAtHome 172.16.16.160 (D) 255.255.255.255 4569 UNREACHABLE > ska/ska (Unspecified) (D) 255.255.255.255 0 UNKNOWN > > > And here is the iax2 debug while one asterisk register on a second one. > RX --> REGREQ > TX <-- REGAUTH > RX --> REGREQ > TX <-- REGACK > RX --> ACK > TX <-- POKE > RX --> PONG > Peer 'XXX' is now REACHABLE! > TX <-- ACK > > The different between both traces is the POKE PONG sequence. > In the libiax2/src/iax.c file is no code for the POKE request ? > > Any comment's ? > What is going wrong ? > > Is there anyone able to register a iaxclient to asterisk ? > ( iax2 show peers --> Status OK ) > > Regards > > Stephan > > |