[Freeswitch-users] Managing a conference in JS
Birgit Arkesteijn
birgit at westhawk.co.uk
Wed Oct 15 09:33:19 PDT 2008
Hi Mike,
var res = apiExecute("originate", "sofia/gateway/westhawk/0662
'&conference(25 at default)'");
console_log("info", "after apiExecute: " + res);
Well, that worked, thanks!
However, is there a way to create a session first, and then bridge,
transfer or whatever to a conference?
Using a session object gives me the chance to use setHangupHook(). I
need to do some db admin when the first user hangs up.
Also we might introduce TAD, so I need a time window between the call
being answered and pushing it into the conference, so I can make sure it
is a real person.
I tried extending the new Session command below with a 'conference'
command, but that returned an error:
var cSession = new
Session("{ignore_early_media=true,call_timeout=5}sofia/gateway/doneright/0662
'&conference(25 at default)'");
"You must call the session.originate method before calling this method!
"
Cheers, Birgit
On 15/10/08 15:34, Michael Jerris wrote:
> For the first call, if all you need to do is send it into conference,
> you can just use the originate api command with apiExecute.
>
> Mike
>
> On Oct 15, 2008, at 10:12 AM, Birgit Arkesteijn wrote:
>
>> Hi Mike,
>>
>> Thanks again for your answer.
>> I found the page:
>> http://wiki.freeswitch.org/wiki/ApiExecute
>>
>> Sorry to be such a pain, but could you help me out a bit more, please.
>>
>> I'm struggling to drop my first originated my call into a conference.
>>
>> var cSession = new
>> Session("{ignore_early_media=true,call_timeout=5}sofia/gateway/
>> westhawk/0662");
>>
>> Now how do I drop this session into a new conference, using
>> apiExecute?
>> None of the mod_conference api calls that an uuid parameter of a call
>> that is not already inside the conference.
>>
>> I can only make it work with
>> cSession.execute("conference", "25 at default");
>> but that doesn't return.
>>
>>
>> Cheers, Birgit
--
-- Birgit Arkesteijn, birgit at westhawk.co.uk,
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- Company no: 1769350
-- Registered Office:
-- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>
More information about the FreeSWITCH-users
mailing list