From: Jeremy McNamara Date: Thu, 18 Dec 2003 19:48:42 +0000 (+0000) Subject: don't create another endpoint on a reload X-Git-Tag: 0.7.0~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83c63206c18a6a350d0eaa467c366bf50a402bea;p=thirdparty%2Fasterisk.git don't create another endpoint on a reload git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1866 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_h323.c b/channels/chan_h323.c index 32861f03d5..c65195045e 100755 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -212,7 +212,7 @@ static struct oh323_alias *build_alias(char *name, struct ast_variable *v) } else if (!strcasecmp(v->name, "secret")) { strncpy(alias->secret, v->value, sizeof(alias->secret)-1); } else { - if (strcasecmp(v->name, "h323")) { + if (strcasecmp(v->value, "h323")) { ast_log(LOG_WARNING, "Keyword %s does not make sense in type=h323\n", v->value); } } @@ -1402,9 +1402,10 @@ int reload_config(void) return 1; } - /* fire up the H.323 Endpoint */ - h323_end_point_create(); - + /* fire up the H.323 Endpoint */ + if (!h323_end_point_exist()) { + h323_end_point_create(); + } h323debug=0; dtmfmode = H323_DTMF_RFC2833;