From 75b650fb43d59c9a7841f104613ad14f4dfcc7a4 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 12 Nov 2008 13:02:44 +0000 Subject: [PATCH] disable 100rel by default. NOTE: Potentially breaking change, check your configs. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10354 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index be9ce550af..0d34fe1d9f 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1422,6 +1422,7 @@ switch_status_t config_sofia(int reload, char *profile_name) profile->mflags = MFLAG_REFER | MFLAG_REGISTER; profile->rport_level = 1; profile->pflags |= PFLAG_STUN_ENABLED; + profile->pflags |= PFLAG_DISABLE_100REL; for (param = switch_xml_child(settings, "param"); param; param = param->next) { char *var = (char *) switch_xml_attr_soft(param, "name"); @@ -1705,8 +1706,8 @@ switch_status_t config_sofia(int reload, char *profile_name) profile->minimum_session_expires = 90; } } else if (!strcasecmp(var, "enable-100rel")) { - if (!switch_true(val)) { - profile->pflags |= PFLAG_DISABLE_100REL; + if (switch_true(val)) { + profile->pflags &= ~PFLAG_DISABLE_100REL; } } else if (!strcasecmp(var, "bitpacking")) { if (!strcasecmp(val, "aal2")) {