Re: [Asterisk-java-users] initiating a call from one sip to another through manager
Brought to you by:
srt
From: Jesse L. <je...@jg...> - 2006-01-10 17:06:05
|
Graham, The example would look like this: originateAction = new OriginateAction(); originateAction.setChannel("SIP/201"); originateAction.setApplication("Dial"); originateAction.setData("SIP/200"); // originateAction.setContext("external"); // originateAction.setExten("SIP/200"); // originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Integer(60000)); originateAction.setCallerId("201"); Hope that helps. Thanks. J Forte, Graham (GFORTE) wrote: > 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? > > ...... > > Perhaps I should join both SIPs to a conference? > > Sorry but am new to Asterisk and Asterisk-Java. > > > 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. > > > > here is a code snippet: > > > > originateAction = 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"); > > > > 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=7637&alloc_id=16865&op=click > <https://homebase.arinc.com/prx/000/http/ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click> > _______________________________________________ > 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/listinfo/asterisk-java-users> > |