[Freeswitch-users] caller_id_name variables question

Antonio Silva asilva at wirelessmundi.com
Mon Jan 16 17:08:52 MSK 2017


hi,

i think that effective_caller_id is deprecated in flavor of set_profile_var:

check: 
https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+set+profile+var


On 01/16/2017 01:05 PM, Mimiko wrote:
> Hello.
>
> This is a snippet:
>
> <extension name="set_caller_name_db" continue="true">
>    <condition field="${user_exists(id ${caller_id_number} $${domain})"
> expression="^false$"/>
>    <condition field="${effective_caller_id_number}" expression="^$">
>     <action application="set" inline="true"
> data="effective_caller_id_name=${lua(get_name_from_db.lua
> ${caller_id_number})}"/>
>     <action application="set" inline="true"
> data="origination_caller_id_name=${effective_caller_id_name}"/>
>     <action application="set" inline="true"
> data="caller_id_name=${effective_caller_id_name}"/>
>     <anti-action application="set" inline="true"
> data="effective_caller_id_name=${lua(get_name_from_db.lua
> ${effective_caller_id_number})}"/>
>     <anti-action application="set" inline="true"
> data="origination_caller_id_name=${effective_caller_id_name}"/>
>     <anti-action application="set" inline="true"
> data="caller_id_name=${effective_caller_id_name}"/>
>    </condition>
> </extension>
>
> If the caller is not in local users, then try to set caller_id_name from
> database. Script works ok.
>
> My question is which of this three actions setting vars is redundant:
> effective_caller_id_name, origination_caller_id_name, caller_id_name
>
> Thank you
>
> _________________________________________________________________________
> 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

-- 

Saludos / Regards / Cumprimentos,
António silva




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