[Asterisk-cvs] asterisk pbx.c,1.100,1.101
malcolmd at lists.digium.com
malcolmd at lists.digium.com
Thu Feb 26 12:40:54 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv8150
Modified Files:
pbx.c
Log Message:
Fix Bug # 981
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- pbx.c 23 Feb 2004 05:37:24 -0000 1.100
+++ pbx.c 26 Feb 2004 17:29:49 -0000 1.101
@@ -3538,12 +3538,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