<div dir="ltr"><div>I'm setting up a conference system for a school, and a feature is instead of simply unmuting, the student raises their hand.</div><div><br></div><div>I hacked together something with execute_application javascript that saves to coredb sqlite, so we can get a timestamp. (modifying to add a flag wouldn't be good enough, we want to save the order).</div><div><br></div><div>Then I want to play a notice only to the moderator that someone has a question.<br></div><div>I set up something super-hacky, and was wondering if there's a more robust way. Or a simple code change to add this functionality (I'm not a C coder, but it wasn't obvious to add "saymember moderator X" without a bunch more code)</div><div><br></div><div>Since I need the moderator's member id to the conference, which isn't set until after he joins, I did this:</div><div><br></div><div><action application="set" data="api_result=${jsrun conference/setModerator.js myConference ${uuid}}" /><br>                   <action application="conference" data="

myConference@school++flags{endconf|moderator}"/><br></div><div><br></div><div>Then setModerator.js does a uuid get var to get his id:</div><div><br></div><div>var memberID = apiExecute("uuid_getvar", argv[1] + " conference_member_id");<br>     console_log("DEBUG","Got ID @ "+i+": " + memberID);<br>     memberID = parseInt(memberID,10);<br>     if(memberID && memberID>0){ //NaN is falsy, we're good.<br>                var saveString="insert/conference_"+argv[0]+"/moderator/"+memberID;<br>               console_log("DEBUG","Done, saving: " + memberID + ", string:"+saveString);<br>              apiExecute("hash",saveString);<br></div><div><br></div><div>I put in a wait and repeat, but I guess starting up v8 takes long enough that the variable is set by then.</div><div><br></div><div>This seems very hacky, is there a better way to do this?</div><div><br></div>Thanks,<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">-Avi Marcus<br>1-718-989-9485 (USA)<br>02-372-1570 (Israel)<br></div></div></div></div></div></div>