[Freeswitch-users] Variable in dialplan
Sean Devoy
sdevoy at bizfocused.com
Thu Jan 16 17:05:24 MSK 2014
Hola Julio,
I will try to answer, if I understand your question correctly.
The wiki has good samples of accessing User variables and parameters:
http://wiki.freeswitch.org/wiki/Mod_commands#user_data
In my case, I use it to store the last number dialed by a group of phones like this...
In my User Directory:
<domain name="MYDOMAINNAME.com">
<user id="700">
<variables>
[SNIP some data removed]
<variable name="accountcode" value="BFIS"/>
<variable name="callgroup" value="1"/>
[SNIP]
</variables>
<params>
[SNIP]
</params>
</user>
</domain>
In the Dial plan:
<action application="set" data="called_party_callgroup=${user_data($1 at MYDOMAINNAME.com var callgroup)}"/>
<action application="db" data="insert/last_dial/${called_party_callgroup}/${uuid}"/>
Hope that helps.
Sean
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Julio Saldivar
Sent: Wednesday, January 15, 2014 11:23 AM
To: freeswitch-users at lists.freeswitch.org
Subject: [Freeswitch-users] Variable in dialplan
Dear, I created a variable in the XML directory, how can I get this variable in the dialplan, when calling that phone
regards
--
Si alguna vez
mi voz deja de escucharse
piensen que el bosque
hablará por mí
con su lenguaje de raíces.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140116/e50e78f7/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list