Re: [Freeswitch-users] Controlling Conference Controls

2009-06-17 Thread Jason Cromes
I haven't gone to the trouble (yet) of making this work, but I believe
you could use execute_application from the conference controls to do
just about anything with JavaScript...

This Wiki page has some good JavaScript examples...
http://wiki.freeswitch.org/wiki/Examples_JavaScript_Conference_IVR

There are a couple functions in there for voicing user count, etc.
So, I *believe* you could stick those in a script by themselves and
call them using execute_application out of the caller controls...
Somehow, you would have to identify what user is calling the script
and what conference they're in.  (Once you're in the javascript, you
could check a conference number variable that you set when the
person entered the conference.  Or, you could parse the output of
conference list until you found that session's UUID.)
I don't know what else you're trying to do, but once you get one of
them working, the rest should follow a similar template.

Post back if you make it work, I'm interested!

___
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


[Freeswitch-users] Conference users hear MOH until leader enters?

2009-05-26 Thread Jason Cromes
First off, I apologize if this has been sent multiple times, the mailing 
list won't cooperate with me...  Hopefully that is resolved now.

I'm attempting to replicate the behavior of an Asterisk conferencing 
system and I need a feature that, I'm surprised to say, doesn't seem to 
be supported (easily) in FreeSwitch.

I've setup my dialplan so that when a specific extension is hit, it 
calls out to some javascript which acts like an IVR to handle the 
prompts and conferencing setup.  (Similar to this: 
 http://wiki.freeswitch.org/wiki/Examples_confcall_js but with my own 
improvements.)  Anyway, the conferences are stored permanently in a 
database table, but I need them disabled until the conference owner 
dials in and enables his conference.  If other users have entered the 
conference prior to the owner, they should hear music-on-hold until the 
leader enters.  (The purpose of this is to prevent abuse of conferences 
that are, basically, always available.)

This is easy in Asterisk because you can pop someone into MeetMe with 
different flags.  So, in my IVR, I prompt for the conference number 
(known to all) and then the password (known only to the owner/leader). 
 If the proper password is entered, that user is sent to conference XYZ 
with the leader flag set.  If no password is entered, the user goes to 
conference XYZ, without the leader flag.  If anyone enters before the 
leader, they're told by MeetMe that the conference will begin when the 
leader arrives and MeetMe provides MOH until that time.

Help!  This is an absolute deal-breaker for my install...  How can I do 
this in FreeSwitch?  
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