<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Dear Younas<br>
    <br>
    I would like to thank you for your suggestion.<br>
    <br>
    I solved it by adding one more condition statement as follows:<br>
    <br>
    &lt;condition field="caller_id_number" expression="^(anonymous)$"
    break="never"&gt;<br>
    &lt;action application="export" data="sip_from_uri=${sip_from_uri}"
    inline="true"/&gt;<br>
    &lt;/condition&gt; <br>
    <br>
    Best Regards<br>
    <br>
    Panagiotis<br>
    <br>
    <div class="moz-cite-prefix">On 18/7/2016 10:47 μμ, Aqs Younas
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGVOjVXMeAU=xaKno7fqm2Nan8iLpZRU0XFbYy+HUfwvWJzb1w@mail.gmail.com"
      type="cite">
      <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" &lt;<a moz-do-not-send="true"
            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: "Anonymous"
            <a class="moz-txt-link-rfc2396E" href="mailto:sip:anonymous@anonymous.invalid">&lt;sip:anonymous@anonymous.invalid&gt;</a>;tag=as19e43f0e<br>
            P-Asserted-Identity: "Anonymous"
            <a class="moz-txt-link-rfc2396E" href="mailto:sip:anonymous@anonymous.invalid">&lt;sip:anonymous@anonymous.invalid&gt;</a><br>
            <br>
            and sends out:<br>
            From: "Anonymous" &lt;<a moz-do-not-send="true"
              href="mailto:sip%3Aanonymous@10.10.10.10">sip:anonymous@10.10.10.10</a>&gt;;tag=yp9N2QvepFc9K<br>
            P-Asserted-Identity: "Anonymous" &lt;<a
              moz-do-not-send="true"
              href="mailto:sip%3Aanonymous@10.10.10.10"><a class="moz-txt-link-abbreviated" href="mailto:sip:anonymous@10.10.10.10">sip:anonymous@10.10.10.10</a></a>&gt;<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>
            &lt;extension name="Test"&gt;<br>
            &lt;condition field="network_addr"<br>
            expression="^(^10\.10\.10\.1|^10\.10\.11\.1)$"/&gt;<br>
            &lt;condition field="destination_number"
            expression="^1234#(\d+)$"<br>
            require-nested="false"&gt;<br>
            &lt;condition field="caller_id_number"
            expression="^(00)(\d+)$" break="never"&gt;<br>
            &lt;action application="set"
            data="effective_caller_id_number=+$2"<br>
            inline="true"/&gt;<br>
            &lt;action application="set"
            data="effective_caller_id_name=+$2"<br>
            inline="true"/&gt;<br>
            &lt;/condition&gt;<br>
            &lt;condition field="caller_id_number"
            expression="^([1-9]\d+)$" break="never"&gt;<br>
            &lt;action application="set"
            data="effective_caller_id_number=+$1"<br>
            inline="true"/&gt;<br>
            &lt;action application="set"
            data="effective_caller_id_name=+$1"<br>
            inline="true"/&gt;<br>
            &lt;/condition&gt;<br>
            &lt;action application="set"
            data="call_direction=outgoing"/&gt;<br>
            &lt;action application="set"
            data="hangup_after_bridge=true"/&gt;<br>
            &lt;action application="set"
            data="continue_on_fail=true"/&gt;<br>
            &lt;action application="set"
            data="sip_cid_in_1xx=false"/&gt;<br>
            &lt;action application="set" data="inherit_codec=true"/&gt;<br>
            &lt;action application="set"
            data="accountcode=${sip_h_X-ACCOUNTCODE}"<br>
            inline="true"/&gt;<br>
            &lt;action application="export"<br>
            data="nolocal:accountcode=${sip_h_X-ACCOUNTCODE}"
            inline="true"/&gt;<br>
            &lt;action application="unset" data="sip_h_X-ACCOUNTCODE"
            inline="true"/&gt;<br>
            &lt;action application="set"
            data="execute_on_answer=sched_hangup +21600<br>
            alloted_timeout"/&gt;<br>
            &lt;action application="bridge" data="sofia/external/+$<a
              moz-do-not-send="true" href="http://1@192.168.157.10:5060"
              rel="noreferrer" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:1@192.168.157.10:5060">1@192.168.157.10:5060</a></a>"/&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 moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" rel="noreferrer"
              target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://confluence.freeswitch.org" rel="noreferrer"
              target="_blank">http://confluence.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              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 moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
          </blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>