<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">that worked thanks<br><br>--- On <b>Mon, 30/8/10, Seven Du <i>&lt;dujinfang@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Seven Du &lt;dujinfang@gmail.com&gt;<br>Subject: Re: [Freeswitch-users] Esl rubymod get variable<br>To: "FreeSWITCH Users Help" &lt;freeswitch-users@lists.freeswitch.org&gt;<br>Date: Monday, 30 August, 2010, 1:50<br><br><div id="yiv205827493"><div class="yiv205827493gmail_quote">@con.api("uuid_getvar", "#@uuid} variable_ivrflag")</div><div class="yiv205827493gmail_quote"><br></div><div class="yiv205827493gmail_quote">On Mon, Aug 30, 2010 at 8:57 AM, Nigel Kent <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:ktngl@yahoo.co.uk" target="_blank" href="/mc/compose?to=ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="yiv205827493gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;" valign="top">I tried a few things as suggested but I am not getting any where<br>
<br>val = @con.execute("uuid_getvar", "#{@uuid} ivrflag")<br>or<br>val = @con.execute("get", "ivrflag")<br>does not get returned with the value of&nbsp; ivrflag. <br><br>What is the correct way to retrieve channel variable data?<br>
<br>--- On <b>Sun, 29/8/10, Mathieu Rene <i>&lt;<a rel="nofollow" ymailto="mailto:mrene_lists@avgs.ca" target="_blank" href="/mc/compose?to=mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<br>From: Mathieu Rene &lt;<a rel="nofollow" ymailto="mailto:mrene_lists@avgs.ca" target="_blank" href="/mc/compose?to=mrene_lists@avgs.ca">mrene_lists@avgs.ca</a>&gt;<div class="yiv205827493im"><br>Subject: Re: [Freeswitch-users] Esl rubymod get variable<br>To: "FreeSWITCH Users Help" &lt;<a rel="nofollow" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
</div>Date: Sunday, 29 August, 2010, 17:31<div><div></div><div class="yiv205827493h5"><br><br><div>uuid_getvar<div><a rel="nofollow" target="_blank" href="http://wiki.freeswitch.org/wiki/Mod_commands#uuid_getvar">http://wiki.freeswitch.org/wiki/Mod_commands#uuid_getvar</a></div>
<div><br><div>
<div><span style="font-size: 12px;"><div>Mathieu Rene</div><div>Avant-Garde Solutions Inc</div><div>Office: + 1 (514) 664-1044 x100</div><div>Cell: +1 (514) 664-1044 x200</div><div><a rel="nofollow" target="_blank" href="http://mc/compose?to=mrene@avgs.ca">mrene@avgs.ca</a></div>
<div><br></div><div><br></div></span></div><br>
</div>
<br><div><div>On 2010-08-29, at 12:38 PM, Nigel Kent wrote:</div><br><blockquote type="cite"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
Thanks for that tip.<br><br>I want to find out as well how to retrieve the&nbsp; value with the opposite of the 'set' command which is how the value was added in the first place.<br><br>Is a get command  not available ?. <br>
<br><br><br>--- On <b>Sun, 29/8/10, Seven Du <i>&lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=dujinfang@gmail.com">dujinfang@gmail.com</a>&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<br>From: Seven Du &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=dujinfang@gmail.com">dujinfang@gmail.com</a>&gt;<br>Subject: Re: [Freeswitch-users] Esl rubymod get variable<br>To: "FreeSWITCH Users Help" &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
Date: Sunday, 29 August, 2010, 16:18<br><br><div>you either can wait for a new event coming, or use the uuid_dump API to get everything.<div><br></div><div>@con.execute("uuid_dump", uuid).getBody<br><br><div>On Sun,
 Aug 29, 2010 at 9:40 PM, Nigel Kent <span dir="ltr">&lt;<a rel="nofollow">ktngl@yahoo.co.uk</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
That is when an event occurs. I am wanting to get current  value of a custom set variable (like application get)<br>
<br>example custom variable ivrflag is set to 0 <br><br>@con.execute("set", "ivrflag=0") <br>Then later on&nbsp; it may be set to 1. <br><br>Now I want to check the current state. What would be the syntax to get the current value of ivrflag<br>

<br><br><br>--- On <b>Sun, 29/8/10, Seven Du <i>&lt;<a rel="nofollow">dujinfang@gmail.com</a>&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<br>From: Seven Du &lt;<a rel="nofollow">dujinfang@gmail.com</a>&gt;<br>Subject: Re: [Freeswitch-users] Esl rubymod get variable<br>To: "FreeSWITCH Users Help" &lt;<a rel="nofollow">freeswitch-users@lists.freeswitch.org</a>&gt;<br>

Date: Sunday, 29 August, 2010, 12:57<div><div></div><div><br><br><div><div>while e = conn.recvEvent</div><div>&nbsp;&nbsp; &nbsp; &nbsp;
 &nbsp; &nbsp; &nbsp;name = e.getHeader("Event-Name")</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;var = e.getHeader("variable_blah")</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;puts e.serialize</div><div>end</div><div><br></div>
<br><div>On Sun, Aug 29, 2010 at 8:36 PM, Nigel Kent <span dir="ltr">&lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">

How can the value of a variable be retrieved in esl ruby<br></td></tr></tbody></table><br>



      <br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" target="_blank" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Blog: <a rel="nofollow" target="_blank" href="http://www.dujinfang.com/">http://www.dujinfang.com</a><br>Proj:&nbsp; <a rel="nofollow" target="_blank" href="http://www.freeswitch.org.cn/">http://www.freeswitch.org.cn</a><br>


</div><br></div></div>-----Inline Attachment Follows-----<div><br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a rel="nofollow" target="_blank" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>

<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>

<a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br></div></div></blockquote></td></tr></tbody></table><br>



      <br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Blog: <a rel="nofollow" target="_blank" href="http://www.dujinfang.com/">http://www.dujinfang.com</a><br>Proj:&nbsp; <a rel="nofollow" target="_blank" href="http://www.freeswitch.org.cn/">http://www.freeswitch.org.cn</a><br>

</div>
</div><br>-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a rel="nofollow">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br>
</div></blockquote></td></tr></tbody></table><br>



      _______________________________________________<br>FreeSWITCH-users mailing list<br><a rel="nofollow" target="_blank" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></blockquote></div><br></div></div><br>-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>
FreeSWITCH-users mailing list<br><a rel="nofollow" target="_blank" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
</div></div></div></blockquote></td></tr></tbody></table><br>



      <br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Blog: <a rel="nofollow" target="_blank" href="http://www.dujinfang.com">http://www.dujinfang.com</a><br>Proj:&nbsp; <a rel="nofollow" target="_blank" href="http://www.freeswitch.org.cn">http://www.freeswitch.org.cn</a><br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>FreeSWITCH-users mailing list<br><a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="/mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></div></blockquote></td></tr></table><br>