I have configured a Freeswitch system with a FusionPBX GUI. One of the requiremenmts i need to fulfill is to tell trusted domains apart from untrusted domains.
What I want to do is to make sure the P-Asserted-Identity field on the SIP Header is only sent to trusted domains and the From:field in a call would appear as anonymous@anonymous.invalid in case the call is made to a untrusted domain.
Here's the XML code I've made, but is not workingn (i have no idea why):
<extension name="call_privacy" >
<condition field="destination_number" expression="^(210301\d\d\d)$" />
<condition field="caller_id_number" expression="^(21030010\d)$" >
<action application="set" data="sip_h_Privacy=id" />
<action application="privacy" data="full" />
<action application="set" data="privacy=yes" />
<action application="transfer" data="$1 XML ${context}" />
<action application="${sip_from_uri}" data="anonymous" />
</condition>
</extension>
Can anyone please help me with this? Thanks in advance