[Asterisk-cvs] asterisk/channels chan_zap.c,1.272,1.273

markster at lists.digium.com markster at lists.digium.com
Thu Jun 17 11:05:46 CDT 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Implement proper locking on INFO_RECEIVED


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.272
retrieving revision 1.273
diff -u -d -r1.272 -r1.273
--- chan_zap.c	17 Jun 2004 04:32:10 -0000	1.272
+++ chan_zap.c	17 Jun 2004 14:51:44 -0000	1.273
@@ -6965,6 +6965,7 @@
 				} else {
 					chanpos = pri_fixup_principle(pri, chanpos, e->ring.call);
 					if (chanpos > -1) {
+						ast_mutex_lock(&pri->pvts[x]->lock);
 						/* queue DTMF frame if the PBX for this call was already started (we're forwarding INFORMATION further on */
 						if (pri->overlapdial && pri->pvts[chanpos]->call==e->ring.call && pri->pvts[chanpos]->owner) {
 							/* how to do that */
@@ -6979,6 +6980,7 @@
 								}
 							}
 						}
+						ast_mutex_unlock(&pri->pvts[x]->lock);
 					}
 				}
 				break;




More information about the svn-commits mailing list