[Freeswitch-users] Call-State in LUA

Michael Collins msc at freeswitch.org
Wed Nov 24 14:57:00 PST 2010


You need to use eval. From the fs_cli it's like this:

eval uuid:<uuid> ${channel-state}

Execute that as an API from inside Lua and you should get your call state.
-MC

On Mon, Nov 22, 2010 at 2:33 PM, Tóth Róbert <trob at freemail.hu> wrote:

> Hi,
>
> Is it possible to get a channel's Call-State in LUA? Is there a function
> for this similar to
> session:getState()?
>
> (I would like to know if a channel is in HELD state.)
>
> Thanks
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101124/8d24e38f/attachment-0001.html 


More information about the FreeSWITCH-users mailing list