*I would like to get call-state, instead of channel-state. Can i? Michael Collins* <msc at freeswitch.org> <mailto:freeswitch-users%40lists.freeswitch.org?Subject=%5BFreeswitch-users%5D%20Call-State%20in%20LUA&In-Reply-To=4CEAEFAE.7050606%40freemail.hu> wrote:
/ /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 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>> 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 /
Use ${channel-call-state} In fact, do uuid_dump <uuid> to see all the "magic variable" names. -MC 2010/11/24 Tóth Róbert <trob@freemail.hu>
*I would like to get call-state, instead of channel-state. Can i?
Michael Collins* <msc at freeswitch.org> <freeswitch-users%40lists.freeswitch.org?Subject=%5BFreeswitch-users%5D%20Call-State%20in%20LUA&In-Reply-To=4CEAEFAE.7050606%40freemail.hu> wrote:
* *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 <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>> 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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Michael Collins
-
Tóth Róbert