From: <an...@mo...> - 2004-09-19 22:20:23
|
The poke_reply is not implemented at libiax2, even at cvs head... Is there a special reason for this? I've implemented this here, and now qualifying iaxcomm users is possible, I think it helps me to test the connection quality in some situations, and I see no reason to not do this... asterisk*CLI> iax2 show peers Name/Username Host Mask Port Status 4596/Jara 172.17.22.200 (D) 255.255.255.255 4569 OK (15 ms) 2520/Hideo (Unspecified) (D) 255.255.255.255 0 UNKNOWN 3569/Simao 172.21.35.83 (D) 255.255.255.255 4569 OK (4 ms) (...) (4596 and 3569 are iaxcomm clients) You think there is a problem implementing this at libiax2? and qualifying Iax clients? What I did here: *** at iax.c (libiax2) ** added near line 962 static int iax_send_poke_reply(struct iax_session *session, unsigned int ts); ** added near line 989: case IAX_EVENT_POKE: event->etype = IAX_EVENT_PONG; iax_send_poke_reply(event->session, event->ts); iax_event_free(event); break; ** added near line 1142 static int iax_send_poke_reply(struct iax_session *session, unsigned int ts) { return send_command_final(session, AST_FRAME_IAX, IAX_COMMAND_PONG, ts, NULL, 0, -1); } I think it is all... Let me know if I forget something... Or if it was made the wrong way... It's working here, then, if it not work for you, maybe I forget to put something in this mail... I can try generate a patch if someone became interested, but I think it's not necessary, the idea is very simple.... Thanks and []'s Moreiras. -------------------------------------------------- Estadão - Internet com alta qualidade de conexão. GANHE ACESSO GRATUITO à Internet do Estadão em http://www.estadao.com.br/discador/ -------------------------------------------------- |