Don't reload subchannels of wild card endpoint on reload.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3566 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
71e6f3bccf
commit
d96b7e454b
|
@ -3570,6 +3570,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
|
||||||
e->onhooktime = time(NULL);
|
e->onhooktime = time(NULL);
|
||||||
/* ASSUME we're onhook */
|
/* ASSUME we're onhook */
|
||||||
e->hookstate = MGCP_ONHOOK;
|
e->hookstate = MGCP_ONHOOK;
|
||||||
|
if (!ep_reload) {
|
||||||
/*snprintf(txident, sizeof(txident), "%08x", rand());*/
|
/*snprintf(txident, sizeof(txident), "%08x", rand());*/
|
||||||
for (i = 0; i < MAX_SUBS; i++) {
|
for (i = 0; i < MAX_SUBS; i++) {
|
||||||
sub = malloc(sizeof(struct mgcp_subchannel));
|
sub = malloc(sizeof(struct mgcp_subchannel));
|
||||||
|
@ -3592,7 +3593,6 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!ep_reload) {
|
|
||||||
/* Make out subs a circular linked list so we can always sping through the whole bunch */
|
/* Make out subs a circular linked list so we can always sping through the whole bunch */
|
||||||
sub = e->sub;
|
sub = e->sub;
|
||||||
/* find the end of the list */
|
/* find the end of the list */
|
||||||
|
|
Reference in New Issue