RE: [Asterisk-java-users] having multiple users call a conference
Brought to you by:
srt
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-18 16:15:25
|
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); This works but after @15seconds the sips hang up. Is this due to the = setTimeout()? =20 Thanks again ________________________________ 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 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! ________________________________ 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 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? If you want those users to be called by Asterisk and then joined into a conference OriginateAction is the way to go. =3DStefan |