<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">
</head>
<body 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">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">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>
</body>
</html>