[Asterisk-cvs] asterisk/channels chan_sip.c,1.422,1.423
markster at lists.digium.com
markster at lists.digium.com
Wed Jun 23 13:55:57 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv30004/channels
Modified Files:
chan_sip.c
Log Message:
Be sure to hold lock during answer
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.422
retrieving revision 1.423
diff -u -d -r1.422 -r1.423
--- chan_sip.c 22 Jun 2004 18:49:00 -0000 1.422
+++ chan_sip.c 23 Jun 2004 17:41:51 -0000 1.423
@@ -1597,7 +1597,7 @@
char *codec;
struct sip_pvt *p = ast->pvt->pvt;
-
+ ast_mutex_lock(&p->lock);
if (ast->_state != AST_STATE_UP) {
@@ -1616,6 +1616,7 @@
ast_log(LOG_DEBUG, "sip_answer(%s)\n", ast->name);
res = transmit_response_with_sdp(p, "200 OK", &p->initreq, 1);
}
+ ast_mutex_unlock(&p->lock);
return res;
}
More information about the svn-commits
mailing list