<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"><<a href="mailto:alex@digitalmail.com" target="_blank">alex@digitalmail.com</a>></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">> One thing I could do with help on is how to make the sip_cid_type work<br>
> for INBOUND calls?<br>
><br>
> i.e. ignore what's in the P-Asserted header and just take the "from"<br>
> address.<br>
><br>
> I don't have a specific trunk set up for these calls, they just come in<br>
> on IP-authorised acl.<br>
><br>
> FWIW, this carrier is the only source of inbound traffic on the box, so<br>
> setting a global default would be acceptable.<br>
><br>
> Cheers!<br>
>> 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. "<a href="tel:02070601234" value="+442070601234">02070601234</a>").<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: "<a href="tel:02070604380" value="+442070604380">02070604380</a>" <<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>
>><br>
>><br>
>> -----<br>
>> No virus found in this message.<br>
>> Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>
>> Version: 2014.0.4570 / Virus Database: 3950/7523 - Release Date: 05/20/14<br>
>><br>
>><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>
><br>
><br>
> -----<br>
> No virus found in this message.<br>
> Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>
</div></div><div class="im HOEnZb">> Version: 2014.0.4570 / Virus Database: 3950/7531 - Release Date: 05/21/14<br>
><br>
><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>