[Asterisk-cvs] asterisk/channels chan_sip.c,1.508,1.509
markster at lists.digium.com
markster at lists.digium.com
Sun Sep 26 16:39:24 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv27728/channels
Modified Files:
chan_sip.c
Log Message:
Hold peerl lock while updating autocreatepeer stuff
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.508
retrieving revision 1.509
diff -u -d -r1.508 -r1.509
--- chan_sip.c 16 Sep 2004 18:45:34 -0000 1.508
+++ chan_sip.c 26 Sep 2004 20:42:03 -0000 1.509
@@ -4868,8 +4868,10 @@
/* Create peer if we have autocreate mode enabled */
peer = temp_peer(name);
if (peer) {
+ ast_mutex_lock(&peerl.lock);
peer->next = peerl.peers;
peerl.peers = peer;
+ ast_mutex_unlock(&peerl.lock);
peer->lastmsgssent = -1;
sip_cancel_destroy(p);
if (parse_contact(p, peer, req)) {
More information about the svn-commits
mailing list