RE: [Asterisk-java-users] initiating a call from one sip to another through manager
Brought to you by:
srt
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-10 16:45:33
|
I thought that the whole idea of the setExten() was to dial a selected = extension from the selected phone. I am not finding any examples of how setApplication() or setData() is = used. Could you send an example of how to implement these methods? =20 ...... =20 Perhaps I should join both SIPs to a conference? =20 Sorry but am new to Asterisk and Asterisk-Java. =20 =20 TIA!!! ________________________________ From: ast...@li... on behalf of Jesse = Lang Sent: Tue 1/10/2006 10:45 AM To: ast...@li... Subject: Re: [Asterisk-java-users] initiating a call from one sip to = another through manager That's because you're sending a call to both, but unless you maybe pick them up right at the same time, they won't complete a connection and stay off hook. You should really send one of the extensions to the application dial. Look at setApplication() and setData(). J Forte, Graham (GFORTE) wrote: > Hello all, > I am having trouble initiating a call from one sip phone to another > through the manager. > Both phones get "focus" but when I pick either up I get a busy signal. > I am trying to dial SIP/200 from SIP/201 both are on separate pcs from > asterisk. >=20 > here is a code snippet: >=20 > originateAction =3D new OriginateAction(); > originateAction.setChannel("SIP/201"); > originateAction.setContext("external"); > originateAction.setExten("SIP/200"); > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(new Integer(60000)); > originateAction.setCallerId("201"); >=20 > TIA! ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick = <https://homebase.arinc.com/prx/000/http/ads.osdn.com/?ad_id=3D7637&alloc= _id=3D16865&op=3Dclick>=20 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users = <https://homebase.arinc.com/prx/000/https/lists.sourceforge.net/lists/lis= tinfo/asterisk-java-users>=20 |