RE: [Asterisk-java-users] having multiple users call a conference
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2006-01-19 01:34:58
|
you can also put the ppl directly into meetme without going trough the dialplan. instead of > originateAction.setContext("ext-meetme"); > originateAction.setExten("8200"); > originateAction.setPriority(new Integer(1)); just use originateAction.setApplication("MeetMe"); originateAction.setData("123"); where 123 is the conference number. =3DStefan On Wed, 2006-01-18 at 11:12 -0500, Forte, Graham (GFORTE) wrote: > Nevermind, > I had the context set as default instead of as ext-meetme. > Thanks!! > Im sure I will have other questions! ;-) > =20 > for(int i=3D0;i<arr.length;i++) > { > =20 > originateAction =3D new OriginateAction(); > originateAction.setChannel(arr[i]); > originateAction.setContext("ext-meetme"); > originateAction.setExten("8200"); > originateAction.setCallerId(arr[i]); > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(new Long(30000)); > originateAction.setAsync(Boolean.TRUE); > =20 > =20 > if(! > managerConnection.isConnected()){ managerConnection.login();} > =20 > managerResponse =3D > managerConnection.sendAction(originateAction,30000); > System.out.println("response=3D"+managerResponse.getResponse()); > } > =20 > =20 > =20 > =20 > Let me rephrase, > I am able to get the conf to work with 2 users but I was wondering if > I was going about it in the wrong way: > =20 > <code snip> > OriginateAction originateAction; > OriginateAction originateAction2; > =20 > ManagerResponse originateResponse; > originateAction =3D new OriginateAction(); > originateAction.setChannel("SIP/201"); > originateAction.setContext("default"); > originateAction.setExten("8200"); > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(new Long(30000)); > =20 > originateAction2 =3D new OriginateAction(); > originateAction2.setChannel("SIP/202"); > originateAction2.setContext("default"); > originateAction2.setExten("8200"); > originateAction2.setPriority(new Integer(1)); > originateAction2.setTimeout(new Long(30000)); > =20 > // connect to Asterisk and log in > managerConnection.login(); > =20 > // send the originate action and wait for a maximum of 30 > seconds for Asterisk > // to send a reply > originateResponse =3D > managerConnection.sendAction(originateAction, 30000); > originateResponse =3D > managerConnection.sendAction(originateAction2, 30000); >=20 > This works but after @15seconds the sips hang up. Is this due to the > setTimeout()? > =20 > Thanks again >=20 > ______________________________________________________________________ > From: ast...@li... on behalf of > Forte, Graham (GFORTE) > Sent: Wed 1/18/2006 9:39 AM > To: ast...@li... > Subject: [Asterisk-java-users] having multiple users call a conference >=20 >=20 > How, > I have tried the following and am having trouble even joining 1 person > to the conference call: > =20 > originateAction =3D new OriginateAction(); > originateAction.setChannel("SIP/201"); > originateAction.setApplication("dial"); > originateAction.setData("8200"); > //originateAction.setContext("default"); > //originateAction.setExten("SIP/200"); > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(new Integer(60000)); > =20 > I am able to dial manually from a sip into 8200 and all works fine. > =20 > Thanks Stefan! >=20 >=20 > ______________________________________________________________________ > From: ast...@li... on behalf of > Stefan Reuter > Sent: Wed 1/18/2006 8:25 AM > To: ast...@li... > Subject: Re: [Asterisk-java-users] having multiple users call a > conference >=20 >=20 > g f schrieb: > > Hello all, > > how can I have multiple users(>2) call into a conference room? > > Is this something I can do with OriginateAction? >=20 > If you want those users to be called by Asterisk and then joined into > a > conference OriginateAction is the way to go. >=20 > =3DStefan >=20 >=20 >=20 |