diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 4e8334416c595e9eb10d2ccbbc8a1ee8a0d14d2e..0f291df7af5bb30b0ea92fc64fab6199056201d2 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")) {