mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 16:33:34 +00:00
Improve check order
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user