[Asterisk-cvs] asterisk pbx.c,1.96.2.3,1.96.2.4

malcolmd at lists.digium.com malcolmd at lists.digium.com
Thu Feb 26 12:47:01 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv8190

Modified Files:
      Tag: v1-0_stable
	pbx.c 
Log Message:
Fix Bug # 981


Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.96.2.3
retrieving revision 1.96.2.4
diff -u -d -r1.96.2.3 -r1.96.2.4
--- pbx.c	23 Feb 2004 05:37:01 -0000	1.96.2.3
+++ pbx.c	26 Feb 2004 17:35:59 -0000	1.96.2.4
@@ -3535,12 +3535,13 @@
 				tmpchan->priority = priority;
 			else
 				tmpchan->priority = chan->priority;
-			if (needlock)
-				ast_mutex_unlock(&chan->lock);
 			
 			/* Masquerade into temp channel */
 			ast_channel_masquerade(tmpchan, chan);
 			
+			if (needlock)
+				ast_mutex_unlock(&chan->lock);
+				
 			/* Make the masquerade happen by reading a frame from the tmp channel */
 			f = ast_read(tmpchan);
 			if (f)




More information about the svn-commits mailing list