[asterisk-commits] russell: branch russell/iax2_performance r56423 - /team/russell/iax2_performa...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Feb 23 14:09:08 MST 2007


Author: russell
Date: Fri Feb 23 15:09:07 2007
New Revision: 56423

URL: http://svn.digium.com/view/asterisk?view=rev&rev=56423
Log:
Fix a deadlock

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

Modified: team/russell/iax2_performance/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/team/russell/iax2_performance/channels/chan_iax2.c?view=diff&rev=56423&r1=56422&r2=56423
==============================================================================
--- team/russell/iax2_performance/channels/chan_iax2.c (original)
+++ team/russell/iax2_performance/channels/chan_iax2.c Fri Feb 23 15:09:07 2007
@@ -6657,7 +6657,9 @@
 		f.subclass != IAX_COMMAND_TXCNT &&		/* for attended transfer */
 		f.subclass != IAX_COMMAND_TXACC) {		/* for attended transfer */
 		iaxs[fr->callno]->peercallno = (unsigned short)(ntohs(mh->callno) & ~IAX_FLAG_FULL);
+		ast_mutex_unlock(&iaxsl[fr->callno]);
 		hash_on_peer(iaxs[fr->callno]);
+		ast_mutex_lock(&iaxsl[fr->callno]);
 	}
 	if (ntohs(mh->callno) & IAX_FLAG_FULL) {
 		if (option_debug  && iaxdebug)



More information about the asterisk-commits mailing list