<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, &quot;Panagiotis Skoulikaritis&quot; &lt;<a href="mailto:pskoul@gmail.com">pskoul@gmail.com</a>&gt; 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: &quot;Anonymous&quot; &lt;sip:anonymous@anonymous.invalid&gt;;tag=as19e43f0e<br>
P-Asserted-Identity: &quot;Anonymous&quot; &lt;sip:anonymous@anonymous.invalid&gt;<br>
<br>
and sends out:<br>
From: &quot;Anonymous&quot; &lt;<a href="mailto:sip%3Aanonymous@10.10.10.10">sip:anonymous@10.10.10.10</a>&gt;;tag=yp9N2QvepFc9K<br>
P-Asserted-Identity: &quot;Anonymous&quot; &lt;<a href="mailto:sip%3Aanonymous@10.10.10.10">sip:anonymous@10.10.10.10</a>&gt;<br>
<br>
The Terminating carrier doesn&#39;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&#39;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>
&lt;extension name=&quot;Test&quot;&gt;<br>
&lt;condition field=&quot;network_addr&quot;<br>
expression=&quot;^(^10\.10\.10\.1|^10\.10\.11\.1)$&quot;/&gt;<br>
&lt;condition field=&quot;destination_number&quot; expression=&quot;^1234#(\d+)$&quot;<br>
require-nested=&quot;false&quot;&gt;<br>
&lt;condition field=&quot;caller_id_number&quot; expression=&quot;^(00)(\d+)$&quot; break=&quot;never&quot;&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=+$2&quot;<br>
inline=&quot;true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=+$2&quot;<br>
inline=&quot;true&quot;/&gt;<br>
&lt;/condition&gt;<br>
&lt;condition field=&quot;caller_id_number&quot; expression=&quot;^([1-9]\d+)$&quot; break=&quot;never&quot;&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=+$1&quot;<br>
inline=&quot;true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;effective_caller_id_name=+$1&quot;<br>
inline=&quot;true&quot;/&gt;<br>
&lt;/condition&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;call_direction=outgoing&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;sip_cid_in_1xx=false&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;inherit_codec=true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;accountcode=${sip_h_X-ACCOUNTCODE}&quot;<br>
inline=&quot;true&quot;/&gt;<br>
&lt;action application=&quot;export&quot;<br>
data=&quot;nolocal:accountcode=${sip_h_X-ACCOUNTCODE}&quot; inline=&quot;true&quot;/&gt;<br>
&lt;action application=&quot;unset&quot; data=&quot;sip_h_X-ACCOUNTCODE&quot; inline=&quot;true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;execute_on_answer=sched_hangup +21600<br>
alloted_timeout&quot;/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot;sofia/external/+$<a href="http://1@192.168.157.10:5060" rel="noreferrer" target="_blank">1@192.168.157.10:5060</a>&quot;/&gt;<br>
&lt;/condition&gt;<br>
&lt;/extension&gt;<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>