asterisk-java-users Mailing List for Asterisk-Java Library (Page 143)
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: Stefan R. <sr...@re...> - 2006-09-27 00:08:01
|
Hey Chris, > 1. Number of queue members logged into the queue. > 2. Number of queue members available to take calls > 3. Number of channels currently waiting in the queue (looks like=20 > AsteriskQueue will do this one) > 4. Average wait time. Yes these sound like a good fit for AsteriskQueue. > It looks like the AsteriskQueue interface is a good start for this but = > I'm not sure if it's even possible to get the other information without= =20 > parsing through a big list of queuemember responses. There already is an empty method in live.internal.QueueManager called handleQueueMemberEvent() that is called on initialization, where we could put some meat in. A new live object QueueMember (or AsteriskAgent) will be needed to represent agents. The interesting part starts after initialization, i.e. tracking agent events and updating the model. The relevant ones seem to be - AgentLoginEvent - AgentLogoffEvent - AgentCallbackLoginEvent - AgentCallbackLogoffEvent To associate agents with the callers they are serving (and to see whether they are busy or not) looking for AgentCalledEvents will be needed as well as observing the associated channel for hangup or redirection so we know when the agent is available again. Once that has been done some new methods could be added to AsteriskQueue and AsteriskAgent like support for easy login/logout, etc. > I'm thinking about=20 > adding an action to asterisk QueueStatSummaryRequest that will take as = > an argument the queue name and return the above info as a response (I=20 > really hate the way asterisk tries to send events as a response). Any = > thoughts? I hope that this is not needed because the idea of the live package is to observe asterisk events and update an in memory model of asterisks state so you dont have to talk to asterisk each time you query the state.= =3DStefan --=20 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... |
From: <vaz...@zh...> - 2006-09-26 23:27:17
|
I'm trying to make my Asterisk PBX callback two (external) numbers and connect them together as one call. That means: PBX calls the caller and then the callee, after that the caller can talk to the callee and vice-versa. To do that, I use Asterisk-Java to steer the PBX over the AGI (or at least I think that I'm doing that ;-)). A http-packet containing caller- and callee-number is sent to the webserver which sets them as parameters for my java-application. There I use the Asterisk-Java- Function originateToExtension from the AsteriskServer Interface to get the PBX do what I want (here's the Javadoc to that Interface where you'll also find the function): http://asterisk-java.org/0.3-SNAPSHOT/apidocs/org/asteriskjava/live/ AsteriskServer.html I'm running a default Trixbox-Installation with a VoIP-Uplink to my Provider (CityTel) which works with in- and outbound calls (tested with SIP-Phone). I'm using the following parameters for the function mentioned above: channel: SIP/CityTel/<caller-number> context: CityTel exten: <callee-number> priority: 1 timeout: 30000 Now, I tried it with different configs and allways get the following error: Couldn't find channel: org.asteriskjava.live.NoSuchChannelException: Channel 'SIP/CityTel/<caller-number>' is not available. Does that mean, that this doesn't work with two EXTERNAL numbers or is there another problem I don't see? Probably more an AGI then an Asterisk-Java-Question... Thanks a lot for your help! Saludos Javier |
From: Chris H. <ch...@as...> - 2006-09-26 13:49:42
|
Hi All, I'm working on a system that needs to know exactly what's happening in a queue at all times. What the system needs to know is: 1. Number of queue members logged into the queue. 2. Number of queue members available to take calls 3. Number of channels currently waiting in the queue (looks like AsteriskQueue will do this one) 4. Average wait time. It looks like the AsteriskQueue interface is a good start for this but I'm not sure if it's even possible to get the other information without parsing through a big list of queuemember responses. I'm thinking about adding an action to asterisk QueueStatSummaryRequest that will take as an argument the queue name and return the above info as a response (I really hate the way asterisk tries to send events as a response). Any thoughts? -- Chris Howard Email: ch...@as... Director Software Development Direct: 256.705.0262 Asteria Solutions Group, Inc. Main: 256.705.0277 2904 WestCorp BLVD, Suite 203 Fax: 256.705.0280 Huntsville, AL, 35805 Fax2Mail: 256.705.0262 http://www.asteriasgi.com Toll-Free: 877.ASGI.4.ME |
From: Stefan R. <ste...@gm...> - 2006-09-23 21:31:40
|
AFAIK astmanproxy didnt support Challenge/Response auth for some time but this has been fixed in later astmanproxy versions. Please supply a trace of whats going on there using ngrep (see http://asterisk-java.org/page/aj?entry=debugging_manager_api) Then we can figure out how to solve it. =Stefan On 9/20/06, Jesse Lang <je...@jg...> wrote: > I believe asterisk-java is not able to support astmanproxy because of > the differences in how the authentication works (probably among other > differences). asterisk-java would have to be extended to accomodate > astmanproxy's unique behaviours. Thanks. > > J > > liyuqian wrote: > > > Hi, > > > > In Astmanproxy README file it can support standard Asterisk Manager > > interface, why use asterisk-java can't connect to it? > > > > Some different between both? > > > > Thanks. > > > > Li > > > > Brett Sutton : > > > >>No it can't. > >> > >>asterisk-java is designed to connecto the asterisk manager api. > >>Astmanproxy I belive provides an http interface to make asterisk manager > >>api calls. > >>So astmanproxy is kind of redunant. > >> > >>I do have to say that I don't know much about astmanproxy. > >> > >> > >> > >>liyuqian wrote: > >> > >> > >> > >>>Hi, all: > >>> > >>>I want use asterisk-java connect to astmanproxy(Version 1.21), but i > >>>can't connected to astmanproxy, The asterisk-java reports: > >>>------------------------------------- > >>>a net.sf.asterisk.manager.TimeoutException: Timeout waiting for protocol > >>>identifier > >>>------------------------------------- > >>>The astmanproxy report: > >>>-------------------------------------- > >>>Sep 19 23:34:04: Connection received from 192.168.0.142 > >>>Sep 19 23:34:04: Set 192.168.0.142 input format to standard > >>>Sep 19 23:34:04: Set 192.168.0.142 output format to standard > >>>Sep 19 23:34:04: calling standard_read... > >>>Sep 19 23:34:06: standard_read result = -1 > >>>Sep 19 23:34:06: Connection closed: 192.168.0.142 > >>>Sep 19 23:34:06: --- exiting session_do thread --- > >>>---------------------------------------- > >>> > >>>I reviewed The astmanproxy README file, it can running at standard > >>>asterisk manager Protocol Behavior. > >>> > >>>Can asterisk-java support astmanproxy? Thanks. > >>> > >>>Li > >>> > >>> > >>> > >>> > >>>------------------------------------------------------------------------ > >>> > >>>------------------------------------------------------------------------- > >>>Take Surveys. Earn Cash. Influence the Future of IT > >>>Join SourceForge.net's Techsay panel and you'll get the chance to share your > >>>opinions on IT & business topics through brief surveys -- and earn cash > >>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >>> > >>>------------------------------------------------------------------------ > >>> > >>>_______________________________________________ > >>>Asterisk-java-users mailing list > >>>Ast...@li... > >>>https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > >>> > >>> > >>> > >>> > >> > >> > >> > >> > >> > >> > > > >------------------------------------------------------------------------ > > > >------------------------------------------------------------------------- > >Take Surveys. Earn Cash. Influence the Future of IT > >Join SourceForge.net's Techsay panel and you'll get the chance to share your > >opinions on IT & business topics through brief surveys -- and earn cash > >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > >------------------------------------------------------------------------ > > > >_______________________________________________ > >Asterisk-java-users mailing list > >Ast...@li... > >https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > |
From: Jesse L. <je...@jg...> - 2006-09-20 06:01:26
|
I believe asterisk-java is not able to support astmanproxy because of the differences in how the authentication works (probably among other differences). asterisk-java would have to be extended to accomodate astmanproxy's unique behaviours. Thanks. J liyuqian wrote: > Hi, > > In Astmanproxy README file it can support standard Asterisk Manager > interface, why use asterisk-java can't connect to it? > > Some different between both? > > Thanks. > > Li > > Brett Sutton : > >>No it can't. >> >>asterisk-java is designed to connecto the asterisk manager api. >>Astmanproxy I belive provides an http interface to make asterisk manager >>api calls. >>So astmanproxy is kind of redunant. >> >>I do have to say that I don't know much about astmanproxy. >> >> >> >>liyuqian wrote: >> >> >> >>>Hi, all: >>> >>>I want use asterisk-java connect to astmanproxy(Version 1.21), but i >>>can't connected to astmanproxy, The asterisk-java reports: >>>------------------------------------- >>>a net.sf.asterisk.manager.TimeoutException: Timeout waiting for protocol >>>identifier >>>------------------------------------- >>>The astmanproxy report: >>>-------------------------------------- >>>Sep 19 23:34:04: Connection received from 192.168.0.142 >>>Sep 19 23:34:04: Set 192.168.0.142 input format to standard >>>Sep 19 23:34:04: Set 192.168.0.142 output format to standard >>>Sep 19 23:34:04: calling standard_read... >>>Sep 19 23:34:06: standard_read result = -1 >>>Sep 19 23:34:06: Connection closed: 192.168.0.142 >>>Sep 19 23:34:06: --- exiting session_do thread --- >>>---------------------------------------- >>> >>>I reviewed The astmanproxy README file, it can running at standard >>>asterisk manager Protocol Behavior. >>> >>>Can asterisk-java support astmanproxy? Thanks. >>> >>>Li >>> >>> >>> >>> >>>------------------------------------------------------------------------ >>> >>>------------------------------------------------------------------------- >>>Take Surveys. Earn Cash. Influence the Future of IT >>>Join SourceForge.net's Techsay panel and you'll get the chance to share your >>>opinions on IT & business topics through brief surveys -- and earn cash >>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>> >>>------------------------------------------------------------------------ >>> >>>_______________________________________________ >>>Asterisk-java-users mailing list >>>Ast...@li... >>>https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >>> >>> >> >> >> >> >> >> > >------------------------------------------------------------------------ > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share your >opinions on IT & business topics through brief surveys -- and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >------------------------------------------------------------------------ > >_______________________________________________ >Asterisk-java-users mailing list >Ast...@li... >https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Brett S. <bs...@no...> - 2006-09-20 05:48:36
|
Astmanproxy provides an http interface to asterisk. Astmanproxy uses asterisk manager to communicate with asterisk. So either use asterisk manager api directly (via asterisk-java) if you want to control asterisk from a java program or use Astmanproxy if you want to control asterisk via an http interface. The are just different ways of doing the same thing. liyuqian wrote: > Hi, > > In Astmanproxy README file it can support standard Asterisk Manager > interface, why use asterisk-java can't connect to it? > > Some different between both? > > Thanks. > > Li > > Brett Sutton : > >>No it can't. >> >>asterisk-java is designed to connecto the asterisk manager api. >>Astmanproxy I belive provides an http interface to make asterisk manager >>api calls. >>So astmanproxy is kind of redunant. >> >>I do have to say that I don't know much about astmanproxy. >> >> >> >>liyuqian wrote: >> >> >> >>>Hi, all: >>> >>>I want use asterisk-java connect to astmanproxy(Version 1.21), but i >>>can't connected to astmanproxy, The asterisk-java reports: >>>------------------------------------- >>>a net.sf.asterisk.manager.TimeoutException: Timeout waiting for protocol >>>identifier >>>------------------------------------- >>>The astmanproxy report: >>>-------------------------------------- >>>Sep 19 23:34:04: Connection received from 192.168.0.142 >>>Sep 19 23:34:04: Set 192.168.0.142 input format to standard >>>Sep 19 23:34:04: Set 192.168.0.142 output format to standard >>>Sep 19 23:34:04: calling standard_read... >>>Sep 19 23:34:06: standard_read result = -1 >>>Sep 19 23:34:06: Connection closed: 192.168.0.142 >>>Sep 19 23:34:06: --- exiting session_do thread --- >>>---------------------------------------- >>> >>>I reviewed The astmanproxy README file, it can running at standard >>>asterisk manager Protocol Behavior. >>> >>>Can asterisk-java support astmanproxy? Thanks. >>> >>>Li >>> >>> >>> >>> >>>------------------------------------------------------------------------ >>> >>>------------------------------------------------------------------------- >>>Take Surveys. Earn Cash. Influence the Future of IT >>>Join SourceForge.net's Techsay panel and you'll get the chance to share your >>>opinions on IT & business topics through brief surveys -- and earn cash >>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>> >>>------------------------------------------------------------------------ >>> >>>_______________________________________________ >>>Asterisk-java-users mailing list >>>Ast...@li... >>>https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >>> >>> >> >> >> >> >> >> > >------------------------------------------------------------------------ > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share your >opinions on IT & business topics through brief surveys -- and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >------------------------------------------------------------------------ > >_______________________________________________ >Asterisk-java-users mailing list >Ast...@li... >https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: liyuqian <liy...@95...> - 2006-09-20 05:36:39
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=GB2312" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Hi,<br> <br> In Astmanproxy README file it can support standard Asterisk Manager interface, why use asterisk-java can't connect to it?<br> <br> Some different between both?<br> <br> Thanks.<br> <br> Li<br> <br> Brett Sutton : <blockquote cite="mid...@no..." type="cite"> <pre wrap="">No it can't. asterisk-java is designed to connecto the asterisk manager api. Astmanproxy I belive provides an http interface to make asterisk manager api calls. So astmanproxy is kind of redunant. I do have to say that I don't know much about astmanproxy. liyuqian wrote: </pre> <blockquote type="cite"> <pre wrap="">Hi, all: I want use asterisk-java connect to astmanproxy(Version 1.21), but i can't connected to astmanproxy, The asterisk-java reports: ------------------------------------- a net.sf.asterisk.manager.TimeoutException: Timeout waiting for protocol identifier ------------------------------------- The astmanproxy report: -------------------------------------- Sep 19 23:34:04: Connection received from 192.168.0.142 Sep 19 23:34:04: Set 192.168.0.142 input format to standard Sep 19 23:34:04: Set 192.168.0.142 output format to standard Sep 19 23:34:04: calling standard_read... Sep 19 23:34:06: standard_read result = -1 Sep 19 23:34:06: Connection closed: 192.168.0.142 Sep 19 23:34:06: --- exiting session_do thread --- ---------------------------------------- I reviewed The astmanproxy README file, it can running at standard asterisk manager Protocol Behavior. Can asterisk-java support astmanproxy? Thanks. Li ------------------------------------------------------------------------ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash <a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> ------------------------------------------------------------------------ _______________________________________________ Asterisk-java-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Ast...@li...">Ast...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/asterisk-java-users">https://lists.sourceforge.net/lists/listinfo/asterisk-java-users</a> </pre> </blockquote> <pre wrap=""><!----> </pre> </blockquote> <br> </body> </html> |
From: Brett S. <bs...@no...> - 2006-09-20 03:59:12
|
No it can't. asterisk-java is designed to connecto the asterisk manager api. Astmanproxy I belive provides an http interface to make asterisk manager api calls. So astmanproxy is kind of redunant. I do have to say that I don't know much about astmanproxy. liyuqian wrote: >Hi, all: > >I want use asterisk-java connect to astmanproxy(Version 1.21), but i >can't connected to astmanproxy, The asterisk-java reports: >------------------------------------- >a net.sf.asterisk.manager.TimeoutException: Timeout waiting for protocol >identifier >------------------------------------- >The astmanproxy report: >-------------------------------------- >Sep 19 23:34:04: Connection received from 192.168.0.142 >Sep 19 23:34:04: Set 192.168.0.142 input format to standard >Sep 19 23:34:04: Set 192.168.0.142 output format to standard >Sep 19 23:34:04: calling standard_read... >Sep 19 23:34:06: standard_read result = -1 >Sep 19 23:34:06: Connection closed: 192.168.0.142 >Sep 19 23:34:06: --- exiting session_do thread --- >---------------------------------------- > >I reviewed The astmanproxy README file, it can running at standard >asterisk manager Protocol Behavior. > >Can asterisk-java support astmanproxy? Thanks. > >Li > > > > >------------------------------------------------------------------------ > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share your >opinions on IT & business topics through brief surveys -- and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >------------------------------------------------------------------------ > >_______________________________________________ >Asterisk-java-users mailing list >Ast...@li... >https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: liyuqian <liy...@95...> - 2006-09-20 03:55:20
|
Hi, all: I want use asterisk-java connect to astmanproxy(Version 1.21), but i can't connected to astmanproxy, The asterisk-java reports: ------------------------------------- a net.sf.asterisk.manager.TimeoutException: Timeout waiting for protocol identifier ------------------------------------- The astmanproxy report: -------------------------------------- Sep 19 23:34:04: Connection received from 192.168.0.142 Sep 19 23:34:04: Set 192.168.0.142 input format to standard Sep 19 23:34:04: Set 192.168.0.142 output format to standard Sep 19 23:34:04: calling standard_read... Sep 19 23:34:06: standard_read result = -1 Sep 19 23:34:06: Connection closed: 192.168.0.142 Sep 19 23:34:06: --- exiting session_do thread --- ---------------------------------------- I reviewed The astmanproxy README file, it can running at standard asterisk manager Protocol Behavior. Can asterisk-java support astmanproxy? Thanks. Li |
From: Stefan R. <sr...@re...> - 2006-09-18 20:30:44
|
Hi Jason, did you have a look at the originateToXXXAsync methods in org.asteriskjava.live.AsteriskServer in 0.3-m1? As far as I can see this should address your problem and handles all that callMap stuff under the hood. It also reports whether the channel was busy, not answered and so on. Does that work for you? =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Jason W. <ja...@cl...> - 2006-09-18 16:33:37
|
Hello, I am using asterisk java to send origination requests to asterisk server. I test to see if I have received "Success" in the originationresponse. On some calls, I do receive a Success, but the disposition in the CDR reports shows "Failure" because the line is busy. I pretty sure, please correct me if wrong, that Origination Response is not the same as Disposition as reported by asterisk. Here's my problem. I'm using IAX so I don't know the channel that will be used for the call until the call is answered. Here's what happens in normal opperation: 1. origination action sent to Asterisk server with callMap of variables (one variable is callRecordId, which identifies this call in my database) 2. asterisk originates the call and returns success 3. call is answered, userdefined event is fired, reporting two things... the callRecordId and the channel, so that my origination program can now respond to events generated for this channel. Whenever I receive events from asterisk, I check the channel, and look in my 'channels' map to see which recordid this channel is servicing. Then I know what call the event is referencing. 4. so now when I receive a hangup event, which includes channel, I know which call was hungup. PROBLEM: 1. when the line is 'busy' or basically anything besides 'Answered', I don't enter the extensions and therefor the channel doesn't get registered, and I don't know that the call has failed in my origination program. I do receive a ''hangup" event, but I don't know which origination request it belongs to because the channel never got registered, linked to a callrecordid. when I do an originate, remember that I pass a 'callmap' of variables about the call... If I could override the hangup event, to tell me more than just channel... like 'recordid' also from my callmap, then I could parse this event and problem would be solved. Before I start changing asterisk hangup event code, is their a better, simpler way to solve this problem? Jason |
From: King H. <kin...@ne...> - 2006-09-16 14:12:49
|
Stefan, This will do what I want and actually this is more flexible than what I proposed. However, I think having onRing() will look cleaner :) Thanks! King -----=AD=EC=A9l=B6l=A5=F3----- =B1H=A5=F3=AA=CC: ast...@li... [mailto:ast...@li...] =A5N=B2z = Stefan Reuter =B1H=A5=F3=A4=E9=B4=C1: Saturday, 16 September, 2006 19:41 =A6=AC=A5=F3=AA=CC: ast...@li... =A5D=A6=AE: Re: [Asterisk-java-users] OriginateCallback You can add a PropertyChangeListener to monitor any changes on the originated channel. Example: public void onDialing(AsteriskChannel channel) { channel.addPropertyChangeListener( AsteriskChannel.PROPERTY_STATE, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { System.out.println("New State: " + evt.getNewValue()); } }); } =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Stefan R. <sr...@re...> - 2006-09-16 11:41:24
|
You can add a PropertyChangeListener to monitor any changes on the originated channel. Example: public void onDialing(AsteriskChannel channel) { channel.addPropertyChangeListener( AsteriskChannel.PROPERTY_STATE, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { System.out.println("New State: " + evt.getNewValue()); } }); } =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: King H. <kin...@ne...> - 2006-09-16 05:45:51
|
Palma, I know that as stated in my original email about which event corresponds = to this onRing().=20 I just think that it would be better if the OriginateCallback would also = handle this event within a single callback rather than having the event = handling code distributed in 2 places. King -----=E5=8E=9F=E5=A7=8B=E9=83=B5=E4=BB=B6----- =E5=AF=84=E4=BB=B6=E8=80=85: = ast...@li... = [mailto:ast...@li...] = =E4=BB=A3=E7=90=86 =C3=A1lvaro Palma =E5=AF=84=E4=BB=B6=E6=97=A5=E6=9C=9F: Saturday, 16 September, 2006 13:25 =E6=94=B6=E4=BB=B6=E8=80=85: ast...@li... =E4=B8=BB=E6=97=A8: Re: [Asterisk-java-users] OriginateCallback I guess that you can parse NewExtenEvent or NewStateEvent or NewChannelEvent, I'm not sure which one, but in one of them you can find = a "Ring" state. > Maybe I was not clear in my last email. I want to start "doing things" > when > the Originated call starts to ring (i.e., the customer phone), not the > agent > phone. > > King --=20 Atte. =C3=81lvaro Palma -------------------------------------------------------------------------= Using Tomcat but need to do more? Need to support web services, = security? Get stuff done quickly with pre-integrated technology to make your job = easier Download IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: <ap...@op...> - 2006-09-16 05:25:32
|
I guess that you can parse NewExtenEvent or NewStateEvent or NewChannelEvent, I'm not sure which one, but in one of them you can find = a "Ring" state. > Maybe I was not clear in my last email. I want to start "doing things" > when > the Originated call starts to ring (i.e., the customer phone), not the > agent > phone. > > King --=20 Atte. =C3=81lvaro Palma |
From: King H. <kin...@ne...> - 2006-09-16 05:18:50
|
Maybe I was not clear in my last email. I want to start "doing things" = when the Originated call starts to ring (i.e., the customer phone), not the = agent phone. King -----=AD=EC=A9l=B6l=A5=F3----- =B1H=A5=F3=AA=CC: ast...@li... [mailto:ast...@li...] =A5N=B2z = Chris Howard =B1H=A5=F3=A4=E9=B4=C1: Saturday, 16 September, 2006 5:09 =A6=AC=A5=F3=AA=CC: ast...@li... =A5D=A6=AE: Re: [Asterisk-java-users] OriginateCallback On Sep 15, 2006, at 1:47 PM, King Ho wrote: > Stefan, > > Is it possible to add an onRing() event handler to =20 > OriginateCallback? I am > trying to start getting information ready for the agents when the =20 > phone > starts ringing rather than waiting for the pickup. > > I think onRing() corresponds to a Newchannel event with "State: =20 > Ring" and > the Uniqueid belongs to an Originated call. Would the AgentCalled event work for you? This event fires when the =20 agents phone rings before the agent answers. Chris -------------------------------------------------------------------------= Using Tomcat but need to do more? Need to support web services, = security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users __________ NOD32 1.1758 (20060915) Information __________ This message was checked by NOD32 antivirus system. http://www.nod32.com.hk |
From: Chris H. <chr...@kn...> - 2006-09-15 21:08:59
|
On Sep 15, 2006, at 1:47 PM, King Ho wrote: > Stefan, > > Is it possible to add an onRing() event handler to > OriginateCallback? I am > trying to start getting information ready for the agents when the > phone > starts ringing rather than waiting for the pickup. > > I think onRing() corresponds to a Newchannel event with "State: > Ring" and > the Uniqueid belongs to an Originated call. Would the AgentCalled event work for you? This event fires when the agents phone rings before the agent answers. Chris |
From: King H. <kin...@ne...> - 2006-09-15 18:47:15
|
Stefan, Is it possible to add an onRing() event handler to OriginateCallback? I am trying to start getting information ready for the agents when the phone starts ringing rather than waiting for the pickup. I think onRing() corresponds to a Newchannel event with "State: Ring" and the Uniqueid belongs to an Originated call. Thanks! King |
From: Guilherme C. <gc...@ma...> - 2006-09-15 14:23:54
|
Well, being in a package or not shouldn't be a problema. It should be something else I guess. Where is the error happening, on Asterisk or Java? Can you please send the error message? You can also try to invoke the class using its full-qualified name, like: exten => 1,2,agi,FastAGIDialPlan.YourClassName Regards, Guilherme Chapiewski ---- Mensagem Original ---- From: "Vincent renaville" <ren...@gm...> To: ast...@li... Sent: Ter, Setembro 12, 2006 8:51 am Subject: [Asterisk-java-users] FastAGI package application > Hello, > > I have program a Java FastAGI complete application, I have several classes > so I have integrated it into a package > > package FastAGIDialPlan; > > ths problem is that when I want to execute my application. > > java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer > > I found this information in the Tutorial on the web site > > The service start sucessfully but when I execute the FastAgi from the > Asterisk Server. > > I found a error, > > Somebody know start a FastAGI java program with package ? > > > Thanks for your help > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > Guilherme Chapiewski gc...@ma... |
From: Vincent r. <ren...@gm...> - 2006-09-12 11:51:07
|
Hello, I have program a Java FastAGI complete application, I have several classes so I have integrated it into a package package FastAGIDialPlan; ths problem is that when I want to execute my application. java -cp asterisk-java.jar:. org.asteriskjava.fastagi.DefaultAgiServer I found this information in the Tutorial on the web site The service start sucessfully but when I execute the FastAgi from the Asterisk Server. I found a error, Somebody know start a FastAGI java program with package ? Thanks for your help |
From: Charles K. <ck...@am...> - 2006-09-08 15:34:40
|
Hi, I'm running into roadblock on finding any sample for me to create dynamic meetme conference. I don't know what need to define or requirement for creating dynamic conference. agent/User password room/Conference extension pin number Currently I have static java script with preloading the agent, password and static room "1234" and extension=10 to run 1 conference. I'm kind of fuzzy when it comes to genereate dynamic conference and don't know which one to use "app_meetme" or "app_conference" since I have zaptel card installed and running anyway. I'm running a java server application and would like to implement asterisk-java (agi) to create multiple conference. Thanks! Charles |
From: Aniela M. <leg...@ke...> - 2006-09-07 07:26:56
|
Hi =20 All y b our P b HARM z AC s Y dir t ectl a y from the m m anuf x actu o rer, Your ch r an l ce to e p cono s mize wi i th us http://www.tuhuyadesunmde.com |
From: Stefan R. <sr...@re...> - 2006-09-01 17:32:12
|
Paulo Vieira Jr wrote: > My question is: is there another easy way to get the list of channels i= n > a server? When using 0.3-m1 the easiest way is: AsteriskServer server; Collection<AsteriskChannel> channels; server =3D new DefaultAsteriskServer("pbx0", "manager", "obelisk"); channels =3D server.getChannels(); =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Paulo V. J. <pau...@po...> - 2006-09-01 16:32:22
|
Hi, I'd like get a list of channels in a asterisk server, like command ( show channels concise ). I made a class that implements ManagerResponseHandler and I passed this with the command to the manager. ManagerResponse originateResponse; CommandAction action = new CommandAction(); action.setCommand("show channels concise"); managerConnection.login(); MyResponseHandler responseHandler = new MyResponseHandler(); managerConnection.sendAction(action, responseHandler); In MyResponseHandle --> handleResponse(); I made the treatment and create the list of channels. My question is: is there another easy way to get the list of channels in a server? Thanks. |
From: Henry S. <hen...@gm...> - 2006-08-30 11:02:43
|
Hi all, first of all sorry for this question. I know this is not really an asterisk-java question, but more a basic Java question... i have two classes Ami.Java and GUI.java ==================================== Ami.java (Login for Asterisk Manager) ==================================== public class Ami implements ManagerEventHandler { private ManagerConnection managerConnection; public Ami() throws IOException { ManagerConnectionFactory factory = new ManagerConnectionFactory(); this.managerConnection = factory.getManagerConnection ("192.168.200.1", "admin", "admin"); } public void run() throws IOException, AuthenticationFailedException, TimeoutException { managerConnection.login(); managerConnection.addEventHandler(this); } public void handleEvent(ManagerEvent event) { if((event instanceof DialEvent)) { System.out.println(((DialEvent) event).getSrc()); System.out.println(((DialEvent)event).getDestination()); } } } ====================================================== GUI.java (JFrame with 2 JTextFields) ====================================================== public class GUI extends JFrame { JPanel sPanel; JTextField sTextField1, sTextField2; public GUI() throws Exception { super ("Asterisk Manager"); sPanel = new JPanel(); sTextField1 = new JTextField(15); sTextField2 = new JTextField(15); sPanel.add(sTextField1); sPanel.add(sTextField2); Ami ami = new Ami(); ami.run(); getContentPane().add(sPanel); setSize(200,100); setVisible(true); } public static void main(String args[]) { try{GUI gui = new GUI();} catch(Exception e){} } } ======================================================= when i start GUI i have my JFrame with 2 JTextFields and the following output in the console CAPI/EICON/2001-11b SIP/2001-09088da0 Now i want to insert the first line in JTextField1 and the second file in JTextFiled2. Again, i know is not really an Asterisk-Java question but i hope someone can help me. thx in advance! |