[asterisk-commits] mattf: branch 1.6.0 r114095 - /branches/1.6.0/channels/chan_zap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Apr 12 11:22:44 CDT 2008


Author: mattf
Date: Sat Apr 12 11:22:44 2008
New Revision: 114095

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114095
Log:
Make sure linkset is locked exiting ss7_start_call

Modified:
    branches/1.6.0/channels/chan_zap.c

Modified: branches/1.6.0/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/channels/chan_zap.c?view=diff&rev=114095&r1=114094&r2=114095
==============================================================================
--- branches/1.6.0/channels/chan_zap.c (original)
+++ branches/1.6.0/channels/chan_zap.c Sat Apr 12 11:22:44 2008
@@ -9141,14 +9141,13 @@
 
 	ast_mutex_unlock(&linkset->lock);
 	c = zt_new(p, AST_STATE_RING, 1, SUB_REAL, law, 0);
+	ast_mutex_lock(&linkset->lock);
 
 	if (!c) {
 		ast_log(LOG_WARNING, "Unable to start PBX on CIC %d\n", p->cic);
 		return;
 	} else
 		ast_verb(3, "Accepting call to '%s' on CIC %d\n", p->exten, p->cic);
-
-	ast_mutex_lock(&linkset->lock);
 
 	zt_enable_ec(p);
 




More information about the asterisk-commits mailing list