From: <sb...@us...> - 2007-10-18 16:36:18
|
Revision: 1212 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1212&view=rev Author: sbalea Date: 2007-10-18 09:36:17 -0700 (Thu, 18 Oct 2007) Log Message: ----------- Fix the registration issue that was reported by Andrea Suisani IAX_EVENT_NULL was interpreted as a registration reply and thus the registration session management got confused. Modified Paths: -------------- trunk/lib/iaxclient_lib.c Modified: trunk/lib/iaxclient_lib.c =================================================================== --- trunk/lib/iaxclient_lib.c 2007-10-18 16:33:21 UTC (rev 1211) +++ trunk/lib/iaxclient_lib.c 2007-10-18 16:36:17 UTC (rev 1212) @@ -1770,8 +1770,13 @@ #endif // first, see if this is an event for one of our calls. callNo = iaxc_find_call_by_session(e->session); - if ( callNo >= 0 ) + if ( e->etype == IAX_EVENT_NULL ) { + // Should we do something here? + // Right now we do nothing, just go with the flow + // and let the event be deallocated. + } else if ( callNo >= 0 ) + { iaxc_handle_network_event(e, callNo); } else if ( (reg = iaxc_find_registration_by_session(e->session)) != NULL ) { @@ -1791,11 +1796,6 @@ iaxci_usermsg(IAXC_STATUS, "Timeout for a non-existant session. Dropping", e->etype); - } else if ( e->etype == IAX_EVENT_NULL ) - { - // Should we do something here? - // Right now we do nothing, just go with the flow - // and let the event be deallocated. } else { iaxci_usermsg(IAXC_STATUS, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |