[asterisk-commits] mattf: trunk r114093 - /trunk/channels/chan_zap.c

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


Author: mattf
Date: Sat Apr 12 11:21:29 2008
New Revision: 114093

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

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=114093&r1=114092&r2=114093
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Sat Apr 12 11:21:29 2008
@@ -9140,14 +9140,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