From b753436b7a6aaf5d83b404aafb8321a96e6f2df6 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 8 Jul 2008 17:32:59 +0000 Subject: [PATCH] update default config git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8931 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- conf/sip_profiles/internal.xml | 5 ++++- src/mod/endpoints/mod_sofia/sofia.c | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/conf/sip_profiles/internal.xml b/conf/sip_profiles/internal.xml index f909a62509..274a6b3dac 100644 --- a/conf/sip_profiles/internal.xml +++ b/conf/sip_profiles/internal.xml @@ -76,7 +76,10 @@ - + + + + diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 7d28a82b28..1488c48548 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1091,9 +1091,7 @@ switch_status_t config_sofia(int reload, char *profile_name) } } else if (!strcasecmp(var, "record-template")) { profile->record_template = switch_core_strdup(profile->pool, val);; - } else if (!strcasecmp(var, "inbound-no-media") && switch_true(val)) { - switch_set_flag(profile, TFLAG_INB_NOMEDIA); - } else if (!strcasecmp(var, "inbound-bypass-media") && switch_true(val)) { + } else if ((!strcasecmp(var, "inbound-no-media") || !strcasecmp(var, "inbound-bypass-media")) && switch_true(val)) { switch_set_flag(profile, TFLAG_INB_NOMEDIA); } else if (!strcasecmp(var, "inbound-late-negotiation") && switch_true(val)) { switch_set_flag(profile, TFLAG_LATE_NEGOTIATION);