[asterisk-commits] mmichelson: branch 13 r431420 - /branches/13/res/res_pjsip/pjsip_configuration.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 29 13:52:53 CST 2015


Author: mmichelson
Date: Thu Jan 29 13:52:45 2015
New Revision: 431420

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=431420
Log:
Allow disabling of 100rel support on PJSIP endpoints.

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.


Modified:
    branches/13/res/res_pjsip/pjsip_configuration.c

Modified: branches/13/res/res_pjsip/pjsip_configuration.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/res/res_pjsip/pjsip_configuration.c?view=diff&rev=431420&r1=431419&r2=431420
==============================================================================
--- branches/13/res/res_pjsip/pjsip_configuration.c (original)
+++ branches/13/res/res_pjsip/pjsip_configuration.c Thu Jan 29 13:52:45 2015
@@ -144,7 +144,7 @@
 	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 {




More information about the asterisk-commits mailing list