Improve check order

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2005-01-02 00:48:11 +00:00
parent 559cae8751
commit 1e127d75d2
1 changed files with 3 additions and 3 deletions

View File

@ -8421,10 +8421,10 @@ static int handle_common_options(struct ast_flags *flags, struct ast_flags *mask
} else if (!strcasecmp(v->name, "progressinband")) {
ast_set_flag(mask, SIP_PROG_INBAND);
ast_clear_flag(flags, SIP_PROG_INBAND);
if (ast_true(v->value))
ast_set_flag(flags, SIP_PROG_INBAND_YES);
else if (strcasecmp(v->value, "never"))
if (strcasecmp(v->value, "never"))
ast_set_flag(flags, SIP_PROG_INBAND_NO);
else if (ast_true(v->value))
ast_set_flag(flags, SIP_PROG_INBAND_YES);
#ifdef OSP_SUPPORT
} else if (!strcasecmp(v->name, "ospauth")) {
ast_set_flag(mask, SIP_OSPAUTH);