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 class="gmail_quote">On Sun, Aug 29, 2010 at 9:40 PM, Nigel Kent <span dir="ltr"><<a href="mailto:ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">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 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><<a href="mailto:dujinfang@gmail.com" target="_blank">dujinfang@gmail.com</a>></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px">
<br>From: Seven Du <<a href="mailto:dujinfang@gmail.com" target="_blank">dujinfang@gmail.com</a>><br>Subject: Re: [Freeswitch-users] Esl rubymod get variable<br>To: "FreeSWITCH Users Help" <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
Date: Sunday, 29 August, 2010, 12:57<div><div></div><div class="h5"><br><br><div><div>while e = conn.recvEvent</div><div>
name = e.getHeader("Event-Name")</div><div> var = e.getHeader("variable_blah")</div><div> 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"><<a rel="nofollow" href="http://mc/compose?to=ktngl@yahoo.co.uk" target="_blank">ktngl@yahoo.co.uk</a>></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" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Blog: <a rel="nofollow" href="http://www.dujinfang.com" target="_blank">http://www.dujinfang.com</a><br>Proj: <a rel="nofollow" href="http://www.freeswitch.org.cn" target="_blank">http://www.freeswitch.org.cn</a><br>
</div><br></div></div>-----Inline Attachment Follows-----<div class="im"><br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></td></tr></tbody></table><br>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto: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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Blog: <a href="http://www.dujinfang.com">http://www.dujinfang.com</a><br>Proj: <a href="http://www.freeswitch.org.cn">http://www.freeswitch.org.cn</a><br>
</div>