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:
Mark Spencer 2004-08-01 21:25:35 +00:00
parent 87787b05ae
commit 5abc3ecb56
1 changed files with 22 additions and 22 deletions

View File

@ -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 */