[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.65,1.66
markster at lists.digium.com
markster at lists.digium.com
Sun Aug 1 00:13:11 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory localhost.localdomain:/tmp/cvs-serv10172/channels
Modified Files:
chan_mgcp.c
Log Message:
Fix reload with wildcard endpoint
Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- chan_mgcp.c 30 Jul 2004 18:02:18 -0000 1.65
+++ chan_mgcp.c 1 Aug 2004 03:59:13 -0000 1.66
@@ -3592,17 +3592,19 @@
return NULL;
}
}
- /* Make out subs a circular linked list so we can always sping through the whole bunch */
- sub = e->sub;
- /* find the end of the list */
- while(sub->next){
- sub = sub->next;
- }
- /* set the last sub->next to the first sub */
- sub->next = e->sub;
+ if (!ep_reload) {
+ /* Make out subs a circular linked list so we can always sping through the whole bunch */
+ sub = e->sub;
+ /* find the end of the list */
+ while(sub->next){
+ sub = sub->next;
+ }
+ /* set the last sub->next to the first sub */
+ sub->next = e->sub;
- e->next = gw->endpoints;
- gw->endpoints = e;
+ e->next = gw->endpoints;
+ gw->endpoints = e;
+ }
}
} else if (!strcasecmp(v->name, "trunk") ||
!strcasecmp(v->name, "line")) {
More information about the svn-commits
mailing list