diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-11 14:02:54 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-11 14:02:54 +0000 |
commit | 601fbe5d1fc31e748f591afbbffabc7303acd416 (patch) | |
tree | 9f3899e19249e3add411b94e7b0c95b91011c7ca /channels/chan_sip.c | |
parent | 3096109aee7d36722c4020f76c2bd0b525307947 (diff) |
Remove the attempt at reporting configuration errors in sip.conf. This can
cause a bunch of improper messages when using realtime. I give up. As oej
tried to convince me when I put this in, there is just no easy way to do it.
(inspired by a message on the -dev list)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@61376 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 474b5fdda..448dc00c6 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12630,8 +12630,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, int ast_log(LOG_WARNING, "Qualification of peer '%s' should be 'yes', 'no', or a number of milliseconds at line %d of sip.conf\n", peer->name, v->lineno); peer->maxms = 0; } - } else if (strcasecmp(v->name, "type")) - ast_log(LOG_WARNING, "Ignoring unknown option '%s' at line %d of sip.conf!\n", v->name, v->lineno); + } v = v->next; } if (!ast_test_flag((&global_flags_page2), SIP_PAGE2_IGNOREREGEXPIRE) && ast_test_flag(&peer->flags_page2, SIP_PAGE2_DYNAMIC) && realtime) { @@ -12927,9 +12926,8 @@ static int reload_config(void) } } else if (!strcasecmp(v->name, "callevents")) { callevents = ast_true(v->value); - } else - ast_log(LOG_WARNING, "Ignoring unknown option '%s' at line %d of sip.conf!\n", v->name, v->lineno); - v = v->next; + } + v = v->next; } if (!allow_external_domains && AST_LIST_EMPTY(&domain_list)) { @@ -12943,8 +12941,7 @@ static int reload_config(void) /* Format for authentication is auth = username:password@realm */ if (!strcasecmp(v->name, "auth")) { authl = add_realm_authentication(authl, v->value, v->lineno); - } else - ast_log(LOG_WARNING, "Ignoring unknown option '%s' at line %d of sip.conf!\n", v->name, v->lineno); + } v = v->next; } |