Thread: 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 |
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-10 17:46:57
|
Excellent! Thanks Jesse! =20 Is there a plcae where I can find all of the parameters for the = setApplication() method? =20 TIA! ________________________________ From: ast...@li... on behalf of Jesse = Lang Sent: Tue 1/10/2006 12:04 PM To: ast...@li... Subject: Re: [Asterisk-java-users] initiating a call from one sip to = another through manager Graham, The example would look like this: originateAction =3D 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? >=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. > > > > here is a code snippet: > > > > 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"); > > > > 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 > = <https://homebase.arinc.com/prx/000/http/ads.osdn.com/?ad_id=3D7637&alloc= _id=3D16865&op=3Dclick> > _______________________________________________ > 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 > = <https://homebase.arinc.com/prx/000/https/lists.sourceforge.net/lists/lis= tinfo/asterisk-java-users> > ------------------------------------------------------- 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 |
From: Jesse L. <je...@jg...> - 2006-01-10 17:53:30
|
Check out the javadocs: http://www.asteriskjava.org/latest/apidocs/index.html Later. J Forte, Graham (GFORTE) wrote: > Excellent! > Thanks Jesse! > > Is there a plcae where I can find all of the parameters for the > setApplication() method? > > TIA! > > ------------------------------------------------------------------------ > *From:* ast...@li... on behalf of > Jesse Lang > *Sent:* Tue 1/10/2006 12:04 PM > *To:* ast...@li... > *Subject:* Re: [Asterisk-java-users] initiating a call from one sip to > another through manager > > 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> > > > <https://homebase.arinc.com/prx/000/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> > > > <https://homebase.arinc.com/prx/000/https/lists.sourceforge.net/lists/listinfo/asterisk-java-users> > > > > > ------------------------------------------------------- > 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> > |
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> > |