Improve check order
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
559cae8751
commit
1e127d75d2
1 changed files with 3 additions and 3 deletions
|
@ -8421,10 +8421,10 @@ static int handle_common_options(struct ast_flags *flags, struct ast_flags *mask
|
||||||
} else if (!strcasecmp(v->name, "progressinband")) {
|
} else if (!strcasecmp(v->name, "progressinband")) {
|
||||||
ast_set_flag(mask, SIP_PROG_INBAND);
|
ast_set_flag(mask, SIP_PROG_INBAND);
|
||||||
ast_clear_flag(flags, SIP_PROG_INBAND);
|
ast_clear_flag(flags, SIP_PROG_INBAND);
|
||||||
if (ast_true(v->value))
|
if (strcasecmp(v->value, "never"))
|
||||||
ast_set_flag(flags, SIP_PROG_INBAND_YES);
|
|
||||||
else if (strcasecmp(v->value, "never"))
|
|
||||||
ast_set_flag(flags, SIP_PROG_INBAND_NO);
|
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
|
#ifdef OSP_SUPPORT
|
||||||
} else if (!strcasecmp(v->name, "ospauth")) {
|
} else if (!strcasecmp(v->name, "ospauth")) {
|
||||||
ast_set_flag(mask, SIP_OSPAUTH);
|
ast_set_flag(mask, SIP_OSPAUTH);
|
||||||
|
|
Loading…
Reference in a new issue