[Asterisk-cvs] asterisk/channels chan_zap.c,1.276,1.277
markster at lists.digium.com
markster at lists.digium.com
Sun Jun 20 10:21:48 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv6241/channels
Modified Files:
chan_zap.c
Log Message:
Hold private lock while handling digits
Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.276
retrieving revision 1.277
diff -u -d -r1.276 -r1.277
--- chan_zap.c 20 Jun 2004 06:53:53 -0000 1.276
+++ chan_zap.c 20 Jun 2004 14:07:44 -0000 1.277
@@ -842,6 +842,7 @@
int res = 0;
int index;
p = ast->pvt->pvt;
+ ast_mutex_lock(&p->lock);
index = zt_get_index(ast, p, 0);
if (index == SUB_REAL) {
#ifdef ZAPATA_PRI
@@ -872,7 +873,7 @@
p->dialing = 1;
}
}
-
+ ast_mutex_unlock(&p->lock);
return res;
}
More information about the svn-commits
mailing list