[Freeswitch-users] privacy and anonymous at anonymous.invalid

Panagiotis Skoulikaritis pskoul at gmail.com
Tue Jul 19 10:57:59 MSD 2016


Dear Younas

I would like to thank you for your suggestion.

I solved it by adding one more condition statement as follows:

<condition field="caller_id_number" expression="^(anonymous)$" 
break="never">
<action application="export" data="sip_from_uri=${sip_from_uri}" 
inline="true"/>
</condition>

Best Regards

Panagiotis

On 18/7/2016 10:47 μμ, Aqs Younas wrote:
>
> Use info application and get the header in variable and set pri to 
> that variable before bridging. You will get what you want.
>
>
> On Jul 18, 2016 4:49 PM, "Panagiotis Skoulikaritis" <pskoul at gmail.com 
> <mailto:pskoul at gmail.com>> wrote:
>
>     Dear all
>
>     I have some issues with a privacy headers, in my understanding is that
>     it has to do with trusted/untrusted networks
>
>
>     FreeSWITCH receives:
>     From: "Anonymous" <sip:anonymous at anonymous.invalid>;tag=as19e43f0e
>     P-Asserted-Identity: "Anonymous" <sip:anonymous at anonymous.invalid>
>
>     and sends out:
>     From: "Anonymous" <sip:anonymous at 10.10.10.10
>     <mailto:sip%3Aanonymous at 10.10.10.10>>;tag=yp9N2QvepFc9K
>     P-Asserted-Identity: "Anonymous" <sip:anonymous at 10.10.10.10
>     <mailto:sip%3Aanonymous at 10.10.10.10>>
>
>     The Terminating carrier doesn't want to receive the IP address but
>     rather the anonymous.invalid
>
>
>     I searched through the mail list but I didn't find anything that could
>     help me fix it.
>
>
>     Bellow is the dialplan I currently use for the carrier:
>
>     <extension name="Test">
>     <condition field="network_addr"
>     expression="^(^10\.10\.10\.1|^10\.10\.11\.1)$"/>
>     <condition field="destination_number" expression="^1234#(\d+)$"
>     require-nested="false">
>     <condition field="caller_id_number" expression="^(00)(\d+)$"
>     break="never">
>     <action application="set" data="effective_caller_id_number=+$2"
>     inline="true"/>
>     <action application="set" data="effective_caller_id_name=+$2"
>     inline="true"/>
>     </condition>
>     <condition field="caller_id_number" expression="^([1-9]\d+)$"
>     break="never">
>     <action application="set" data="effective_caller_id_number=+$1"
>     inline="true"/>
>     <action application="set" data="effective_caller_id_name=+$1"
>     inline="true"/>
>     </condition>
>     <action application="set" data="call_direction=outgoing"/>
>     <action application="set" data="hangup_after_bridge=true"/>
>     <action application="set" data="continue_on_fail=true"/>
>     <action application="set" data="sip_cid_in_1xx=false"/>
>     <action application="set" data="inherit_codec=true"/>
>     <action application="set" data="accountcode=${sip_h_X-ACCOUNTCODE}"
>     inline="true"/>
>     <action application="export"
>     data="nolocal:accountcode=${sip_h_X-ACCOUNTCODE}" inline="true"/>
>     <action application="unset" data="sip_h_X-ACCOUNTCODE" inline="true"/>
>     <action application="set" data="execute_on_answer=sched_hangup +21600
>     alloted_timeout"/>
>     <action application="bridge"
>     data="sofia/external/+$1 at 192.168.157.10:5060
>     <http://1@192.168.157.10:5060>"/>
>     </condition>
>     </extension>
>
>
>     any help will be greatly appreciated.
>
>
>     Best Regards
>
>     Panagiotis
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://confluence.freeswitch.org
>     http://www.cluecon.com
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160719/babb970f/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list