[asterisk-commits] russell: branch russell/iax2_find_callno r114864 - /team/russell/iax2_find_ca...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 29 17:15:33 CDT 2008


Author: russell
Date: Tue Apr 29 17:15:33 2008
New Revision: 114864

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114864
Log:
Let's play a game called "don't remove and re-insert the pvt struct into the
hash table on every single frame"

Modified:
    team/russell/iax2_find_callno/channels/chan_iax2.c

Modified: team/russell/iax2_find_callno/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/team/russell/iax2_find_callno/channels/chan_iax2.c?view=diff&rev=114864&r1=114863&r2=114864
==============================================================================
--- team/russell/iax2_find_callno/channels/chan_iax2.c (original)
+++ team/russell/iax2_find_callno/channels/chan_iax2.c Tue Apr 29 17:15:33 2008
@@ -7989,13 +7989,7 @@
 	if (!inaddrcmp(&sin, &iaxs[fr->callno]->addr) && !minivid &&
 		f.subclass != IAX_COMMAND_TXCNT &&		/* for attended transfer */
 		f.subclass != IAX_COMMAND_TXACC) {		/* for attended transfer */
-		if (iaxs[fr->callno]->peercallno) {
-			remove_by_peercallno(iaxs[fr->callno]);
-		}
 		iaxs[fr->callno]->peercallno = (unsigned short) (ntohs(mh->callno) & ~IAX_FLAG_FULL);
-		if (iaxs[fr->callno]->peercallno) {
-			store_by_peercallno(iaxs[fr->callno]);
-		}
 	}
 	if (ntohs(mh->callno) & IAX_FLAG_FULL) {
 		if (iaxdebug)




More information about the asterisk-commits mailing list