<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Yes, I've done that, but it's still
      coming through as CLI withheld (although we know what it is).<br>
      Coming from a Q.931 background, that's quite normal. I presume the
      SIP equivalent is Privacy="yes" but here I've attempted to set it
      to "no" to little avail!<br>
      Cheers,<br>
      Alex<br>
    </div>
    <blockquote
cite="mid:000001461a8488aa-63b6d7ee-44c0-4a05-a7ef-047eadb15295-000000@email.amazonses.com"
      type="cite">
      <div dir="ltr">At a quick glance... sounds like you want to
        normalize everything to the 0XX format.
        <div>If you're getting +44 which should just be 0, then match
          ^\+44(\d*)$ and set effective_caller_id_number to be 0$1.
          <div class="gmail_extra">
            <br clear="all">
            <div>
              <div dir="ltr"><span
                  style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi<br>
                </span></div>
            </div>
            <br>
            <br>
            <div class="gmail_quote">On Tue, May 20, 2014 at 7:26 PM,
              Alex Lake <span dir="ltr">&lt;<a moz-do-not-send="true"
                  href="mailto:alex@digitalmail.com" target="_blank">alex@digitalmail.com</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                Hello there....<br>
                <br>
                One of our carriers has changed their signalling today
                and its resulted<br>
                in some strange behaviour through our Freeswitch box.<br>
                <br>
                The change was that the P-Asserted ID has changed format
                to have a "+44"<br>
                at the beginning - it used to be in the national format
                (eg. "02070601234").<br>
                <br>
                The problem manifests itself further down the chain (the
                FS box forwards<br>
                to an Asterisk box which forwards to a legacy system
                using E1's and<br>
                Aculab cards). For some reason the E1 interprets the
                signalling as<br>
                withheld caller id.<br>
                <br>
                Message Header is:<br>
                <br>
                Max-Forwards: 69<br>
                Session-Expires: 3600;refresher=uac<br>
                Min-SE: 600<br>
                Supported: timer, 100rel<br>
                To: &lt;<a moz-do-not-send="true"
                  href="mailto:sip%3A448700802332@213.239.197.41">sip:448700802332@213.239.197.41</a>&gt;<br>
                From: &lt;<a moz-do-not-send="true"
                  href="mailto:sip%3A02070604380@217.145.67.2">sip:02070604380@217.145.67.2</a>&gt;;tag=3609589914-358461<br>
                P-Asserted-Identity: &lt;<a moz-do-not-send="true"
                  href="mailto:sip%3A%2B442070604380@193.113.183.202">sip:+442070604380@193.113.183.202</a>&gt;<br>
                Call-ID: <a moz-do-not-send="true"
                  href="mailto:3560925-3609589914-358457@MSX1.mydomain.com">3560925-3609589914-358457@MSX1.mydomain.com</a><br>
                CSeq: 1 INVITE<br>
                Allow: CANCEL, ACK, INVITE, BYE, OPTIONS, REGISTER,
                NOTIFY, INFO, REFER,<br>
                SUBSCRIBE, PRACK, UPDATE, MESSAGE, PUBLISH<br>
                Via: SIP/2.0/UDP<br>
217.145.67.2:5060;branch=z9hG4bK630bccab557da527f8875b902c88fb6b<br>
                Contact: &lt;<a moz-do-not-send="true"
                  href="http://sip:02070604380@217.145.67.2:5060"
                  target="_blank">sip:02070604380@217.145.67.2:5060</a>&gt;<br>
                Content-Type: application/sdp<br>
                Accept: application/sdp<br>
                Content-Length: 373<br>
                <br>
                I forward this on as:<br>
                <br>
                Via: SIP/2.0/UDP
                213.239.197.41;rport;branch=z9hG4bKm3jHajt7g1gaa<br>
                Max-Forwards: 68<br>
                From: "02070604380" &lt;<a moz-do-not-send="true"
                  href="mailto:sip%3A02070604380@213.239.197.41">sip:02070604380@213.239.197.41</a>&gt;;tag=57cmagKg0yctN<br>
                To: &lt;<a moz-do-not-send="true"
                  href="mailto:sip%3A448700802332@89.202.128.200">sip:448700802332@89.202.128.200</a>&gt;<br>
                Call-ID: 81dbf634-5ad9-1232-1f90-d43d7ee2fdec<br>
                CSeq: 59964493 INVITE<br>
                Contact: &lt;<a moz-do-not-send="true"
                  href="http://sip:mod_sofia@213.239.197.41:5060"
                  target="_blank">sip:mod_sofia@213.239.197.41:5060</a>&gt;<br>
                User-Agent:<br>
FreeSWITCH-mod_sofia/1.2.23+git~20140319T002132Z~b96946822d~64bit<br>
                Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO,
                UPDATE,<br>
                REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
                Supported: timer, path, replaces<br>
                Allow-Events: talk, hold, conference, presence, dialog,
                line-seize,<br>
                call-info, sla, include-session-description,
                presence.winfo,<br>
                message-summary, refer<br>
                Privacy: none<br>
                Content-Type: application/sdp<br>
                Content-Disposition: session<br>
                Content-Length: 207<br>
                X-FS-Support: update_display,send_info<br>
                P-Asserted-Identity: "02070604380" &lt;<a
                  moz-do-not-send="true"
                  href="mailto:sip%3A02070604380@213.239.197.41">sip:02070604380@213.239.197.41</a>&gt;<br>
                <br>
                I don't know if the SIPerati can discern anything from
                this. I could<br>
                pastebin the pcap file if that would be useful.<br>
                <br>
                But the angle might be for me to tell FS to give calls a
                sip_cid_type of<br>
                "none". But I don't quite undersrand from the wiki<br>
                (<a moz-do-not-send="true"
                  href="https://wiki.freeswitch.org/wiki/Variable_sip_cid_type"
                  target="_blank">https://wiki.freeswitch.org/wiki/Variable_sip_cid_type</a>)
                where I should<br>
                put this.<br>
                <br>
                The current dialplan is:<br>
                <br>
                &lt;extension name="ajl-test2"&gt;<br>
                   &lt;condition field="destination_number"
                expression="^44"&gt;<br>
                     &lt;action application="privacy" data="no"/&gt;<br>
                     &lt;action application="log" data="INFO
                caller_id_number<br>
                0${caller_id_number:3}"/&gt;<br>
                     &lt;action application="export"<br>
data="origination_caller_id_number=0${caller_id_number:3}"/&gt;<br>
                     &lt;action application="bridge"<br>
                data="sofia/internal/${<a moz-do-not-send="true"
                  href="mailto:destination_number%7D@89.202.128.200">destination_number}@89.202.128.200</a>"/&gt;<br>
                   &lt;/condition&gt;<br>
                &lt;/extension&gt;<br>
                <br>
                Note the hack to change callerid from +44xxx... format
                to 0xxx... has<br>
                been replaced by a Lua script that handles it a bit more
                cleanly.<br>
                <br>
                But that "privacy" setting doesn't seem to be enough.<br>
                <br>
                Any ideas or suggestions for more diagnostics?<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"
                  target="_blank">http://www.freeswitchsolutions.com</a><br>
                <br>
                FreeSWITCH-powered IP PBX: The CudaTel Communication
                Server<br>
                <a moz-do-not-send="true" href="http://www.cudatel.com"
                  target="_blank">http://www.cudatel.com</a><br>
                <br>
                Official FreeSWITCH Sites<br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                <a moz-do-not-send="true"
                  href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                <a moz-do-not-send="true" href="http://www.cluecon.com"
                  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"
                  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"
                  target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
              </blockquote>
            </div>
            <br>
          </div>
        </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>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.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://wiki.freeswitch.org">http://wiki.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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <p class="" avgcert""="" color="#000000" align="left">No virus
        found in this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 2014.0.4570 / Virus Database: 3950/7523 - Release Date:
        05/20/14</p>
    </blockquote>
    <br>
  </body>
</html>