<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Verdana","sans-serif";
        color:#44546A;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">Hola Julio,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">I will try to answer, if I understand your question correctly.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">The wiki has good samples of accessing User variables and parameters:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A"><a href="http://wiki.freeswitch.org/wiki/Mod_commands#user_data">http://wiki.freeswitch.org/wiki/Mod_commands#user_data</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">In my case, I use it to store the last number dialed by a group of phones like this&#8230;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">In my User Directory:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">&nbsp; &lt;domain name=&quot;<span style="background:yellow;mso-highlight:yellow">MYDOMAINNAME.com</span>&quot;&gt;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">&nbsp;&nbsp;&nbsp; &lt;user id=&quot;<span style="background:yellow;mso-highlight:yellow">700</span>&quot;&gt;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variables&gt;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in;text-indent:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">[SNIP some data removed]<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name=&quot;accountcode&quot; value=&quot;BFIS&quot;/&gt;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name=&quot;<span style="background:yellow;mso-highlight:yellow">callgroup</span>&quot; value=&quot;1&quot;/&gt;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in;text-indent:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">[SNIP]<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/variables&gt;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;params&gt;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:1.0in;text-indent:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">[SNIP]<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/params&gt;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">&nbsp;&nbsp;&nbsp; &lt;/user&gt;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">&nbsp; &lt;/domain&gt;<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">In the Dial plan:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in;text-autospace:none">
<span style="font-size:9.5pt;font-family:Consolas;color:blue">&lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">action</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red">application</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">set</span>&quot;<span style="color:blue">
</span><span style="color:red">data</span><span style="color:blue">=</span>&quot;<span style="color:blue">called_party_callgroup=<span style="background:yellow;mso-highlight:yellow">${user_data($1@</span></span></span><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A;background:yellow;mso-highlight:yellow">MYDOMAINNAME</span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:yellow;mso-highlight:yellow">.com
 var callgroup)</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">}</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">/&gt;</span><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in;text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:blue">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&lt;</span><span style="font-size:9.5pt;font-family:Consolas;color:#A31515">action</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">
</span><span style="font-size:9.5pt;font-family:Consolas;color:red">application</span><span style="font-size:9.5pt;font-family:Consolas;color:blue">=</span><span style="font-size:9.5pt;font-family:Consolas">&quot;<span style="color:blue">db</span>&quot;<span style="color:blue">
</span><span style="color:red">data</span><span style="color:blue">=</span>&quot;<span style="color:blue">insert/last_dial/${called_party_callgroup}/${uuid}</span>&quot;<span style="color:blue">/&gt;<o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">Hope that helps.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A">Sean<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#44546A"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]
<b>On Behalf Of </b>Julio Saldivar<br>
<b>Sent:</b> Wednesday, January 15, 2014 11:23 AM<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> [Freeswitch-users] Variable in dialplan<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal"><span lang="EN">Dear, I created a variable in the XML directory, how can I get this variable in the dialplan, when calling that phone
<br>
<br>
regards</span><br clear="all">
<br>
-- <br>
Si alguna vez <br>
mi voz deja de escucharse<br>
piensen que el bosque <br>
hablará por mí <br>
con su lenguaje de raíces. <o:p></o:p></p>
</div>
</div>
</body>
</html>