[asterisk-commits] moy: branch moy/mfcr2 r133160 - /team/moy/mfcr2/channels/chan_zap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 23 14:35:20 CDT 2008


Author: moy
Date: Wed Jul 23 14:35:19 2008
New Revision: 133160

URL: http://svn.digium.com/view/asterisk?view=rev&rev=133160
Log:
fixed nasty deadlock due to my stupidity in zt_r2_on_call_disconnected

Modified:
    team/moy/mfcr2/channels/chan_zap.c

Modified: team/moy/mfcr2/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/moy/mfcr2/channels/chan_zap.c?view=diff&rev=133160&r1=133159&r2=133160
==============================================================================
--- team/moy/mfcr2/channels/chan_zap.c (original)
+++ team/moy/mfcr2/channels/chan_zap.c Wed Jul 23 14:35:19 2008
@@ -1492,6 +1492,7 @@
 			ast_queue_hangup_with_cause(p->owner, zt_r2_cause_to_ast_cause(cause));
 		}	
 	} else {
+		ast_mutex_unlock(&p->lock);
 		/* no owner, therefore we can't use zt_hangup to disconnect, do it right now */
 		openr2_chan_disconnect_call(r2chan, OR2_CAUSE_NORMAL_CLEARING);
 	}




More information about the asterisk-commits mailing list