I'm trying to figure out how to execute an API command such as a lua script after a user has connected to a conference. for example, an extension is executed and the user is connected to a conference: <action application="conference" data="live@home+flags{moderator}"/> after the user has connected to the conference, i want a lua script to run. is this possible? everything i've tried results in executing the lua script before the user is actually connected to the conference.
If you look in the defaults I do something like this: <action application="set" data="=blah=${sched_api(+4 zrtp expand uuid_display ${uuid} \${uuid_getvar(\${uuid_getvar(${uuid} signal_bond)} zrtp_sas1_string )} \${uuid_getvar(\${uuid_getvar($ {uuid} signal_bond)} zrtp_sas2_string )} )}"/> You can set it to anything and use the ${sched_api()} variable to do it for you. This is just one example. /b On Nov 4, 2009, at 1:11 PM, vip killa wrote:
I'm trying to figure out how to execute an API command such as a lua script after a user has connected to a conference.
for example, an extension is executed and the user is connected to a conference: <action application="conference" data="live@home+flags {moderator}"/> after the user has connected to the conference, i want a lua script to run. is this possible? everything i've tried results in executing the lua script before the user is actually connected to the conference.
On Nov 4, 2009, at 1:11 PM, vip killa wrote:
I'm trying to figure out how to execute an API command such as a lua script after a user has connected to a conference.
for example, an extension is executed and the user is connected to a conference: <action application="conference" data="live@home+flags {moderator}"/> after the user has connected to the conference, i want a lua script to run. is this possible? everything i've tried results in executing the lua script before the user is actually connected to the conference.
If you look in {SRC}/conntrib/trixter/scheduled_event.lua there is an example of capturing events in lua, similar to connecting to event socket. You can monitor for conference::maintenance for join events and execute whatever lua code you want to that way. So there are options as to how you do this. -- Trixter http://www.0xdecafbad.com Bret McDanel pgp key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8AE5C721
participants (3)
-
Brian West
-
Trixter aka Bret McDanel
-
vip killa