asterisk-java-users Mailing List for Asterisk-Java Library (Page 130)
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. <ste...@re...> - 2007-07-31 15:51:38
|
Hi, > The response I get is containing response=3D'Follows' but nothing seems= > to follow. Launching the command through the CLI gives a correct > result. the correct snippet for sending a command action looks like this: response =3D sendAction(new CommandAction(command)); if (!(response instanceof CommandResponse)) { throw some exception here } return ((CommandResponse) response).getResult(); is this what you have? > For information, my more general goal is to try to establish the type > of channel given an extension. For example, suppose I have an > extension 804, I would like to try 'sip show peer 804', if it fails > then 'iax2 show peer 804'. Is is a good method or can I make it > better? If you don't know upfront whether the channel is a SIP or IAX channel thats probably the only solution. If you have a corresponding extension in the dialplan though, you could also use Local/ channels. Example [default] 804 =3D> Dial(IAX2/804) Then just use Local/804@default instead of IAX2/804. Hope that helps, Stefan --=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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Bruno K. <kon...@wa...> - 2007-07-31 10:14:06
|
Hello, I am using latest release of Asterisk-java and Asterisk 1.4. I am trying to use managerConnection.sendAction(action) where is action is : CommandAction action = new CommandAction("iax2 show peer 804"); 804 is an extension using a Zoiper phone. The response I get is containing response='Follows' but nothing seems to follow. Launching the command through the CLI gives a correct result. Can someone explain the behavior? Am I missing something? For information, my more general goal is to try to establish the type of channel given an extension. For example, suppose I have an extension 804, I would like to try 'sip show peer 804', if it fails then 'iax2 show peer 804'. Is is a good method or can I make it better? Thanks for your help, Bruno Konik |
From: Stefan R. <ste...@re...> - 2007-07-30 10:19:34
|
Henrik Buchholz wrote: > Perhaps you could have a look at it or shall I use Jira directly? Thanks for the sample, I'll have a look at it. Putting it into Jira helps us track the status, produce nice release notes/changelog if the issue results in a change. =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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Henrik B. <hen...@fr...> - 2007-07-30 09:51:49
|
Am Freitag, den 27.07.2007, 20:35 +0200 schrieb Stefan Reuter: > > In addition to that I now sometimes don't get any rooms from > > getMeetMeRooms, even if there is an active one. But - when all users > > have left the room or have been kicked out - getMeetMeRooms returns the > > now unused room as described above... > > > > I can't really reproduce this, it happens sometimes and sometimes > > everything works. > > Thats really strange. Can you try to reproduce it and open a bug in Jira > for this one? Hi, the problem seems to occur when I establish a call via asterisk-java with originateAction and redirect it afterwards to a meetmeconference with RedirectAction. I attached a sample java-class which interacts with the console and produces this problem. Entering "c" on the console connects the two channels, "r" redirects it to the meetme extension, "m" shows the active meetme conferences. The dialplan I used for testing is pretty simple: [default] exten => 4315,1,Dial(SIP/user1) exten => 4316,1,Dial(SIP/user2) exten => 901,1,Answer() exten => 901,n,MeetMe(${EXTEN},1MaAx) exten => 901,n,Hangup() Perhaps you could have a look at it or shall I use Jira directly? thanks Henrik The console output is the following (with comments): //startup java MeetMeTest 30.07.2007 11:31:37 org.asteriskjava.manager.internal.ManagerConnectionImpl connect INFO: Connecting to dairyman.informatik.uni-bremen.de:5038 30.07.2007 11:31:37 org.asteriskjava.manager.internal.ManagerConnectionImpl setProtocolIdentifier INFO: Connected via Asterisk Call Manager/1.0 30.07.2007 11:31:37 org.asteriskjava.manager.internal.ManagerConnectionImpl doLogin INFO: Successfully logged in 30.07.2007 11:31:37 org.asteriskjava.manager.internal.ManagerConnectionImpl doLogin INFO: Determined Asterisk version: Asterisk 1.4 //connecting the channels c //and redirecting it to the meetme app r org.asteriskjava.manager.event.StatusEvent SIP/user1-08215538 SIP/user2-0820f6e0 org.asteriskjava.manager.response.ManagerResponse: actionId='null'; message='Dual Redirect successful'; response='Success'; uniqueId='null'; systemHashcode=9516880 //check for active conferences m 30.07.2007 11:31:49 org.asteriskjava.live.internal.ChannelManager handleStatusEvent INFO: Adding new channel SIP/user1-08215538 30.07.2007 11:31:49 org.asteriskjava.live.internal.ChannelManager handleStatusEvent INFO: Adding new channel SIP/user2-0820f6e0 30.07.2007 11:31:49 org.asteriskjava.live.internal.AsteriskServerImpl initializeIfNeeded INFO: Initializing done [] //nothing found m [] m [] //hangup user1 30.07.2007 11:31:57 org.asteriskjava.live.internal.MeetMeManager getOrCreateUserImpl INFO: Adding channel SIP/user1-08215538 as user 2 to room 901 30.07.2007 11:31:57 org.asteriskjava.live.internal.MeetMeManager handleMeetMeEvent INFO: Removing channel SIP/user1-08215538 from room 901 30.07.2007 11:31:57 org.asteriskjava.live.internal.ChannelManager handleHangupEvent INFO: Removing channel SIP/user1-08215538 due to hangup (NOTDEFINED) 30.07.2007 11:31:57 org.asteriskjava.live.internal.ChannelManager handleCdrEvent INFO: Ignored CdrEvent for unknown channel with uniqueId 1185787901.1 //check for active conferences - and getting one m [MeetMeRoom[roomNumber='901',systemHashcode=31321027]] 901 [MeetMeUser[dateJoined='Mon Jul 30 11:31:57 CEST 2007',dateLeft='null',talking=false,muted=false,room=MeetMeRoom[roomNumber='901',systemHashcode=31321027],channel=AsteriskChannel[id='1185787900.0',name='SIP/user2-0820f6e0'],systemHashcode=10586786]] 30.07.2007 11:32:14 org.asteriskjava.live.internal.MeetMeManager handleMeetMeEvent INFO: Removing channel SIP/user2-0820f6e0 from room 901 30.07.2007 11:32:14 org.asteriskjava.live.internal.ChannelManager handleHangupEvent INFO: Removing channel SIP/user2-0820f6e0 due to hangup (NORMAL) |
From: Henrik <hen...@fr...> - 2007-07-27 19:28:07
|
ast...@li... wrote: > Asterisk allows to retrieve active rooms with active defined as "room > with at least one participant". > Asterisk-Java provides a getMeetMeRoom(roomName) method that returns a > room object even if the room is empty. This allows you to register a > listener on the room to be notified if someone enters the room even if > the room was inactive before. The room object is then stored > internally. The same thing happens with rooms that were active and > became inactive later on. Therefore you see a mixture of active and > inactive > rooms when > calling getMeetMeRooms(). > A better implementation would be to only return active rooms. I have > created http://jira.reucon.org/browse/AJ-80 to track this enhancement. Hi Stefan thanks for your answer. Ok, I can do a workaround as you described. >> In addition to that I now sometimes don't get any rooms from >> getMeetMeRooms, even if there is an active one. But - when all users >> have left the room or have been kicked out - getMeetMeRooms returns >> the now unused room as described above... >> >> I can't really reproduce this, it happens sometimes and sometimes >> everything works. > > Thats really strange. Can you try to reproduce it and open a > bug in Jira > for this one? Yup, I'll try to produce an example for this if it happens again. Probably sometimes next week.. Thank you Henrik |
From: Stefan R. <ste...@re...> - 2007-07-27 18:35:46
|
Hi Henrik, Asterisk allows to retrieve active rooms with active defined as "room with at least one participant". Asterisk-Java provides a getMeetMeRoom(roomName) method that returns a room object even if the room is empty. This allows you to register a listener on the room to be notified if someone enters the room even if the room was inactive before. The room object is then stored internally. The same thing happens with rooms that were active and became inactive later on. Therefore you see a mixture of active and inactive rooms when calling getMeetMeRooms(). A better implementation would be to only return active rooms. I have created http://jira.reucon.org/browse/AJ-80 to track this enhancement. For now the best workaround would be to check them for emptyness in your code. > In addition to that I now sometimes don't get any rooms from > getMeetMeRooms, even if there is an active one. But - when all users > have left the room or have been kicked out - getMeetMeRooms returns the= > now unused room as described above... >=20 > I can't really reproduce this, it happens sometimes and sometimes > everything works. Thats really strange. Can you try to reproduce it and open a bug in Jira for this one? =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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Henrik B. <hen...@fr...> - 2007-07-27 14:25:18
|
> I just experimented with asteriskjava.live to get information about > MeetMeRooms. Looks great so far, but I'm experiencing problems when > using AsteriskServer.getMeetMeRooms(). > > When I have an active meetme-room everything seems to be ok, I get the > room and the users in it. > > After all users have left the room getMeetMeRooms() still returns the > room but without users in it. Entering meetme in the CLI shows no active > rooms at this point. In addition to that I now sometimes don't get any rooms from getMeetMeRooms, even if there is an active one. But - when all users have left the room or have been kicked out - getMeetMeRooms returns the now unused room as described above... I can't really reproduce this, it happens sometimes and sometimes everything works. Can anybody help me out of this? Greetings Henrik |
From: Maciek T. <mlo...@gm...> - 2007-07-26 15:48:37
|
Hi, problem solved. I found method getQueue tath returns the name of the queue. It was my oversight. Bye 2007/7/25, Maciek Tokarski <mlo...@gm...>: > > Hello, > I'm developing application that uses AMI for collecting informations about > call queues, of course I use a asterisk-java. > I have question to people who have some exprience with handling queues > events. > I store informations about agents in array. One of those information is > name of queue thah agent is member of. But AgentCallbackLoginEvent or > AgentCallbackEvent do not cover such an information like name of queue that > agent just login. So only way to obtain name of queue is to send a > QueueSatusAction after receiving AgentLogin event. > Is there any other way to get queue name? > Any ideas? > > Thanks, Maciek > -- > Pozdrawiam > Maciek Tokarski -- Pozdrawiam Maciek Tokarski |
From: Henrik B. <hen...@fr...> - 2007-07-26 14:26:01
|
Hi, I just experimented with asteriskjava.live to get information about MeetMeRooms. Looks great so far, but I'm experiencing problems when using AsteriskServer.getMeetMeRooms(). When I have an active meetme-room everything seems to be ok, I get the room and the users in it. After all users have left the room getMeetMeRooms() still returns the room but without users in it. Entering meetme in the CLI shows no active rooms at this point. I could use the empty users collection as workaround, but that shouldn't be the right way... Any hints? Henrik |
From: Maciek T. <mlo...@gm...> - 2007-07-25 14:45:02
|
Hello, I'm developing application that uses AMI for collecting informations about call queues, of course I use a asterisk-java. I have question to people who have some exprience with handling queues events. I store informations about agents in array. One of those information is name of queue thah agent is member of. But AgentCallbackLoginEvent or AgentCallbackEvent do not cover such an information like name of queue that agent just login. So only way to obtain name of queue is to send a QueueSatusAction after receiving AgentLogin event. Is there any other way to get queue name? Any ideas? Thanks, Maciek -- Pozdrawiam Maciek Tokarski |
From: robert h. <rls...@op...> - 2007-07-23 03:45:36
|
>Hi Robert, > >> What do I replace these events with? This is part of class that = monitors >> events on multiple channels while asynchronously originating a call. = I >> would rather not have to reinvent it to work with asteriskjava.live > >Replace OriginateSuccessEvent and OriginateFailureEvent with >OriginateEvent and use its isSuccess() method. > >Note: OriginateSuccessEvent and OriginateFailureEvent are deprected >since Asterisk-Java 0.3 but will still work as long as you are using >Asterisk 1.2.x. In any case it's a good idea to stop using them as >OriginateEvent and isSuccess() will work with both Asterisk 1.2 and = 1.4. > >Hpe that helps, > >=3DStefan Thanks, problem solved. Robert. |
From: Martin S. <ma...@be...> - 2007-07-20 12:53:09
|
Hi Maciek , =20 Your test is nice and good, except it doesn't test the problem you're running into. =20 It sounds like you *want* to test: =20 =20 public void ConvTest() { ManagerResponse resp1=3D new ExtensionStateResponse(); ExtensionStateResponse resp2=3D(ExtensionStateResponse)resp1; } =20 A better question is... When the cast fails in your code, print out resp1.getClass() and see if the thing you're casting really is something you can cast from. Also, be aware that there are legitimately cases where ManagerConnection.sendAction may not return the type you expect, or may return a null value. In your original snippet, I would do the following: ManagerResponse response =3D conn.sendAction(action); =20 if(response !=3D null) System.out.println(response.getClass()); else System.out.println("Response was null"); =20 // later on, cast it if response.getClass() =3D=3D ExtensionStateResponse.class // or if (response instanceof ExtensionStateResponse) <-- I prefer this one better Best, =20 Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 =20 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Maciek Tokarski Sent: Friday, July 20, 2007 7:55 AM To: ast...@li... Subject: Re: [Asterisk-java-users] Converting ManagerResponse toExtensionStateResponse =09 =09 Hi,=20 =09 David Roden wrote: >Find out what resp's type really is and work from there. =09 maybe I do not understand the question but the type of resp variable is ExtensionStateResponse =09 conn.SendActrion(action) returns variable that type is ManagerResponse.=20 =09 I've made some experiment: function as follows: =20 public void ConvTest() { ManagerResponse resp1=3D new ManagerResponse(); ExtensionStateResponse resp2=3Dnew ExtensionStateResponse(); resp2=3D(ExtensionStateResponse)resp1; } doesn't log classes cast problems, but it throws null-pointer exception.=20 =09 I think it's a bug in asterisk-java --=20 Pozdrawiam Maciek Tokarski=20 |
From: Maciek T. <mlo...@gm...> - 2007-07-20 11:54:44
|
Hi, David Roden wrote: >Find out what resp's type really is and work from there. maybe I do not understand the question but the type of resp variable is ExtensionStateResponse conn.SendActrion(action) returns variable that type is ManagerResponse. I've made some experiment: function as follows: public void ConvTest() { ManagerResponse resp1= new ManagerResponse(); ExtensionStateResponse resp2=new ExtensionStateResponse(); resp2=(ExtensionStateResponse)resp1; } doesn't log classes cast problems, but it throws null-pointer exception. I think it's a bug in asterisk-java -- Pozdrawiam Maciek Tokarski |
From: David R. <dr...@in...> - 2007-07-20 10:51:33
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Maciek Tokarski wrote: > NetBeans gives me output as follow: > java.lang.ClassCastException: > org.asteriskjava.manager.response.ManagerResponse cannot be cast to > org.asteriskjava.manager.response.ExtensionStateResponse Find out what resp's type really is and work from there. David - -- INA Service GmbH Papenreye 63 22453 Hamburg Germany Mail: in...@in... Phone: +49 (0)40 557 07-07 Fax: +49 (0)40 557 07-100 Geschäftsführer: Ines M. Hoerner Amtsgericht Hamburg HRB 96470 Ust-IdNr. DE248754961 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGoJOeah2J2g3uuwIRAoMoAKCgq4zjz/gf4rcjCSlKSyAM8ZlgoACfdmND jqsrSzSDmV7YeMQpBu4c6pw= =HEua -----END PGP SIGNATURE----- |
From: Maciek T. <mlo...@gm...> - 2007-07-20 09:47:38
|
Hi all, i have one problem: when I'm trying to handle response to ExtensionStateAction I do something like that: ExtensionStateResponse resp; try { resp=(ExtensionStateResponse)conn.sendAction(action); return resp.getStatus(); } catch (Exception ex) { System.out.println(ex.toString()); return null; } where "conn"'s type is ManagerConnection. But there is no way to cast ManagerResponse to ExtensionStateResponse. NetBeans gives me output as follow: java.lang.ClassCastException: org.asteriskjava.manager.response.ManagerResponse cannot be cast to org.asteriskjava.manager.response.ExtensionStateResponse It is weird because ExtensionStateResponse extends ManagerResponse. Any ideas? -- Pozdrawiam Maciek Tokarski |
From: Stefan R. <ste...@re...> - 2007-07-20 06:30:23
|
Hi Robert, > What do I replace these events with? This is part of class that monitor= s > events on multiple channels while asynchronously originating a call. I > would rather not have to reinvent it to work with asteriskjava.live Replace OriginateSuccessEvent and OriginateFailureEvent with OriginateEvent and use its isSuccess() method. Note: OriginateSuccessEvent and OriginateFailureEvent are deprected since Asterisk-Java 0.3 but will still work as long as you are using Asterisk 1.2.x. In any case it's a good idea to stop using them as OriginateEvent and isSuccess() will work with both Asterisk 1.2 and 1.4. Hpe that helps, =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... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: robert h. <rls...@op...> - 2007-07-20 03:22:49
|
I have a significant amount of code utilizing OriginateFailureEvent and = OriginateSuccessEvent which are both deprecated since Asterisk 1.4. if (event instanceof OriginateSuccessEvent) { OriginateSuccessEvent success =3D (OriginateSuccessEvent) event; if (this.actionID.compareToIgnoreCase(success.getActionId()) =3D=3D 0) { originateSuccess =3D true; notify(); } } What do I replace these events with? This is part of class that monitors = events on multiple channels while asynchronously originating a call. I = would rather not have to reinvent it to work with asteriskjava.live Robert |
From: Maciek T. <mlo...@gm...> - 2007-07-19 16:40:41
|
Jason. in iax2.conf in each iax peer section change or put the "transfer=no" (or notransfer=yes if you use older Asterisk version) This should help ---- Maciek Tokarski |
From: Jason W. <ja...@cl...> - 2007-07-19 16:24:13
|
Hello, I'm still using AJ2.0. I use the ManagerConnection to originate calls to the asterisk server. When I originate 2 IAX2 calls and bridge them together (by originating to an extension that dials the second number) I see that the CDR gets written after about 30 seconds even though the call is still in progress. I had solved this problem by changing a setting in the past but can't remember what it was that I changed. Any comments appreciated. I thought it was changing async to false, but that caused the manager connection to get logged off immediately after the originate was sent. Also, and I know this isn't the perfect forum to ask this question, but could anyone comment on the system they use to keep track of changes like this. I use a dated log book, but that's lame. I thought of starting a table in the database of daily changes, and that would be searchable. any suggestions on good recordkeeping techniques? Jason |
From: Martin S. <ma...@be...> - 2007-07-19 12:51:25
|
Hi Chuck, The propertyChangeEvent has a "source" that you want to be the AsteriskChannel class. For example: public void propertyChange(PropertyChangeEvent propertyChangeEvent) { Object src =3D propertyChangeEvent.getSource(); if(!(src instanceof AsteriskChannel) || src =3D=3D null) return; AsteriskChannel channel =3D (AsteriskChannel)src; // do some stuff } If I only want channel events, I typically check that the source is what I expect -- as sometimes I will (ab)use the property change methods with my own objects. Take care, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 =20 > -----Original Message----- > From: ast...@li...=20 > [mailto:ast...@li...] On=20 > Behalf Of CHUCK SYPERSKI > Sent: Thursday, July 19, 2007 8:05 AM > To: ast...@li... > Subject: [Asterisk-java-users] Who is firing the propertyChange? >=20 > I am sorry this may be a simple questions but I am stuggling=20 > to figure it out. I have a multi threaded app that is using=20 > the live classes. It makes new calls and then monitors thier=20 > progress towards completion. The problem is when the=20 > propertyChange event fires how can I identify which channel=20 > or for example which Channel the ChannelState=20 > "propertyChange" is refering too? Below is a piece of code=20 > to show what I am talking about. =20 >=20 > Thanks again, this list has been very helpful! >=20 > Each thread that runs has this method, but it seems that the=20 > events for all calls broadcast to all propertyChange functions. >=20 > public void propertyChange(PropertyChangeEvent=20 > propertyChangeEvent) > { > try > { > if ( propertyChangeEvent.getNewValue()=20 > instanceof ChannelState ) > { > ChannelState c =3D=20 > (ChannelState)(propertyChangeEvent.getNewValue()); > handleStateChange( c ); > } > =09 > } > catch( Exception e ) > { > lg( e.getMessage() ); > e.printStackTrace() ; > } > } >=20 > Thanks, > Chuck Syperski >=20 >=20 > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >=20 |
From: CHUCK S. <CSY...@DU...> - 2007-07-19 12:05:08
|
I am sorry this may be a simple questions but I am stuggling to figure it = out. I have a multi threaded app that is using the live classes. It = makes new calls and then monitors thier progress towards completion. The = problem is when the propertyChange event fires how can I identify which = channel or for example which Channel the ChannelState "propertyChange" is = refering too? Below is a piece of code to show what I am talking about. = =20 Thanks again, this list has been very helpful! Each thread that runs has this method, but it seems that the events for = all calls broadcast to all propertyChange functions. public void propertyChange(PropertyChangeEvent propertyChangeEvent)= { try { if ( propertyChangeEvent.getNewValue() instanceof = ChannelState ) { ChannelState c =3D (ChannelState)(propertyC= hangeEvent.getNewValue()); handleStateChange( c ); } =09 } catch( Exception e ) { lg( e.getMessage() ); e.printStackTrace() ; } } Thanks, Chuck Syperski |
From: CHUCK S. <CSY...@DU...> - 2007-07-18 15:25:17
|
Once again thanks, I have never used log4j before but that did the trick. >>> ma...@be... 07/18/07 09:30AM >>> Hello Chuck, Asterisk-Java users log4j (http://logging.apache.org/log4j/docs/). If you configure log4j to the OFF level for Asterisk-Java classes, you should get the behavior you are looking for. Martin Smith, Systems Developer ma...@be...=20 Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 =20 > -----Original Message----- > From: ast...@li...=20 > [mailto:ast...@li...] On=20 > Behalf Of CHUCK SYPERSKI > Sent: Wednesday, July 18, 2007 10:03 AM > To: ast...@li...=20 > Subject: [Asterisk-java-users] Turning off the "INFO:" output >=20 > How do I disable the debug or "INFO" output from asterisk-java? >=20 > IE. INFO: Connected via Asterisk Call Manager/1.0 >=20 > I am attempting to write a CLI application and would like=20 > clean output. >=20 > Thanks >=20 >=20 > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/=20 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li...=20 > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users=20 >=20 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/=20 _______________________________________________ Asterisk-java-users mailing list Ast...@li...=20 https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Martin S. <ma...@be...> - 2007-07-18 14:53:04
|
Hello Chuck, Asterisk-Java users log4j (http://logging.apache.org/log4j/docs/). If you configure log4j to the OFF level for Asterisk-Java classes, you should get the behavior you are looking for. Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 =20 > -----Original Message----- > From: ast...@li...=20 > [mailto:ast...@li...] On=20 > Behalf Of CHUCK SYPERSKI > Sent: Wednesday, July 18, 2007 10:03 AM > To: ast...@li... > Subject: [Asterisk-java-users] Turning off the "INFO:" output >=20 > How do I disable the debug or "INFO" output from asterisk-java? >=20 > IE. INFO: Connected via Asterisk Call Manager/1.0 >=20 > I am attempting to write a CLI application and would like=20 > clean output. >=20 > Thanks >=20 >=20 > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >=20 |
From: CHUCK S. <CSY...@DU...> - 2007-07-18 14:03:43
|
How do I disable the debug or "INFO" output from asterisk-java? IE. INFO: Connected via Asterisk Call Manager/1.0 I am attempting to write a CLI application and would like clean output. Thanks |
From: Daniel G. <da...@gr...> - 2007-07-17 15:42:36
|
Hello, is there a way to know that a call is being monitored at the startup of asterisk java? Meaning that there are several calls already present on asterisk when the application using asterisk java starts, and assume that a monitor was started on some calls, is there a way to know that? And if not, does anyone has an idea, of how this could be done ? Regards, Daniel |