[Freeswitch-svn] [commit] r10101 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
mikej at freeswitch.org
Tue Oct 21 16:01:49 EDT 2008
Author: mikej
Date: Tue Oct 21 16:01:48 2008
New Revision: 10101
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
Log:
MODENDP-133 (add parsing of another header for privacy info)
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Tue Oct 21 16:01:48 2008
@@ -3334,6 +3334,7 @@
sip_remote_party_id_t *rpid = NULL;
sip_p_asserted_identity_t *passerted = NULL;
sip_p_preferred_identity_t *ppreferred = NULL;
+ sip_privacy_t *privacy = NULL;
sip_alert_info_t *alert_info = NULL;
private_object_t *tech_pvt = NULL;
switch_channel_t *channel = NULL;
@@ -3836,6 +3837,12 @@
}
}
+ if ((privacy = sip_privacy(sip))) {
+ if(msg_params_find(privacy->priv_values, "id")) {
+ switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NAME | SWITCH_CPF_HIDE_NUMBER);
+ }
+ }
+
/* Loop thru unknown Headers Here so we can do something with them */
for (un = sip->sip_unknown; un; un = un->un_next) {
if (!strncasecmp(un->un_name, "Diversion", 9)) {
More information about the Freeswitch-svn
mailing list