]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow disabling of 100rel support on PJSIP endpoints.
authorMark Michelson <mmichelson@digium.com>
Thu, 29 Jan 2015 19:52:45 +0000 (19:52 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 29 Jan 2015 19:52:45 +0000 (19:52 +0000)
Due to an inversion error, setting 100rel=no would not actually
change the current value of the setting (which defaulted to "yes").
With this fix, the inversion is corrected.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@431420 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_pjsip/pjsip_configuration.c

index 3c6359fec962bc44a405d584320daa406e07f947..1518bcee94c081a38848754d878eebce55cc56e8 100644 (file)
@@ -144,7 +144,7 @@ static int prack_handler(const struct aco_option *opt, struct ast_variable *var,
        if (ast_true(var->value)) {
                endpoint->extensions.flags |= PJSIP_INV_SUPPORT_100REL;
        } else if (ast_false(var->value)) {
-               endpoint->extensions.flags &= PJSIP_INV_SUPPORT_100REL;
+               endpoint->extensions.flags &= ~PJSIP_INV_SUPPORT_100REL;
        } else if (!strcasecmp(var->value, "required")) {
                endpoint->extensions.flags |= PJSIP_INV_REQUIRE_100REL;
        } else {