[Freeswitch-users] Managing a conference in JS

Michael Jerris mike at jerris.com
Tue Oct 14 10:38:16 PDT 2008


On Oct 14, 2008, at 1:13 PM, Birgit Arkesteijn wrote:

> Hi all,
>
> I'm trying to manage a conference call in js. I found an example on  
> the
> FS wiki:
> http://wiki.freeswitch.org/wiki/Examples_confcall_js
>
> I know that using
> session.execute("conference", route + "@default");
> I can drop a existing (originated) call into a conference.
>
> Reading http://wiki.freeswitch.org/wiki/Mod_conference, I see that  
> it's
> possible to create a conference and controls things from within the
> conference.
> How could I do that in JS?
>
> In other words:
> Is it possible to do in one JS script:
> - create an empty conference

Conferences are completely dynamic, there is no need to create them.

> - dial someone from that conference (and drop them in)

Use apiExecute, for the first member you should use originate, not  
conference dial

> - dial another person from that same conference (and drop them in)

apiExecute conference dial fsapi command

> - dial a third person ...
> - dial a Nth person ...
>
> - wait until all (or all but one) hang up and drop the conference

Conferences are completely dynamic, there is no need to destroy them.





More information about the FreeSWITCH-users mailing list