asterisk-java-users Mailing List for Asterisk-Java Library (Page 114)
Brought to you by:
srt
You can subscribe to this list here.
2005 |
Jan
|
Feb
(8) |
Mar
(33) |
Apr
(36) |
May
(19) |
Jun
(21) |
Jul
(53) |
Aug
(30) |
Sep
(36) |
Oct
(34) |
Nov
(43) |
Dec
(72) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(123) |
Feb
(75) |
Mar
(86) |
Apr
(46) |
May
(41) |
Jun
(29) |
Jul
(76) |
Aug
(38) |
Sep
(39) |
Oct
(68) |
Nov
(16) |
Dec
(17) |
2007 |
Jan
(34) |
Feb
(18) |
Mar
(39) |
Apr
(30) |
May
(20) |
Jun
(10) |
Jul
(59) |
Aug
(54) |
Sep
(60) |
Oct
(22) |
Nov
(14) |
Dec
(10) |
2008 |
Jan
(34) |
Feb
(67) |
Mar
(65) |
Apr
(67) |
May
(60) |
Jun
(51) |
Jul
(88) |
Aug
(75) |
Sep
(47) |
Oct
(143) |
Nov
(54) |
Dec
(42) |
2009 |
Jan
(46) |
Feb
(80) |
Mar
(162) |
Apr
(159) |
May
(200) |
Jun
(34) |
Jul
(46) |
Aug
(59) |
Sep
(5) |
Oct
(35) |
Nov
(73) |
Dec
(30) |
2010 |
Jan
(23) |
Feb
(50) |
Mar
(8) |
Apr
(24) |
May
(19) |
Jun
(49) |
Jul
(56) |
Aug
(35) |
Sep
(26) |
Oct
(79) |
Nov
(39) |
Dec
(34) |
2011 |
Jan
(27) |
Feb
(22) |
Mar
(28) |
Apr
(12) |
May
(16) |
Jun
(19) |
Jul
(1) |
Aug
(64) |
Sep
(19) |
Oct
(11) |
Nov
(17) |
Dec
(12) |
2012 |
Jan
(6) |
Feb
(8) |
Mar
(15) |
Apr
(43) |
May
(41) |
Jun
(14) |
Jul
(32) |
Aug
(3) |
Sep
(4) |
Oct
(7) |
Nov
(11) |
Dec
(11) |
2013 |
Jan
(35) |
Feb
(11) |
Mar
(23) |
Apr
(25) |
May
(37) |
Jun
(47) |
Jul
(25) |
Aug
(21) |
Sep
|
Oct
(1) |
Nov
(9) |
Dec
|
2014 |
Jan
(26) |
Feb
(2) |
Mar
(18) |
Apr
(41) |
May
(7) |
Jun
(7) |
Jul
(24) |
Aug
(5) |
Sep
(6) |
Oct
(8) |
Nov
(9) |
Dec
(7) |
2015 |
Jan
(7) |
Feb
(15) |
Mar
(8) |
Apr
(12) |
May
(7) |
Jun
|
Jul
|
Aug
(5) |
Sep
(1) |
Oct
(3) |
Nov
(30) |
Dec
(3) |
2016 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
(9) |
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(8) |
Dec
(4) |
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: John W. <joh...@gm...> - 2008-05-07 20:46:21
|
You need to use the exec method. channel.exec("Dial","SIP/5551212@foo") On Wed, May 7, 2008 at 1:05 PM, chetherston miles <mil...@gm...> wrote: > Hello, > > For sure i'm losing something, because i'm trying to place a call using the > agi, in phpagi i can do this just calling the Dial() command, how can a do > the same thing using asterisk-java > > Thanks, > Miles > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: chetherston m. <mil...@gm...> - 2008-05-07 20:05:40
|
Hello, For sure i'm losing something, because i'm trying to place a call using the agi, in phpagi i can do this just calling the Dial() command, how can a do the same thing using asterisk-java Thanks, Miles |
From: Martin S. <ma...@be...> - 2008-05-07 05:18:11
|
Hello Jason, We typically focus on using FastAGI here, which is TCP/IP based. It looks like your link for Sphinx 4 (which seems totally Java based, negating the need for Perl) mostly provides setup instructions for regular AGI, which runs as a forked process called from the dial plan. I would expect most of the work for Sphinx to get it to work with Asterisk-Java would be creating a 'server' Agi script that could manage files recorded from the user and execute Sphinx requests. I'd probably learn how Sphinx works in Java first, and then set about writing an Agi script to collect recordings, process them, and return data to the dial plan. Cheers, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 -----Original Message----- From: ast...@li... on behalf of Jason J Burich Sent: Tue 5/6/2008 12:28 PM To: ast...@li... Subject: [Asterisk-java-users] Speech Recognition Has anyone tried using any open source Speech Recognition packages with Asterisk Java? I am currently exploring Sphinx ( http://cmusphinx.sourceforge.net ) and see some examples of how to get use Perl AGI to embed Sphinx inside of Asterisk. I'm wondering if there are any good Java tutorials out there on how to do this. It does not have to be Sphinx, that is just the only open source solution that I have found. I have looked at LumenVox, and it does exactly what we need very nicely. However at this point I cannot convince the people that control the budget that it is worth the money. Thanks, Jason ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Jason J B. <Jas...@ce...> - 2008-05-06 16:30:19
|
Has anyone tried using any open source Speech Recognition packages with Asterisk Java? I am currently exploring Sphinx ( http://cmusphinx.sourceforge.net ) and see some examples of how to get use Perl AGI to embed Sphinx inside of Asterisk. I'm wondering if there are any good Java tutorials out there on how to do this. It does not have to be Sphinx, that is just the only open source solution that I have found. I have looked at LumenVox, and it does exactly what we need very nicely. However at this point I cannot convince the people that control the budget that it is worth the money. Thanks, Jason |
From: James H. <jim...@ho...> - 2008-05-02 13:57:22
|
Hi Thank you for the reply. I shall check the AsteriskChannel API James Date: Fri, 2 May 2008 09:52:32 -0400 From: ma...@be... To: ast...@li... Subject: Re: [Asterisk-java-users] Engaged Call Hello again, The Live API manages a lot of historical information about a channel -- see getXxxHistory() methods at http://asterisk-java.org/development/apidocs/org/asteriskjava/live/AsteriskChannel.html. If you're using the manager API directly, you'll need to manage most of that history and state yourself as you receive events. Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 From: ast...@li... [mailto:ast...@li...] On Behalf Of James Heggs Sent: Thursday, May 01, 2008 6:47 PM To: Asterisk Java Subject: [Asterisk-java-users] Engaged Call Hi Firstly to those that helped us with the Async Call making thank you. Now I'm just asking an algorithm problem. We have made in which an end user enters their number into a box and clicks call me the system firstly calls the end user and then calls the business end. What do we do when the business end is engaged? I'm aware that the LinkedChannel gets temporary made? Is there something we can do with the History of the channel? Thanks all in advance for the help Eggsy Get 5GB of online storage for free! Get it Now! _________________________________________________________________ Be a Hero and Win with Iron Man http://clk.atdmt.com/UKM/go/msnnkmgl0010000009ukm/direct/01/ |
From: Martin S. <ma...@be...> - 2008-05-02 13:52:37
|
Hello again, The Live API manages a lot of historical information about a channel -- see getXxxHistory() methods at http://asterisk-java.org/development/apidocs/org/asteriskjava/live/Aster iskChannel.html. If you're using the manager API directly, you'll need to manage most of that history and state yourself as you receive events. Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of James Heggs Sent: Thursday, May 01, 2008 6:47 PM To: Asterisk Java Subject: [Asterisk-java-users] Engaged Call Hi Firstly to those that helped us with the Async Call making thank you. Now I'm just asking an algorithm problem. We have made in which an end user enters their number into a box and clicks call me the system firstly calls the end user and then calls the business end. What do we do when the business end is engaged? I'm aware that the LinkedChannel gets temporary made? Is there something we can do with the History of the channel? Thanks all in advance for the help Eggsy ________________________________ Get 5GB of online storage for free! Get it Now! <http://clk.atdmt.com/UKM/go/msnnkmgl0010000005ukm/direct/01/> |
From: James H. <jim...@ho...> - 2008-05-01 22:46:40
|
Hi Firstly to those that helped us with the Async Call making thank you. Now I'm just asking an algorithm problem. We have made in which an end user enters their number into a box and clicks call me the system firstly calls the end user and then calls the business end. What do we do when the business end is engaged? I'm aware that the LinkedChannel gets temporary made? Is there something we can do with the History of the channel? Thanks all in advance for the help Eggsy _________________________________________________________________ Great deals on almost anything at eBay.co.uk. Search, bid, find and win on eBay today! http://clk.atdmt.com/UKM/go/msnnkmgl0010000004ukm/direct/01/ |
From: James H. <jim...@ho...> - 2008-04-24 08:14:33
|
Hi guys Thank you very much for the help! Will try the ways suggested. Eggsy _________________________________________________________________ Search and win with BigSnapSearch.com http://www.bigsnapsearch.com |
From: Aaron E. <aar...@gm...> - 2008-04-24 01:01:08
|
Sweet! Thanks Martin! On Wed, Apr 23, 2008 at 4:55 PM, Martin Smith <ma...@be...> wrote: > Hello Aaron & all, > > I've updated the Asterisk-Java FAQ with the example of a JBoss MBean > hosting an Agi server. It should appear overnight on the development > snapshot at asterisk-java.org/development. > > > Martin Smith, Systems Developer > ma...@be... > Bureau of Economic and Business Research > University of Florida > (352) 392-0171 Ext. 221 > > > > > -----Original Message----- > > From: ast...@li... > > [mailto:ast...@li...] On > > > > Behalf Of Aaron Evans > > Sent: Wednesday, April 23, 2008 10:49 AM > > To: ast...@li... > > Subject: Re: [Asterisk-java-users] New to asterisk Java > > > > Martin, > > > > I also would be very interested in some sample code for this approach. > > > > Could you send me the files as well? > > > > thanks, > > aaron > > > > On Tue, Apr 22, 2008 at 12:09 PM, Martin Smith > > <ma...@be...> wrote: > > > Hi Jason, > > > > > > Are you running JBoss with EJB3 support? It's how I run an > > AgiServer > > > already. You're welcome to the code. I ran it before with EJB2.x > > > support, so I can dig that out of the version control too, > > if you only > > > have EJB2 support. > > > > > > I'll send you the files off-list :) > > > > > > > > > Martin Smith, Systems Developer > > > ma...@be... > > > Bureau of Economic and Business Research > > > University of Florida > > > (352) 392-0171 Ext. 221 > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: ast...@li... > > > > [mailto:ast...@li...] On > > > > > > > > > > Behalf Of Jason J Burich > > > > Sent: Tuesday, April 22, 2008 10:58 AM > > > > To: ast...@li... > > > > Subject: Re: [Asterisk-java-users] New to asterisk Java > > > > > > > > Stefan, Martin, > > > > > > > > Thanks for your responses. I had never considered running > > > > the AgiServer > > > > from inside of the container. I think I will look at running the > > > > AgiServer inside of Jboss then. I'm not entirely sure, > > but it appears > > > > to me the best way to do this would be to implement an Mbean that > > > > controls the server. I've done a little digging, and it does > > > > not appear > > > > that one exists yet. Before I write the code I just > > wanted to verify > > > > that I am correct in saying that there is no Mbean for > > controlling the > > > > DefaultAgiServer? > > > > > > > > Thanks, > > > > Jason > > > > > > > > -----Original Message----- > > > > From: ast...@li... > > > > [mailto:ast...@li...] On > > > > Behalf Of > > > > Stefan Reuter > > > > Sent: Monday, April 21, 2008 4:50 PM > > > > To: ast...@li... > > > > Subject: Re: [Asterisk-java-users] New to asterisk Java > > > > > > > > Hi, > > > > > > > > > In other words, whatever started it should stop it. I > > believe the > > > > > default server provided by A-J can only be stopped by > > > > killing process, > > > > > > > > > though. > > > > > > > > Yes it doesn't even call shutdown if you kill it or hit > > > > ctrl-c. I think > > > > there are hooks in the VM that we could hook into to do > > this. I am > > > > however not sure how this would affect users running > > DefaultAgiServer > > > > inside containers. > > > > > > > > =Stefan > > > > > > > > -- > > > > reuter network consulting > > > > Neusser Str. 110 > > > > 50760 Koeln > > > > Germany > > > > Telefon: +49 221 1305699-0 > > > > Telefax: +49 221 1305699-90 > > > > E-Mail: ste...@re... > > > > Jabber: ste...@re... > > > > WWW: http://www.reucon.com > > > > > > > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > > > > > > > > > > -------------------------------------------------------------- > > > > ----------- > > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > > Don't miss this year's exciting event. There's still time to > > > > save $100. > > > > Use priority code J8TL2D2. > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java > > > > .sun.com/javaone > > > > _______________________________________________ > > > > Asterisk-java-users mailing list > > > > Ast...@li... > > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > > > > -------------------------------------------------------------- > > ----------- > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > Don't miss this year's exciting event. There's still time > > to save $100. > > > Use priority code J8TL2D2. > > > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java > > .sun.com/javaone > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > -------------------------------------------------------------- > > ----------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to > > save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java > > .sun.com/javaone > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Martin S. <ma...@be...> - 2008-04-23 20:55:34
|
Hello Aaron & all, I've updated the Asterisk-Java FAQ with the example of a JBoss MBean hosting an Agi server. It should appear overnight on the development snapshot at asterisk-java.org/development. Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On > Behalf Of Aaron Evans > Sent: Wednesday, April 23, 2008 10:49 AM > To: ast...@li... > Subject: Re: [Asterisk-java-users] New to asterisk Java > > Martin, > > I also would be very interested in some sample code for this approach. > > Could you send me the files as well? > > thanks, > aaron > > On Tue, Apr 22, 2008 at 12:09 PM, Martin Smith > <ma...@be...> wrote: > > Hi Jason, > > > > Are you running JBoss with EJB3 support? It's how I run an > AgiServer > > already. You're welcome to the code. I ran it before with EJB2.x > > support, so I can dig that out of the version control too, > if you only > > have EJB2 support. > > > > I'll send you the files off-list :) > > > > > > Martin Smith, Systems Developer > > ma...@be... > > Bureau of Economic and Business Research > > University of Florida > > (352) 392-0171 Ext. 221 > > > > > > > > > > > -----Original Message----- > > > From: ast...@li... > > > [mailto:ast...@li...] On > > > > > > > Behalf Of Jason J Burich > > > Sent: Tuesday, April 22, 2008 10:58 AM > > > To: ast...@li... > > > Subject: Re: [Asterisk-java-users] New to asterisk Java > > > > > > Stefan, Martin, > > > > > > Thanks for your responses. I had never considered running > > > the AgiServer > > > from inside of the container. I think I will look at running the > > > AgiServer inside of Jboss then. I'm not entirely sure, > but it appears > > > to me the best way to do this would be to implement an Mbean that > > > controls the server. I've done a little digging, and it does > > > not appear > > > that one exists yet. Before I write the code I just > wanted to verify > > > that I am correct in saying that there is no Mbean for > controlling the > > > DefaultAgiServer? > > > > > > Thanks, > > > Jason > > > > > > -----Original Message----- > > > From: ast...@li... > > > [mailto:ast...@li...] On > > > Behalf Of > > > Stefan Reuter > > > Sent: Monday, April 21, 2008 4:50 PM > > > To: ast...@li... > > > Subject: Re: [Asterisk-java-users] New to asterisk Java > > > > > > Hi, > > > > > > > In other words, whatever started it should stop it. I > believe the > > > > default server provided by A-J can only be stopped by > > > killing process, > > > > > > > though. > > > > > > Yes it doesn't even call shutdown if you kill it or hit > > > ctrl-c. I think > > > there are hooks in the VM that we could hook into to do > this. I am > > > however not sure how this would affect users running > DefaultAgiServer > > > inside containers. > > > > > > =Stefan > > > > > > -- > > > reuter network consulting > > > Neusser Str. 110 > > > 50760 Koeln > > > Germany > > > Telefon: +49 221 1305699-0 > > > Telefax: +49 221 1305699-90 > > > E-Mail: ste...@re... > > > Jabber: ste...@re... > > > WWW: http://www.reucon.com > > > > > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > > > > > > > -------------------------------------------------------------- > > > ----------- > > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > > Don't miss this year's exciting event. There's still time to > > > save $100. > > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java > > > .sun.com/javaone > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > -------------------------------------------------------------- > ----------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time > to save $100. > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java > .sun.com/javaone > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to > save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java > .sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Aaron E. <aar...@gm...> - 2008-04-23 14:48:32
|
Martin, I also would be very interested in some sample code for this approach. Could you send me the files as well? thanks, aaron On Tue, Apr 22, 2008 at 12:09 PM, Martin Smith <ma...@be...> wrote: > Hi Jason, > > Are you running JBoss with EJB3 support? It's how I run an AgiServer > already. You're welcome to the code. I ran it before with EJB2.x > support, so I can dig that out of the version control too, if you only > have EJB2 support. > > I'll send you the files off-list :) > > > Martin Smith, Systems Developer > ma...@be... > Bureau of Economic and Business Research > University of Florida > (352) 392-0171 Ext. 221 > > > > > > -----Original Message----- > > From: ast...@li... > > [mailto:ast...@li...] On > > > > Behalf Of Jason J Burich > > Sent: Tuesday, April 22, 2008 10:58 AM > > To: ast...@li... > > Subject: Re: [Asterisk-java-users] New to asterisk Java > > > > Stefan, Martin, > > > > Thanks for your responses. I had never considered running > > the AgiServer > > from inside of the container. I think I will look at running the > > AgiServer inside of Jboss then. I'm not entirely sure, but it appears > > to me the best way to do this would be to implement an Mbean that > > controls the server. I've done a little digging, and it does > > not appear > > that one exists yet. Before I write the code I just wanted to verify > > that I am correct in saying that there is no Mbean for controlling the > > DefaultAgiServer? > > > > Thanks, > > Jason > > > > -----Original Message----- > > From: ast...@li... > > [mailto:ast...@li...] On > > Behalf Of > > Stefan Reuter > > Sent: Monday, April 21, 2008 4:50 PM > > To: ast...@li... > > Subject: Re: [Asterisk-java-users] New to asterisk Java > > > > Hi, > > > > > In other words, whatever started it should stop it. I believe the > > > default server provided by A-J can only be stopped by > > killing process, > > > > > though. > > > > Yes it doesn't even call shutdown if you kill it or hit > > ctrl-c. I think > > there are hooks in the VM that we could hook into to do this. I am > > however not sure how this would affect users running DefaultAgiServer > > inside containers. > > > > =Stefan > > > > -- > > reuter network consulting > > Neusser Str. 110 > > 50760 Koeln > > Germany > > Telefon: +49 221 1305699-0 > > Telefax: +49 221 1305699-90 > > E-Mail: ste...@re... > > Jabber: ste...@re... > > WWW: http://www.reucon.com > > > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > > > > -------------------------------------------------------------- > > ----------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to > > save $100. > > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java > > .sun.com/javaone > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Gaëtan M. <gm...@ea...> - 2008-04-23 13:55:30
|
Hi, Another solution is to use sendAction(ManagerAction action, SendActionCallback callback) and pass null as callback, as you're not interested in the result. The code specifically handle the null case with a nice comment :) // if the callbackHandler is null the user is obviously not interested // in the response, thats fine. if (callback != null) { synchronized (this.responseListeners) { this.responseListeners.put(internalActionId, callback); } } Kind regards Gaetan On 23/04/2008, at 15:49, Martin Smith wrote: > James, > > Try using just eventConnection.sendAction(originateAction....) like > the tutorial at http://asterisk-java.org/development/tutorial.html. > > I don't think I've ever even noticed that originate *was* an event > generating action. Either way, the "send event generating action" > code is commented with: > /* > * Implements synchronous sending of event generating actions. > */ > > I'd say use the regular sendAction unless you're expecting a bunch > of events back that you want to wait for, like listing all existing > channels or sip peers or something else that generates events as a > cheap way to return synchronously-available data. > > Let us know how that works out for you :) > > Martin Smith, Systems Developer > ma...@be... > Bureau of Economic and Business Research > University of Florida > (352) 392-0171 Ext. 221 > > > From: ast...@li... [mailto:ast...@li... > ] On Behalf Of James Heggs > Sent: Tuesday, April 22, 2008 4:10 PM > To: Asterisk Java > Subject: [Asterisk-java-users] Asynchrnous calls > > Hi there > > I am currently working with Asterisk Java and trying to make a > dynamic web interface. Within the system from a widget on a web page > I call a servlet that begins to make the call this is all working ok > but what I need the servlet to do is begin to make the call then > return back to the client side immediately. So basically need to > make the call to the Asterisk Server to make the call asynchrnously. > > > Does that make sense? So far I have tried an originate action with > the following details: > > originateAction.setChannel("whatever"); > //originateAction.setChannel("foo/44444"); > originateAction.setContext("context"); > originateAction.setCallerId("\"Test Company\" <SOMENUMBER>"); > originateAction.setExten("9"+exten); > originateAction.setAccount("account"); > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(15000L); > originateAction.setAsync(true); > > final ResponseEvents responseEvents; > final Iterator<ResponseEvent> responseEventIterator; > AsteriskChannel channel = null; > > responseEvents = > eventConnection > .sendEventGeneratingAction > (originateAction,originateAction.getTimeout() + 2000); > > But this doesn't return to the client UNTIL the call is answered is > there something else I need to do other than setting the action to > async - if people need to see more of the code please let me know > > Regards > > Eggsy > > Messenger's gone Mobile! Get it now! > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Martin S. <ma...@be...> - 2008-04-23 13:49:42
|
James, Try using just eventConnection.sendAction(originateAction....) like the tutorial at http://asterisk-java.org/development/tutorial.html. I don't think I've ever even noticed that originate *was* an event generating action. Either way, the "send event generating action" code is commented with: /* * Implements synchronous sending of event generating actions. */ I'd say use the regular sendAction unless you're expecting a bunch of events back that you want to wait for, like listing all existing channels or sip peers or something else that generates events as a cheap way to return synchronously-available data. Let us know how that works out for you :) Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of James Heggs Sent: Tuesday, April 22, 2008 4:10 PM To: Asterisk Java Subject: [Asterisk-java-users] Asynchrnous calls Hi there I am currently working with Asterisk Java and trying to make a dynamic web interface. Within the system from a widget on a web page I call a servlet that begins to make the call this is all working ok but what I need the servlet to do is begin to make the call then return back to the client side immediately. So basically need to make the call to the Asterisk Server to make the call asynchrnously. Does that make sense? So far I have tried an originate action with the following details: originateAction.setChannel("whatever"); //originateAction.setChannel("foo/44444"); originateAction.setContext("context"); originateAction.setCallerId("\"Test Company\" <SOMENUMBER>"); originateAction.setExten("9"+exten); originateAction.setAccount("account"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(15000L); originateAction.setAsync(true); final ResponseEvents responseEvents; final Iterator<ResponseEvent> responseEventIterator; AsteriskChannel channel = null; responseEvents = eventConnection.sendEventGeneratingAction(originateAction,originateActio n.getTimeout() + 2000); But this doesn't return to the client UNTIL the call is answered is there something else I need to do other than setting the action to async - if people need to see more of the code please let me know Regards Eggsy ________________________________ Messenger's gone Mobile! Get it now! <http://messengergonemobile.com> |
From: James H. <jim...@ho...> - 2008-04-22 20:10:25
|
Hi there I am currently working with Asterisk Java and trying to make a dynamic web interface. Within the system from a widget on a web page I call a servlet that begins to make the call this is all working ok but what I need the servlet to do is begin to make the call then return back to the client side immediately. So basically need to make the call to the Asterisk Server to make the call asynchrnously. Does that make sense? So far I have tried an originate action with the following details: originateAction.setChannel("whatever"); //originateAction.setChannel("foo/44444"); originateAction.setContext("context"); originateAction.setCallerId("\"Test Company\" <SOMENUMBER>"); originateAction.setExten("9"+exten); originateAction.setAccount("account"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(15000L); originateAction.setAsync(true); final ResponseEvents responseEvents; final Iterator<ResponseEvent> responseEventIterator; AsteriskChannel channel = null; responseEvents = eventConnection.sendEventGeneratingAction(originateAction,originateAction.getTimeout() + 2000); But this doesn't return to the client UNTIL the call is answered is there something else I need to do other than setting the action to async - if people need to see more of the code please let me know Regards Eggsy _________________________________________________________________ Be a superhero and win! Play the Iron Man Mashup Game http://www.ironmanmashup.co.uk |
From: Stefan R. <ste...@re...> - 2008-04-22 17:17:41
|
Eduard Martínez wrote: > Hi Stefan, I just read about the new support for Async AGI and I think > that this is great :) > But again I was wondering which behaviour will have the new system with > attended transfers. Have you test it? When I have time I will give a try. Uh this will be funny as the channel is used to send the AgiCommands to Asterisk so if it changes... we'll see. Please report back any issues or open a bug report at jira.reucon.org if you encounter trouble :-) =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Jason J B. <Jas...@ce...> - 2008-04-22 16:56:04
|
Yes I am using EJB3. Any examples you could provide would be excellent. I think I've got it running now, but I wouldn't mind comparing what I came up with to what you already have...there's a good chance I missed something since I'm fairly new to Mbeans and Asterisk-Java is really new to me. Thanks, Jason Burich Jas...@ce... -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Martin Smith Sent: Tuesday, April 22, 2008 11:10 AM To: ast...@li... Subject: Re: [Asterisk-java-users] New to asterisk Java Hi Jason, Are you running JBoss with EJB3 support? It's how I run an AgiServer already. You're welcome to the code. I ran it before with EJB2.x support, so I can dig that out of the version control too, if you only have EJB2 support. I'll send you the files off-list :) Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On Behalf > Of Jason J Burich > Sent: Tuesday, April 22, 2008 10:58 AM > To: ast...@li... > Subject: Re: [Asterisk-java-users] New to asterisk Java > > Stefan, Martin, > > Thanks for your responses. I had never considered running the > AgiServer from inside of the container. I think I will look at > running the AgiServer inside of Jboss then. I'm not entirely sure, > but it appears to me the best way to do this would be to implement an > Mbean that controls the server. I've done a little digging, and it > does not appear that one exists yet. Before I write the code I just > wanted to verify that I am correct in saying that there is no Mbean > for controlling the DefaultAgiServer? > > Thanks, > Jason > > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On Behalf > Of Stefan Reuter > Sent: Monday, April 21, 2008 4:50 PM > To: ast...@li... > Subject: Re: [Asterisk-java-users] New to asterisk Java > > Hi, > > > In other words, whatever started it should stop it. I believe the > > default server provided by A-J can only be stopped by > killing process, > > > though. > > Yes it doesn't even call shutdown if you kill it or hit ctrl-c. I > think there are hooks in the VM that we could hook into to do this. I > am however not sure how this would affect users running > DefaultAgiServer inside containers. > > =Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: ste...@re... > Jabber: ste...@re... > WWW: http://www.reucon.com > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java > .sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > ------------------------------------------------------------------------ - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j avaone _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: E. M. <mar...@gm...> - 2008-04-22 16:41:07
|
Hi Stefan, I just read about the new support for Async AGI and I think that this is great :) But again I was wondering which behaviour will have the new system with attended transfers. Have you test it? When I have time I will give a try. On Sat, Apr 5, 2008 at 8:00 AM, Stefan Reuter <ste...@re...> wrote: > Eduard Martínez wrote: > > Finally I can test it. If it is useful for someone, AGI works OK with > > attended transfers. However, if thereis an attended transfer inside an > > agi script, AGIChannel.getName() returns the 'old' channel name, and > > AGIChannel.getVariable("CHANNEL") returns the updated name. > > Thanks for this pointer. > The AgiRequest is only populated when the AgiScript is started with the > data received from Asterisk. > The implications are interesting for the new AsyncAGI stuff where > AgiCommands are converted to Manager actions that include the channel > name. So I guess I have to watch for RenameEvents there and update my > AgiWriter in to use the new channel name. > > =Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: ste...@re... > Jabber: ste...@re... > WWW: http://www.reucon.com > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Martin S. <ma...@be...> - 2008-04-22 16:10:07
|
Hi Jason, Are you running JBoss with EJB3 support? It's how I run an AgiServer already. You're welcome to the code. I ran it before with EJB2.x support, so I can dig that out of the version control too, if you only have EJB2 support. I'll send you the files off-list :) Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On > Behalf Of Jason J Burich > Sent: Tuesday, April 22, 2008 10:58 AM > To: ast...@li... > Subject: Re: [Asterisk-java-users] New to asterisk Java > > Stefan, Martin, > > Thanks for your responses. I had never considered running > the AgiServer > from inside of the container. I think I will look at running the > AgiServer inside of Jboss then. I'm not entirely sure, but it appears > to me the best way to do this would be to implement an Mbean that > controls the server. I've done a little digging, and it does > not appear > that one exists yet. Before I write the code I just wanted to verify > that I am correct in saying that there is no Mbean for controlling the > DefaultAgiServer? > > Thanks, > Jason > > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On > Behalf Of > Stefan Reuter > Sent: Monday, April 21, 2008 4:50 PM > To: ast...@li... > Subject: Re: [Asterisk-java-users] New to asterisk Java > > Hi, > > > In other words, whatever started it should stop it. I believe the > > default server provided by A-J can only be stopped by > killing process, > > > though. > > Yes it doesn't even call shutdown if you kill it or hit > ctrl-c. I think > there are hooks in the VM that we could hook into to do this. I am > however not sure how this would affect users running DefaultAgiServer > inside containers. > > =Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: ste...@re... > Jabber: ste...@re... > WWW: http://www.reucon.com > > Steuernummern 215/5140/1791 USt-IdNr. DE220701760 > > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to > save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java > .sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Jason J B. <Jas...@ce...> - 2008-04-22 15:36:55
|
Excellent. Thanks for the help. If I do indeed go that route I will post my Mbean somewhere for future reference. -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Stefan Reuter Sent: Tuesday, April 22, 2008 10:12 AM To: ast...@li... Subject: Re: [Asterisk-java-users] New to asterisk Java Jason, Indeed for a JMX-centric appserver like JBoss the MBean approach sounds like the way to go. You can not only use it to start/stop the server but also to configure port, max. connections, etc. > I've done a little digging, and it does not appear that one exists > yet. Before I write the code I just wanted to verify that I am > correct in saying that there is no Mbean for controlling the > DefaultAgiServer? No, at least nothing that has been made publicly avaible that I am aware of. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Stefan R. <ste...@re...> - 2008-04-22 15:12:58
|
Jason, Indeed for a JMX-centric appserver like JBoss the MBean approach sounds like the way to go. You can not only use it to start/stop the server but also to configure port, max. connections, etc. > I've done a little digging, and it does not appear > that one exists yet. Before I write the code I just wanted to verify > that I am correct in saying that there is no Mbean for controlling the > DefaultAgiServer? No, at least nothing that has been made publicly avaible that I am aware of. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Jason J B. <Jas...@ce...> - 2008-04-22 14:58:06
|
Stefan, Martin, Thanks for your responses. I had never considered running the AgiServer from inside of the container. I think I will look at running the AgiServer inside of Jboss then. I'm not entirely sure, but it appears to me the best way to do this would be to implement an Mbean that controls the server. I've done a little digging, and it does not appear that one exists yet. Before I write the code I just wanted to verify that I am correct in saying that there is no Mbean for controlling the DefaultAgiServer? Thanks, Jason -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Stefan Reuter Sent: Monday, April 21, 2008 4:50 PM To: ast...@li... Subject: Re: [Asterisk-java-users] New to asterisk Java Hi, > In other words, whatever started it should stop it. I believe the > default server provided by A-J can only be stopped by killing process, > though. Yes it doesn't even call shutdown if you kill it or hit ctrl-c. I think there are hooks in the VM that we could hook into to do this. I am however not sure how this would affect users running DefaultAgiServer inside containers. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Stefan R. <ste...@re...> - 2008-04-21 21:50:29
|
Hi, > In other words, whatever started it should stop it. I believe the > default server provided by A-J can only be stopped by killing process, > though. Yes it doesn't even call shutdown if you kill it or hit ctrl-c. I think there are hooks in the VM that we could hook into to do this. I am however not sure how this would affect users running DefaultAgiServer inside containers. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Martin S. <ma...@be...> - 2008-04-21 21:32:00
|
Hi Jason & welcome :), Asterisk-Java is typically (1) run standalone or (2) hosted inside an application server "container." In either case, it assumes the same thing that called the start methods on it will also shut it down. Most containers have hooks for startup and shutdown that you can use for starting and stopping A-J's AGI server. If you're running this server standalone, then yes, CTRL-C or killing the process would work, or you could work in a shutdown function to your wrapper code. In other words, whatever started it should stop it. I believe the default server provided by A-J can only be stopped by killing process, though. Hope that helps, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On > Behalf Of Jason J Burich > Sent: Monday, April 21, 2008 4:16 PM > To: ast...@li... > Subject: [Asterisk-java-users] New to asterisk Java > > Hello all, > > I'm just getting things started with Asterisk-Java. I'm probably > missing something terribly obvious, but how do you shutdown > the server. > While in development I simply ctrl-c to kill the process. > When we go to > production I'm sure we can just look for and kill the process, but I'm > wondering if there is anything more elegant? I see the > DefaultAgiServer > has a shutdown method, which I'm guessing gets called when I cntrl-c, > but I don't see any way to call that. > > Thanks, > Jason > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to > save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java > .sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Jason J B. <Jas...@ce...> - 2008-04-21 20:15:58
|
Hello all, I'm just getting things started with Asterisk-Java. I'm probably missing something terribly obvious, but how do you shutdown the server. While in development I simply ctrl-c to kill the process. When we go to production I'm sure we can just look for and kill the process, but I'm wondering if there is anything more elegant? I see the DefaultAgiServer has a shutdown method, which I'm guessing gets called when I cntrl-c, but I don't see any way to call that. Thanks, Jason |
From: Stefan R. <ste...@re...> - 2008-04-21 13:48:02
|
Hi, I would like to thank Brett for his kind support and the sound answers he provided, but I am not sure that effort is successful in this particular case. This list should be a helpful resource to everybody seeking help on using Asterisk-Java and surrounding technologies. We are happy to help you get started and provide answers to challenging questions but we asume that you have a basic knowledge of your stuff. This is definitly not the place to cry for copy-and-paste solutions. If you are not able to do your job better leave it to someone else. preetha Ayyappan wrote: > I understand what you are saying.but how to use this? Based on your repeated questions I don't think you understood a single word. Your seem to be hanging around here to grab pre-baked solutions that you can relabel as your work results and that's just not what we are here for. Please accept this and look elsewhere for idiots who are willing to do your work for free. To all others: Sorry for being a bit harsh but we had a similar discussion on the -dev mailing list recently and I really get sick of those help vampires. I don't want to discurage anybody from asking stupid questions, most of them are great learning opportunities for everybody. It's just that I won't accept to turn this list into a Java newbie list or a how-do-webapps-work list. There are certainly better places to acquire this knowledge though it will certainly require more work than copy-and-paste from an email and hitting the compile button. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |