Don't reload subchannels of wild card endpoint on reload.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
87787b05ae
commit
5abc3ecb56
|
@ -3570,6 +3570,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
|
|||
e->onhooktime = time(NULL);
|
||||
/* ASSUME we're onhook */
|
||||
e->hookstate = MGCP_ONHOOK;
|
||||
if (!ep_reload) {
|
||||
/*snprintf(txident, sizeof(txident), "%08x", rand());*/
|
||||
for (i = 0; i < MAX_SUBS; i++) {
|
||||
sub = malloc(sizeof(struct mgcp_subchannel));
|
||||
|
@ -3592,7 +3593,6 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
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 */
|
||||
|
|
Loading…
Reference in New Issue