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

markster at lists.digium.com markster at lists.digium.com
Thu Jun 17 11:07:28 CDT 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Oops


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.273
retrieving revision 1.274
diff -u -d -r1.273 -r1.274
--- chan_zap.c	17 Jun 2004 14:51:44 -0000	1.273
+++ chan_zap.c	17 Jun 2004 14:53:25 -0000	1.274
@@ -6965,7 +6965,7 @@
 				} else {
 					chanpos = pri_fixup_principle(pri, chanpos, e->ring.call);
 					if (chanpos > -1) {
-						ast_mutex_lock(&pri->pvts[x]->lock);
+						ast_mutex_lock(&pri->pvts[chanpos]->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 */
@@ -6980,7 +6980,7 @@
 								}
 							}
 						}
-						ast_mutex_unlock(&pri->pvts[x]->lock);
+						ast_mutex_unlock(&pri->pvts[chanpos]->lock);
 					}
 				}
 				break;




More information about the svn-commits mailing list