Use ${channel-call-state}<div><br></div><div>In fact, do uuid_dump <uuid> to see all the "magic variable" names.</div><div>-MC<br><br><div class="gmail_quote">2010/11/24 Tóth Róbert <span dir="ltr"><<a href="mailto:trob@freemail.hu">trob@freemail.hu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
<pre><b>I would like to get call-state, instead of channel-state. Can i?
Michael Collins</b> <<a href="mailto:freeswitch-users%40lists.freeswitch.org?Subject=%5BFreeswitch-users%5D%20Call-State%20in%20LUA&In-Reply-To=4CEAEFAE.7050606%40freemail.hu" title="[Freeswitch-users] Call-State in LUA" target="_blank">msc at freeswitch.org></a> wrote:
><i> </i>You need to use eval. From the fs_cli it's like this:
><i> </i>
><i> </i>eval uuid:<uuid> ${channel-state}
><i> </i>
><i> </i>Execute that as an API from inside Lua and you should get your call state.
><i> </i>-MC
><i> </i>
><i> </i>On Mon, Nov 22, 2010 at 2:33 PM, Tóth Róbert <<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">trob at freemail.hu</a>> wrote:
><i> </i>
><i> </i>><i> Hi,
</i>><i> </i>><i>
</i>><i> </i>><i> Is it possible to get a channel's Call-State in LUA? Is there a function
</i>><i> </i>><i> for this similar to
</i>><i> </i>><i> session:getState()?
</i>><i> </i>><i>
</i>><i> </i>><i> (I would like to know if a channel is in HELD state.)
</i>><i> </i>><i>
</i>><i> </i>><i> Thanks
</i></pre>
</div>
<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></div>