[Freeswitch-users] Problems with diaplan var settings

Tim Smith randomdev4 at gmail.com
Wed Nov 16 20:16:29 MSK 2016


Debian GNU/Linux 8 (jessie)
Linux vxf 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19)
x86_64 GNU/Linux
FreeSWITCH Version 1.6.12-20-b91a0a6~64bit (-20-b91a0a6 64bit)

Can anyone explain to my why this works :

 <action application="bridge"
data="{origination_privacy=screen+hide_name+hide_number,sip_h_Privacy=id,sip_cid_type=pid,sip_from_display='Anonymous',sip_invite_from_uri='<sip:anonymous at anonymous.invalid>'}sofia/gateway/example/$1$2"/>

And yet this doesn't (nothing happens, no From rewrite, no privacy
settings, nothing ... I have tried swapping "set" for "export" but
that makes no difference either) :

    <action application="set" data="sip_from_display=Anonymous"/>
    <action application="set"
data="sip_invite_from_uri=<sip:anonymous at anonymous.invalid>"/>
    <action application="set" data="sip_cid_type=pid"/>
    <action application="set"
data="origination_caller_id_name=${outbound_caller_id_number}"/>
    <action application="set"
data="origination_caller_id_number=${outbound_caller_id_number}"/>
    <action application="set"
data="origination_privacy=hide_name+hide_number+screen"/>
        <anti-action application="set" data="sip_cid_type=none"/>
        <anti-action application="set" data="sip_invite_domain=my.example.com"/>
       <anti-action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/>
       <anti-action application="set"
data="effective_caller_id_name=${outbound_caller_id_name}"/>
    </condition>
    <action application="set" data="sip_h_X-example-tag=${usr_example_id}"/>
     <action application="set"
data="sip_h_X-example-param1=${usr_example_param1}”/>
     <action application="set"
data="sip_h_X-example-param2=${usr_example_param2}”/>
    <action application="bridge" data="sofia/gateway/example/$1$2"/>



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