[Asterisk-cvs] asterisk/channels chan_sip.c,1.186,1.187
markster at lists.digium.com
markster at lists.digium.com
Tue Sep 30 23:52:42 CDT 2003
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv11094/channels
Modified Files:
chan_sip.c
Log Message:
Check registry carefully before unlinking
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -d -r1.186 -r1.187
--- chan_sip.c 1 Oct 2003 04:43:43 -0000 1.186
+++ chan_sip.c 1 Oct 2003 04:53:53 -0000 1.187
@@ -889,7 +889,14 @@
p->route = NULL;
}
if (p->registry) {
- p->registry->call=NULL;
+ /* Carefully unlink from registry */
+ struct sip_registry *reg;
+ reg = registrations;
+ while(reg) {
+ if ((reg == p->registry) && (p->registry->call == p))
+ p->registry->call=NULL;
+ reg = reg->next;
+ }
}
/* Unlink us from the owner if we have one */
if (p->owner) {
More information about the svn-commits
mailing list