diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-09 15:57:28 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-09 15:57:28 +0000 |
commit | 1de8f4126fd98a03abbca040e68ffea38b4eb00b (patch) | |
tree | c94c5f743f3814b0584f423fea42bd0fb3970148 /channels | |
parent | 530ca7deba4fe0217a0c88c21b5deb92cf35da88 (diff) |
Don't force context for domain= setting (imported from 1.2)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33236 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 4e8334416..0f291df7a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -14702,10 +14702,10 @@ static int reload_config(enum channelreloadreason reason) if (context) *context++ = '\0'; + if (option_debug && ast_strlen_zero(context)) + ast_log(LOG_DEBUG, "No context specified at line %d for domain '%s'\n", v->lineno, domain); if (ast_strlen_zero(domain)) ast_log(LOG_WARNING, "Empty domain specified at line %d\n", v->lineno); - else if (ast_strlen_zero(context)) - ast_log(LOG_WARNING, "Empty context specified at line %d for domain '%s'\n", v->lineno, domain); else add_sip_domain(ast_strip(domain), SIP_DOMAIN_CONFIG, context ? ast_strip(context) : ""); } else if (!strcasecmp(v->name, "register")) { |