[Freeswitch-users] privacy and anonymous at anonymous.invalid

Panagiotis Skoulikaritis pskoul at gmail.com
Mon Jul 18 15:46:46 MSD 2016


Dear all

I have some issues with a privacy headers, in my understanding is that 
it has to do with trusted/untrusted networks


FreeSWITCH receives:
From: "Anonymous" <sip:anonymous at anonymous.invalid>;tag=as19e43f0e
P-Asserted-Identity: "Anonymous" <sip:anonymous at anonymous.invalid>

and sends out:
From: "Anonymous" <sip:anonymous at 10.10.10.10>;tag=yp9N2QvepFc9K
P-Asserted-Identity: "Anonymous" <sip:anonymous at 10.10.10.10>

The Terminating carrier doesn't want to receive the IP address but 
rather the anonymous.invalid


I searched through the mail list but I didn't find anything that could 
help me fix it.


Bellow is the dialplan I currently use for the carrier:

<extension name="Test">
<condition field="network_addr" 
expression="^(^10\.10\.10\.1|^10\.10\.11\.1)$"/>
<condition field="destination_number" expression="^1234#(\d+)$" 
require-nested="false">
<condition field="caller_id_number" expression="^(00)(\d+)$" break="never">
<action application="set" data="effective_caller_id_number=+$2" 
inline="true"/>
<action application="set" data="effective_caller_id_name=+$2" 
inline="true"/>
</condition>
<condition field="caller_id_number" expression="^([1-9]\d+)$" break="never">
<action application="set" data="effective_caller_id_number=+$1" 
inline="true"/>
<action application="set" data="effective_caller_id_name=+$1" 
inline="true"/>
</condition>
<action application="set" data="call_direction=outgoing"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="sip_cid_in_1xx=false"/>
<action application="set" data="inherit_codec=true"/>
<action application="set" data="accountcode=${sip_h_X-ACCOUNTCODE}" 
inline="true"/>
<action application="export" 
data="nolocal:accountcode=${sip_h_X-ACCOUNTCODE}" inline="true"/>
<action application="unset" data="sip_h_X-ACCOUNTCODE" inline="true"/>
<action application="set" data="execute_on_answer=sched_hangup +21600 
alloted_timeout"/>
<action application="bridge" data="sofia/external/+$1 at 192.168.157.10:5060"/>
</condition>
</extension>


any help will be greatly appreciated.


Best Regards

Panagiotis



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list