]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Do not require a context on a domain= setting
authorOlle Johansson <oej@edvina.net>
Fri, 9 Jun 2006 15:53:28 +0000 (15:53 +0000)
committerOlle Johansson <oej@edvina.net>
Fri, 9 Jun 2006 15:53:28 +0000 (15:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@33235 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index cf7e8892c31896b5f7c49ba56307d1e1e6e1c0db..acbe6f3ab14cd1844835848ecf3488ce1df301fe 100644 (file)
@@ -12702,10 +12702,10 @@ static int reload_config(void)
                        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")) {