mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 00:24:05 +00:00
Fix reload with wildcard endpoint
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3592,17 +3592,19 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Make out subs a circular linked list so we can always sping through the whole bunch */
|
if (!ep_reload) {
|
||||||
sub = e->sub;
|
/* Make out subs a circular linked list so we can always sping through the whole bunch */
|
||||||
/* find the end of the list */
|
sub = e->sub;
|
||||||
while(sub->next){
|
/* find the end of the list */
|
||||||
sub = sub->next;
|
while(sub->next){
|
||||||
}
|
sub = sub->next;
|
||||||
/* set the last sub->next to the first sub */
|
}
|
||||||
sub->next = e->sub;
|
/* set the last sub->next to the first sub */
|
||||||
|
sub->next = e->sub;
|
||||||
|
|
||||||
e->next = gw->endpoints;
|
e->next = gw->endpoints;
|
||||||
gw->endpoints = e;
|
gw->endpoints = e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (!strcasecmp(v->name, "trunk") ||
|
} else if (!strcasecmp(v->name, "trunk") ||
|
||||||
!strcasecmp(v->name, "line")) {
|
!strcasecmp(v->name, "line")) {
|
||||||
|
Reference in New Issue
Block a user