<p dir="ltr">Use info application and get the header in variable and set pri to that variable before bridging. You will get what you want.</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Jul 18, 2016 4:49 PM, "Panagiotis Skoulikaritis" <<a href="mailto:pskoul@gmail.com">pskoul@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all<br>
<br>
I have some issues with a privacy headers, in my understanding is that<br>
it has to do with trusted/untrusted networks<br>
<br>
<br>
FreeSWITCH receives:<br>
From: "Anonymous" <sip:anonymous@anonymous.invalid>;tag=as19e43f0e<br>
P-Asserted-Identity: "Anonymous" <sip:anonymous@anonymous.invalid><br>
<br>
and sends out:<br>
From: "Anonymous" <<a href="mailto:sip%3Aanonymous@10.10.10.10">sip:anonymous@10.10.10.10</a>>;tag=yp9N2QvepFc9K<br>
P-Asserted-Identity: "Anonymous" <<a href="mailto:sip%3Aanonymous@10.10.10.10">sip:anonymous@10.10.10.10</a>><br>
<br>
The Terminating carrier doesn't want to receive the IP address but<br>
rather the anonymous.invalid<br>
<br>
<br>
I searched through the mail list but I didn't find anything that could<br>
help me fix it.<br>
<br>
<br>
Bellow is the dialplan I currently use for the carrier:<br>
<br>
<extension name="Test"><br>
<condition field="network_addr"<br>
expression="^(^10\.10\.10\.1|^10\.10\.11\.1)$"/><br>
<condition field="destination_number" expression="^1234#(\d+)$"<br>
require-nested="false"><br>
<condition field="caller_id_number" expression="^(00)(\d+)$" break="never"><br>
<action application="set" data="effective_caller_id_number=+$2"<br>
inline="true"/><br>
<action application="set" data="effective_caller_id_name=+$2"<br>
inline="true"/><br>
</condition><br>
<condition field="caller_id_number" expression="^([1-9]\d+)$" break="never"><br>
<action application="set" data="effective_caller_id_number=+$1"<br>
inline="true"/><br>
<action application="set" data="effective_caller_id_name=+$1"<br>
inline="true"/><br>
</condition><br>
<action application="set" data="call_direction=outgoing"/><br>
<action application="set" data="hangup_after_bridge=true"/><br>
<action application="set" data="continue_on_fail=true"/><br>
<action application="set" data="sip_cid_in_1xx=false"/><br>
<action application="set" data="inherit_codec=true"/><br>
<action application="set" data="accountcode=${sip_h_X-ACCOUNTCODE}"<br>
inline="true"/><br>
<action application="export"<br>
data="nolocal:accountcode=${sip_h_X-ACCOUNTCODE}" inline="true"/><br>
<action application="unset" data="sip_h_X-ACCOUNTCODE" inline="true"/><br>
<action application="set" data="execute_on_answer=sched_hangup +21600<br>
alloted_timeout"/><br>
<action application="bridge" data="sofia/external/+$<a href="http://1@192.168.157.10:5060" rel="noreferrer" target="_blank">1@192.168.157.10:5060</a>"/><br>
</condition><br>
</extension><br>
<br>
<br>
any help will be greatly appreciated.<br>
<br>
<br>
Best Regards<br>
<br>
Panagiotis<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div></div>