From: Travis Cross Date: Thu, 11 Sep 2014 19:44:36 +0000 (+0000) Subject: Add var to suppress `Privacy: none` header X-Git-Tag: v1.4.8~1^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd35471f78a2ee1307fec234eee1776e0fa4d46;p=thirdparty%2Ffreeswitch.git Add var to suppress `Privacy: none` header Apparently the MetaSwitch guys incorrectly interpret `Privacy: none` as `Privacy: id`. ref: RFC 3325 Reported-by: Stéphane Alnet FS-6817 #resolve --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index fe522fdd4f..99caba5c2e 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -1075,7 +1075,9 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session) if (switch_test_flag(caller_profile, SWITCH_CPF_HIDE_NUMBER)) { tech_pvt->privacy = "id"; } else { - tech_pvt->privacy = "none"; + if (!(val = switch_channel_get_variable(channel, "sip_cid_suppress_privacy_none")) || !switch_true(val)) { + tech_pvt->privacy = "none"; + } } break;