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 16:00:38
|
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! |