<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"><<a href="mailto:alex@digitalmail.com" target="_blank">alex@digitalmail.com</a>></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: <<a href="mailto:sip%3A448700802332@213.239.197.41">sip:448700802332@213.239.197.41</a>><br>
From: <<a href="mailto:sip%3A02070604380@217.145.67.2">sip:02070604380@217.145.67.2</a>>;tag=3609589914-358461<br>
P-Asserted-Identity: <<a href="mailto:sip%3A%2B442070604380@193.113.183.202">sip:+442070604380@193.113.183.202</a>><br>
Call-ID: <a 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: <<a href="http://sip:02070604380@217.145.67.2:5060" target="_blank">sip:02070604380@217.145.67.2:5060</a>><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" <<a href="mailto:sip%3A02070604380@213.239.197.41">sip:02070604380@213.239.197.41</a>>;tag=57cmagKg0yctN<br>
To: <<a href="mailto:sip%3A448700802332@89.202.128.200">sip:448700802332@89.202.128.200</a>><br>
Call-ID: 81dbf634-5ad9-1232-1f90-d43d7ee2fdec<br>
CSeq: 59964493 INVITE<br>
Contact: <<a href="http://sip:mod_sofia@213.239.197.41:5060" target="_blank">sip:mod_sofia@213.239.197.41:5060</a>><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" <<a href="mailto:sip%3A02070604380@213.239.197.41">sip:02070604380@213.239.197.41</a>><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 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>
<extension name="ajl-test2"><br>
<condition field="destination_number" expression="^44"><br>
<action application="privacy" data="no"/><br>
<action application="log" data="INFO caller_id_number<br>
0${caller_id_number:3}"/><br>
<action application="export"<br>
data="origination_caller_id_number=0${caller_id_number:3}"/><br>
<action application="bridge"<br>
data="sofia/internal/${<a href="mailto:destination_number%7D@89.202.128.200">destination_number}@89.202.128.200</a>"/><br>
</condition><br>
</extension><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 href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div></div>