<div dir="ltr">mod_translate perhaps? <a href="https://wiki.freeswitch.org/wiki/Mod_translate">https://wiki.freeswitch.org/wiki/Mod_translate</a><div><br></div><div>You can use it to normalize back to the national format before it hits the dialplan.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 27 May 2014 09:51, Alex Lake <span dir="ltr">&lt;<a href="mailto:alex@digitalmail.com" target="_blank">alex@digitalmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Anyone able to help with this in exchange for cash?! ;-)<br>
<span class="HOEnZb"><font color="#888888"><br>
Alex<br>
</font></span><div class="HOEnZb"><div class="h5">&gt; One thing I could do with help on is how to make the sip_cid_type work<br>
&gt; for INBOUND calls?<br>
&gt;<br>
&gt; i.e. ignore what&#39;s in the P-Asserted header and just take the &quot;from&quot;<br>
&gt; address.<br>
&gt;<br>
&gt; I don&#39;t have a specific trunk set up for these calls, they just come in<br>
&gt; on IP-authorised acl.<br>
&gt;<br>
&gt; FWIW, this carrier is the only source of inbound traffic on the box, so<br>
&gt; setting a global default would be acceptable.<br>
&gt;<br>
&gt; Cheers!<br>
&gt;&gt; Hello there....<br>
&gt;&gt;<br>
&gt;&gt; One of our carriers has changed their signalling today and its resulted<br>
&gt;&gt; in some strange behaviour through our Freeswitch box.<br>
&gt;&gt;<br>
&gt;&gt; The change was that the P-Asserted ID has changed format to have a &quot;+44&quot;<br>
&gt;&gt; at the beginning - it used to be in the national format (eg. &quot;<a href="tel:02070601234" value="+442070601234">02070601234</a>&quot;).<br>
&gt;&gt;<br>
&gt;&gt; The problem manifests itself further down the chain (the FS box forwards<br>
&gt;&gt; to an Asterisk box which forwards to a legacy system using E1&#39;s and<br>
&gt;&gt; Aculab cards). For some reason the E1 interprets the signalling as<br>
&gt;&gt; withheld caller id.<br>
&gt;&gt;<br>
&gt;&gt; Message Header is:<br>
&gt;&gt;<br>
&gt;&gt; Max-Forwards: 69<br>
&gt;&gt; Session-Expires: 3600;refresher=uac<br>
&gt;&gt; Min-SE: 600<br>
&gt;&gt; Supported: timer, 100rel<br>
&gt;&gt; To: &lt;<a href="mailto:sip%3A448700802332@213.239.197.41">sip:448700802332@213.239.197.41</a>&gt;<br>
&gt;&gt; From: &lt;<a href="mailto:sip%3A02070604380@217.145.67.2">sip:02070604380@217.145.67.2</a>&gt;;tag=3609589914-358461<br>
&gt;&gt; P-Asserted-Identity: &lt;<a href="mailto:sip%3A%2B442070604380@193.113.183.202">sip:+442070604380@193.113.183.202</a>&gt;<br>
&gt;&gt; Call-ID: <a href="mailto:3560925-3609589914-358457@MSX1.mydomain.com">3560925-3609589914-358457@MSX1.mydomain.com</a><br>
&gt;&gt; CSeq: 1 INVITE<br>
&gt;&gt; Allow: CANCEL, ACK, INVITE, BYE, OPTIONS, REGISTER, NOTIFY, INFO, REFER,<br>
&gt;&gt; SUBSCRIBE, PRACK, UPDATE, MESSAGE, PUBLISH<br>
&gt;&gt; Via: SIP/2.0/UDP<br>
&gt;&gt; 217.145.67.2:5060;branch=z9hG4bK630bccab557da527f8875b902c88fb6b<br>
&gt;&gt; Contact: &lt;<a href="http://sip:02070604380@217.145.67.2:5060" target="_blank">sip:02070604380@217.145.67.2:5060</a>&gt;<br>
&gt;&gt; Content-Type: application/sdp<br>
&gt;&gt; Accept: application/sdp<br>
&gt;&gt; Content-Length: 373<br>
&gt;&gt;<br>
&gt;&gt; I forward this on as:<br>
&gt;&gt;<br>
&gt;&gt; Via: SIP/2.0/UDP 213.239.197.41;rport;branch=z9hG4bKm3jHajt7g1gaa<br>
&gt;&gt; Max-Forwards: 68<br>
&gt;&gt; From: &quot;02070604380&quot; &lt;<a href="mailto:sip%3A02070604380@213.239.197.41">sip:02070604380@213.239.197.41</a>&gt;;tag=57cmagKg0yctN<br>
&gt;&gt; To: &lt;<a href="mailto:sip%3A448700802332@89.202.128.200">sip:448700802332@89.202.128.200</a>&gt;<br>
&gt;&gt; Call-ID: 81dbf634-5ad9-1232-1f90-d43d7ee2fdec<br>
&gt;&gt; CSeq: 59964493 INVITE<br>
&gt;&gt; Contact: &lt;<a href="http://sip:mod_sofia@213.239.197.41:5060" target="_blank">sip:mod_sofia@213.239.197.41:5060</a>&gt;<br>
&gt;&gt; User-Agent:<br>
&gt;&gt; FreeSWITCH-mod_sofia/1.2.23+git~20140319T002132Z~b96946822d~64bit<br>
&gt;&gt; Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE,<br>
&gt;&gt; REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
&gt;&gt; Supported: timer, path, replaces<br>
&gt;&gt; Allow-Events: talk, hold, conference, presence, dialog, line-seize,<br>
&gt;&gt; call-info, sla, include-session-description, presence.winfo,<br>
&gt;&gt; message-summary, refer<br>
&gt;&gt; Privacy: none<br>
&gt;&gt; Content-Type: application/sdp<br>
&gt;&gt; Content-Disposition: session<br>
&gt;&gt; Content-Length: 207<br>
&gt;&gt; X-FS-Support: update_display,send_info<br>
&gt;&gt; P-Asserted-Identity: &quot;<a href="tel:02070604380" value="+442070604380">02070604380</a>&quot; &lt;<a href="mailto:sip%3A02070604380@213.239.197.41">sip:02070604380@213.239.197.41</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; I don&#39;t know if the SIPerati can discern anything from this. I could<br>
&gt;&gt; pastebin the pcap file if that would be useful.<br>
&gt;&gt;<br>
&gt;&gt; But the angle might be for me to tell FS to give calls a sip_cid_type of<br>
&gt;&gt; &quot;none&quot;. But I don&#39;t quite undersrand from the wiki<br>
&gt;&gt; (<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>
&gt;&gt; put this.<br>
&gt;&gt;<br>
&gt;&gt; The current dialplan is:<br>
&gt;&gt;<br>
&gt;&gt; &lt;extension name=&quot;ajl-test2&quot;&gt;<br>
&gt;&gt;      &lt;condition field=&quot;destination_number&quot; expression=&quot;^44&quot;&gt;<br>
&gt;&gt;        &lt;action application=&quot;privacy&quot; data=&quot;no&quot;/&gt;<br>
&gt;&gt;        &lt;action application=&quot;log&quot; data=&quot;INFO caller_id_number<br>
&gt;&gt; 0${caller_id_number:3}&quot;/&gt;<br>
&gt;&gt;        &lt;action application=&quot;export&quot;<br>
&gt;&gt; data=&quot;origination_caller_id_number=0${caller_id_number:3}&quot;/&gt;<br>
&gt;&gt;        &lt;action application=&quot;bridge&quot;<br>
&gt;&gt; data=&quot;sofia/internal/${<a href="mailto:destination_number%7D@89.202.128.200">destination_number}@89.202.128.200</a>&quot;/&gt;<br>
&gt;&gt;      &lt;/condition&gt;<br>
&gt;&gt; &lt;/extension&gt;<br>
&gt;&gt;<br>
&gt;&gt; Note the hack to change callerid from +44xxx... format to 0xxx... has<br>
&gt;&gt; been replaced by a Lua script that handles it a bit more cleanly.<br>
&gt;&gt;<br>
&gt;&gt; But that &quot;privacy&quot; setting doesn&#39;t seem to be enough.<br>
&gt;&gt;<br>
&gt;&gt; Any ideas or suggestions for more diagnostics?<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; -----<br>
&gt;&gt; No virus found in this message.<br>
&gt;&gt; Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>
&gt;&gt; Version: 2014.0.4570 / Virus Database: 3950/7523 - Release Date: 05/20/14<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; -----<br>
&gt; No virus found in this message.<br>
&gt; Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>
</div></div><div class="im HOEnZb">&gt; Version: 2014.0.4570 / Virus Database: 3950/7531 - Release Date: 05/21/14<br>
&gt;<br>
&gt;<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">_________________________________________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><b>Andrew Cassidy BSc (Hons) MBCS SSCA</b><div>Managing Director<div><div><img src="http://www.cassidywebservices.co.uk/static/emailsig.png"><br>
</div><div><br><div><b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">T</a> </b>03300 100 960 
<b style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">F</a> </b>03300 100 961</div>
<div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">E</a> </b><a href="mailto:andrew@cassidywebservices.co.uk" target="_blank">andrew@cassidywebservices.co.uk</a></div>
<div><b style="text-decoration:none;font-family:sans-serif"><a href="mailto:info@cassidywebservices.co.uk" style="color:rgb(51,135,171);text-decoration:none;font-family:sans-serif" target="_blank">W</a> </b><a href="http://www.cassidywebservices.co.uk" target="_blank">www.cassidywebservices.co.uk</a></div>
</div></div></div></div>
</div>