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: Vadim B. <Va...@is...> - 2006-01-10 15:15:44
|
The AGI server first instantiates any given handler when a request for it comes in from asterisk. It would be nice if there was a way to have certain handlers be instantiated on startup. There are certain things I want to preload befor any calls come in.=20 I don't want to the first call to be forced to wait until I'm done loading. |
From: Jan du T. <jan...@de...> - 2006-01-10 09:46:32
|
In the mean time I figured it out. For anybody who wants to know you create a CommandAction with the needed CLI command as a string and send it via the ManagerConnection.sendAction(commandAction) method. Bye. Jan du Toit wrote: > Hi. > > Can you access and execute CLI commands such as "meetme mute <conf no> > <usernumber>" in Asterisk-Java. > > If you can, a code snippet will be appreciated and if not can one > built support into *-J to do this. > > Thank you in advance. > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Jan du T. <jan...@de...> - 2006-01-10 08:46:58
|
Hi. Can you access and execute CLI commands such as "meetme mute <conf no> <usernumber>" in Asterisk-Java. If you can, a code snippet will be appreciated and if not can one built support into *-J to do this. Thank you in advance. |
From: Paul F. <pa...@sm...> - 2006-01-09 02:24:15
|
Hi Stefan, Thanks for your reply. I think I explained my idea poorly. What I meant to say was that in a complex app where you initiate a call using the Manager API, and then communicate back and forth with Asterisk by sending AGI commands from the dialplan -- instead of using AGI, could it be possible to instead communicate back to the Asterisk-Java app (from the DIalPlan) using this new UserEvent mechanism? So my question was not really about changing the way calls are initiated -- they would still be initiated via the Manager API -- but was whether a more event-based way of communicating back to the Java app could be accomplished by sending UserEvents instead of the calling back to the AGI server. In thinking about it more, it seems like it would probably not work too well, since AGI provides commands for doing things directly in Asterisk. Without those AGI commands it might be pointless, but I wasn't sure if the events triggered by the UserEvent could be used to call back with the Manager API and create a Java to Asterisk conversation that way. Anyway, this questions is more out of curiosity. Currently, my Manager/AGI solution works very reliably, but I am continuing to think more about building a CCXML framework on top of Asterisk-Java to provide a a higher level of abstraction for doing call control, and was wondering if the UserEvent thing might provide a more seamless way of providing the Asterisk to Java conversation that will be necessary in getting a CCXML solution to work. Any other ideas on how to go about building this? Thanks again for developing such a great framework! Best Regards, Paul Paul T. Fisher SmartPants Media, Inc. > I started playing with Asterisk 1.2.1 and noticed a new application > =20 > called UserEvent, which is supposed to be able to send arbitrary =20 > events to Asterisk. > The UserEvent is used to send arbitrary events FROM Asterisk (i.e. from the dialplan) to your Manager API based application. > My question is whether this could be used to =20 > place complex outbound (and even Call Control) and IVR > functionality =20 > without resorting to AGI. In other words, right now I used the =20 > Manager interface to trigger a call, and then communicate back and =20 > forth between the dial plan and AGI to get stuff done. WIth this > new =20 > application, could I just use the Manager, or will this be too slow? > No, you cant use it for that purpose. To originate a new call there are only two possibilities: The Manager API and .call files. The prefered way is the Manager API. =3DStefan |
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-06 18:56:51
|
I am having a problem running the example HelloEvents.java I have added the entry in manager.conf and also manager_custom.conf I restarted and reloaded asterisk. when I run the file I get the following error: =20 INFO: Connecting to localhost port 5038 Exception in thread "main" java.net.ConnectException: Connection = refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at = java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) at java.net.Socket.connect(Socket.java:507) at = net.sf.asterisk.io.impl.SocketConnectionFacadeImpl.<init>(SocketConnectio= nFacadeImpl.java:52) at = net.sf.asterisk.manager.DefaultManagerConnection.createSocket(DefaultMana= gerConnection.java:541) at = net.sf.asterisk.manager.DefaultManagerConnection.connect(DefaultManagerCo= nnection.java:530) at = net.sf.asterisk.manager.DefaultManagerConnection.login(DefaultManagerConn= ection.java:418) at = net.sf.asterisk.manager.DefaultManagerConnection.login(DefaultManagerConn= ection.java:377) at HelloEvents.run(HelloEvents.java:30) at HelloEvents.main(HelloEvents.java:53) =20 I also checked to make sure port 5038 was open on the asterisk machine. I am running XP on my development machine. Looks like there is an attempt to connect to localhost, instead of the = actual IP of the asterisk machine. =20 Also, is the sample code HelloAGIScript.java a suitable script to use to start = and stop asterisk-java on a daily basis? =20 TIA!! |
From: Stefan R. <sr...@re...> - 2006-01-06 08:09:31
|
Hi, > I started playing with Asterisk 1.2.1 and noticed a new application =20 > called UserEvent, which is supposed to be able to send arbitrary =20 > events to Asterisk. The UserEvent is used to send arbitrary events FROM Asterisk (i.e. from the dialplan) to your Manager API based application. > My question is whether this could be used to =20 > place complex outbound (and even Call Control) and IVR functionality =20 > without resorting to AGI. In other words, right now I used the =20 > Manager interface to trigger a call, and then communicate back and =20 > forth between the dial plan and AGI to get stuff done. WIth this new =20 > application, could I just use the Manager, or will this be too slow? No, you cant use it for that purpose. To originate a new call there are only two possibilities: The Manager API and .call files. The prefered way is the Manager API. =3DStefan |
From: Stefan R. <sr...@re...> - 2006-01-06 08:06:32
|
if you are on windows use ;. instead of :. =3DStefan On Thu, 2006-01-05 at 17:37 -0500, Forte, Graham (GFORTE) wrote: > OK I solved this problem, but hav another. > running the following gives me a=20 > C:\asterisk-java>java -cp asterisk-java-0.2.jar:. > net.sf.asterisk.fastagi.DefaultAGIServer > Exception in thread "main" java.lang.NoClassDefFoundError: > net/sf/asterisk/fastagi/DefaultAGIServer > If I omit the :. after .jar I get the following: > C:\asterisk-java>java -cp asterisk-java-0.2.jar > net.sf.asterisk.fastagi.DefaultAGIServer > Jan 5, 2006 4:05:54 AM net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Thread pool started. > Jan 5, 2006 4:05:54 AM net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Listening on *:4573. > Is the AGI Server running or just logging? > =20 > When I dial 1300 I get the following: > =20 > Jan 5, 2006 4:29:23 AM net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Received connection. > Jan 5, 2006 4:29:23 AM net.sf.asterisk.util.impl.JavaLoggingLog error > SEVERE: Resource bundle 'fastagi-mapping' is missing. > Jan 5, 2006 4:29:23 AM net.sf.asterisk.util.impl.JavaLoggingLog error > SEVERE: No script configured for URL > 'agi://130.109.190.178/hello.agi' (script ' > hello.agi') > =20 > So obvoiusly I have other problems I need to work on but I wanted to > make sure that I actually am successful running the server. > =20 > TIA!! > =20 |
From: Paul F. <pa...@sm...> - 2006-01-06 00:23:54
|
Hi, I started playing with Asterisk 1.2.1 and noticed a new application called UserEvent, which is supposed to be able to send arbitrary events to Asterisk. My question is whether this could be used to place complex outbound (and even Call Control) and IVR functionality without resorting to AGI. In other words, right now I used the Manager interface to trigger a call, and then communicate back and forth between the dial plan and AGI to get stuff done. WIth this new application, could I just use the Manager, or will this be too slow? Paul Paul T. Fisher SmartPants Media, Inc. On Dec 30, 2005, at 11:03 PM, asterisk-java-users- re...@li... wrote: > Send Asterisk-java-users mailing list submissions to > ast...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > or, via email, send a message with subject or body 'help' to > ast...@li... > > You can reach the person managing the list at > ast...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Asterisk-java-users digest..." > > > Today's Topics: > > 1. How To Reload Asterisk from Manager API (SYED ADEEL ALI) > > --__--__-- > > Message: 1 > From: "SYED ADEEL ALI" <ad...@ho...> > To: ast...@li... > Date: Fri, 30 Dec 2005 18:50:27 +0500 > Subject: [Asterisk-java-users] How To Reload Asterisk from Manager API > Reply-To: ast...@li... > > <html><div style='background-color:'><DIV class=RTE>Assalam > Alaikum</DIV> > <DIV > class=RTE> > &nbs > p; Is there anyway to reload asterisk from asterisk-java? > actually i m updating the conf files via JSP, SO i want the > asterisk to be reloaded after every updation ... </DIV> > <DIV class=RTE> </DIV> > <DIV class=RTE>Another issue i want to ask is ... i want to send > text msg to any channel throgh asterisk-java, can anyone tellme how > to do that</DIV> > <DIV class=RTE> </DIV> > <DIV class=RTE>Thank U </DIV> > <DIV class=RTE> </DIV></div><br clear=all><hr>Don't just > search. Find. <a href="http://g.msn.com/8HMBEN/2749??PS=47575" > target="_top">MSN Search</a> Check out the new MSN Search!</html> > > > > > --__--__-- > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > End of Asterisk-java-users Digest |
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-05 22:38:16
|
OK I solved this problem, but hav another. running the following gives me a=20 C:\asterisk-java>java -cp asterisk-java-0.2.jar:. = net.sf.asterisk.fastagi.DefaultAGIServer Exception in thread "main" java.lang.NoClassDefFoundError: = net/sf/asterisk/fastagi/DefaultAGIServer If I omit the :. after .jar I get the following: C:\asterisk-java>java -cp asterisk-java-0.2.jar = net.sf.asterisk.fastagi.DefaultAGIServer Jan 5, 2006 4:05:54 AM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Thread pool started. Jan 5, 2006 4:05:54 AM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Listening on *:4573. Is the AGI Server running or just logging? =20 When I dial 1300 I get the following: =20 Jan 5, 2006 4:29:23 AM net.sf.asterisk.util.impl.JavaLoggingLog info INFO: Received connection. Jan 5, 2006 4:29:23 AM net.sf.asterisk.util.impl.JavaLoggingLog error SEVERE: Resource bundle 'fastagi-mapping' is missing. Jan 5, 2006 4:29:23 AM net.sf.asterisk.util.impl.JavaLoggingLog error SEVERE: No script configured for URL 'agi://130.109.190.178/hello.agi' = (script ' hello.agi') =20 So obvoiusly I have other problems I need to work on but I wanted to = make sure that I actually am successful running the server. =20 TIA!! =20 |
From: Forte, G. \(GFORTE\) <gf...@ar...> - 2006-01-05 20:38:11
|
Hello all, I am trying to compile the HelloAGIScript from the tutorial but am = having a problem. First off do I need to modify that file in any way? =20 here it is as I am trying to compile: =20 =20 import net.sf.asterisk.fastagi.AGIChannel; import net.sf.asterisk.fastagi.AGIException; import net.sf.asterisk.fastagi.AGIRequest; import net.sf.asterisk.fastagi.AbstractAGIScript; public class HelloAGIScript extends AbstractAGIScript { public void service(AGIRequest request, AGIChannel channel) throws AGIException { // Answer the channel... answer(channel); =20 // ...say hello... streamFile(channel, "welcome"); =20 // ...and hangup. hangup(channel); } } =20 The errors I am getting are : =20 C:\asterisk-java>javac -cp asterisk-java.jar HelloAGIScript.java HelloAGIScript.java:15: package net.sf.asterisk.fastagi does not exist import net.sf.asterisk.fastagi.AGIChannel; ^ HelloAGIScript.java:16: package net.sf.asterisk.fastagi does not exist import net.sf.asterisk.fastagi.AGIException; ^ HelloAGIScript.java:17: package net.sf.asterisk.fastagi does not exist import net.sf.asterisk.fastagi.AGIRequest; ^ HelloAGIScript.java:18: package net.sf.asterisk.fastagi does not exist import net.sf.asterisk.fastagi.AbstractAGIScript; ^ HelloAGIScript.java:20: cannot find symbol symbol: class AbstractAGIScript public class HelloAGIScript extends AbstractAGIScript ^ HelloAGIScript.java:22: cannot find symbol symbol : class AGIRequest location: class HelloAGIScript public void service(AGIRequest request, AGIChannel channel) ^ HelloAGIScript.java:22: cannot find symbol symbol : class AGIChannel location: class HelloAGIScript public void service(AGIRequest request, AGIChannel channel) ^ HelloAGIScript.java:23: cannot find symbol symbol : class AGIException location: class HelloAGIScript throws AGIException ^ 8 errors =20 I have the HelloAGIScript.java in C:/asterisk-java along with the props file and the asterisk-java-0.2.jar any ideas? TIA!! |
From: Vadim B. <Va...@is...> - 2006-01-05 13:32:37
|
Hello, I want to get the status of all the SIP peers in asterisk so I send a SIPPeersAction() when I get a Connect event. I read the previous thread regarding sending actions from an event handler so when I get the event, I create a new thread and send the action. However, unless I add a slight pause (using Thread.sleep()), I don't get any PeerEntryEvent events from asterisk. I would like to avoid using a pause as a solution so I was wondering if there was a reason it doesn't work without the pause. |
From: SYED A. A. <ad...@ho...> - 2005-12-30 13:50:39
|
<html><div style='background-color:'><DIV class=RTE>Assalam Alaikum</DIV> <DIV class=RTE> Is there anyway to reload asterisk from asterisk-java? actually i m updating the conf files via JSP, SO i want the asterisk to be reloaded after every updation ... </DIV> <DIV class=RTE> </DIV> <DIV class=RTE>Another issue i want to ask is ... i want to send text msg to any channel throgh asterisk-java, can anyone tellme how to do that</DIV> <DIV class=RTE> </DIV> <DIV class=RTE>Thank U </DIV> <DIV class=RTE> </DIV></div><br clear=all><hr>Don't just search. Find. <a href="http://g.msn.com/8HMBEN/2749??PS=47575" target="_top">MSN Search</a> Check out the new MSN Search!</html> |
From: Jonathan A. <jau...@st...> - 2005-12-29 22:27:58
|
You can get the DNIS from the Manager API. You retrieve it by calling getExtension() from the first NewExtenEvent that is detected after a new call event. Jonathan On Thu, 2005-12-29 at 21:35 +0100, Ines wrote: > hello, > you can get the dialed number using FastAGI with : > request.getExtension(); > i'm not sure if you can get it with manager API > In=C3=A9s >=20 > Juan Reina <ju...@we...> a =C3=A9crit : > Hi everybody: > I have a question regarding Manager API. Is it possible to get > the dialed number using Manager API?. I can do it using Fast > AGI (using the AGI Reader), but I would like to know if it's > possible in any way to do it, using Manager API. Now I'm using > the manager API to handle a newchannel event, but there is > no method to retrieve the dialed number. > Thanks in advance > Juan M.=20 > =20 > =20 < tr> > =20 > Nur bis 31.12.: 1&1 DSL mit WEB.DE Preisvorteil! Jetzt > einsteigen =20 > und die Vorteile sichern! > http://1und1dsl.web.de/?mc=3D021130 ! ; >=20 >=20 >=20 > ______________________________________________________________________ > Nouveau : t=C3=A9l=C3=A9phonez moins cher avec Yahoo! Messenger ! D=C3=A9= couvez les > tarifs exceptionnels pour appeler la France et l'international. > T=C3=A9l=C3=A9chargez la version beta. |
From: Ines <mou...@ya...> - 2005-12-29 20:36:08
|
hello, you can get the dialed number using FastAGI with : request.getExtension(); i'm not sure if you can get it with manager API Inés Juan Reina <ju...@we...> a écrit : Hi everybody: I have a question regarding Manager API. Is it possible to get the dialed number using Manager API?. I can do it using Fast AGI (using the AGI Reader), but I would like to know if it's possible in any way to do it, using Manager API. Now I'm using the manager API to handle a newchannel event, but there is no method to retrieve the dialed number. Thanks in advance Juan M. Nur bis 31.12.: 1&1 DSL mit WEB.DE Preisvorteil! Jetzt einsteigen und die Vorteile sichern! http://1und1dsl.web.de/?mc=021130 ! ; --------------------------------- Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta. |
From: Juan R. <ju...@we...> - 2005-12-29 17:29:35
|
Hi everybody: I have a question regarding Manager API. Is it possible to get the dialed number using Manager API?. I can do it using Fast AGI (using the AGI Reader), but I would like to know if it's possible in any way to do it, using Manager API. Now I'm using the manager API to handle a newchannel event, but there is no method to retrieve the dialed number. Thanks in advance Juan M. Nur bis 31.12.: 1&1 DSL mit WEB.DE Preisvorteil! Jetzt einsteigen und die Vorteile sichern! http://1und1dsl.web.de/?mc=021130 |
From: Alex <ab...@ga...> - 2005-12-21 13:19:16
|
Stefan, I apologize. You were right it's ADM. I was trying to use this method to tell my application that an Asterisk Event has raised. But I forgot that it is not a part of Asterisk-Java. So, I guess you don't have an idea of what could be the problem. Thanks for answering, Alex ----- Original Message ----- From: "Stefan Reuter" <sr...@re...> To: <ast...@li...> Sent: Tuesday, December 20, 2005 7:04 PM Subject: Re: [Asterisk-java-users] ERROR: Unable to invoke method XXX onlistener Alex, what are you talking about? Asterisk-Java or ADM? =Stefan |
From: Stefan R. <sr...@re...> - 2005-12-20 22:04:30
|
Alex, what are you talking about? Asterisk-Java or ADM? =3DStefan On Tue, 2005-12-20 at 18:48 -0300, Alex wrote: > Hi Stefan: >=20 > I'm facing an error in which the EventListenerList.fireEvent method is > throwing an exception with the following message: >=20 > "Unable to invoke method onRing on listener" >=20 > The strange fact is that the application works fine in Windows (where I > develop), but doesn't work in Linux (Debian 2.4.27 server). > From the source code I see that this could be caused by an > IllegalAccessException or an InvocationTargetException, but I don't know > which one is, because the two of them have the same error message. >=20 > The invocation of that method is in this line: > callListeners.fireEvent(CallListener.class, "onRing", new > AsteriskCallEvent(begin, channel, uniqueId, callerId, state, extension)); >=20 > Do you have an idea of what could be causing this problem? >=20 >=20 > Thanks in advance, >=20 > Alex >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Alex <ab...@ga...> - 2005-12-20 21:47:59
|
Hi Stefan: I'm facing an error in which the EventListenerList.fireEvent method is throwing an exception with the following message: "Unable to invoke method onRing on listener" The strange fact is that the application works fine in Windows (where I develop), but doesn't work in Linux (Debian 2.4.27 server). From the source code I see that this could be caused by an IllegalAccessException or an InvocationTargetException, but I don't know which one is, because the two of them have the same error message. The invocation of that method is in this line: callListeners.fireEvent(CallListener.class, "onRing", new AsteriskCallEvent(begin, channel, uniqueId, callerId, state, extension)); Do you have an idea of what could be causing this problem? Thanks in advance, Alex |
From: Aparna R. <apa...@ya...> - 2005-12-20 14:42:22
|
ok .. thanks Stefan for all ur help. Aparna Stefan Reuter <sr...@re...> wrote: You can also use a CommandAction with "sip show peers". But then you have to parse the CLI output on your own. =Stefan > Also, another question... > Is there any other way that I can continue with the same version > asterisk 1.0.7 and still get to display the Registered Users when i > re-run the java program?? > At this moment, I do not want to upgrade. > Kindly guide. > > Thanks > Aparna > > Aparna Ramakrishnan wrote: > Hello Stefan, > I have Asterisk version 1.0.7 and so I beleive I cannot go ahead with > using SIPPeersAction. So if I now upgrade from 1.0.7 to 1.2, will I need > to go through any changes in its setup or so? and whats the procedure.. > kindly guide. > > Thanks n regards > Aparna > > > Stefan Reuter wrote: > Aparna, > > you can use something like this: > > ResponseEvents response = conn.sendEventGeneratingAction(new > SIPPeersAction()); > Iterator i = response.getEvents().iterator(); > while (i.hasNext()) > { > ManagerEvent event = (ManagerEvent) i.next(); > if (event instanceof PeerEntryEvent) > { > PeerEntryEvent peer = (PeerEntryEvent) event; > System.out.println(peer.getObjectName() + ": " + peer.getStatus()); > } > } > > There are two things to note: > 1. SIPPeersAction is only available with Asterisk 1.2. > 2. SIPPeerEntry in Asterisk-Java 0.2 had a bug that I just fixed. > Please us the asterisk-java jar from > http://null.reucon.net/~srt/asterisk-java-0.2-fix1.jar > > Hope that helps, > > =Stefan > > > On Mon, 2005-12-19 at 06:44 -0800, Aparna Ramakrishnan wrote: >> Hello Stefan, >> Thank you for your reply. >> I would like some additional help since I am new to Asterisk as well >> as Java. Plz bear with me. >> >> How do I assign SIPPeersAction .. , with sendAction? as in, >> managerConnection.sendAction(mySIPPeersAction()); ?? >> >> or how should i go abt it? >> >> Also, in handlevent method, should I use the event PeerStatusEvent? >> and get its Status? >> >> Kindly guide further. Appreciate your help and advice. >> >> Thanks again >> Aparna >> >> >> Stefan Reuter wrote: >> Aparna, >> >> please have a look at the SipPeersAction. It generates >> PeerEntryEvents >> that contain a status field that you can probably use for your >> purposes. >> >> =Stefan >> >> On Mon, 2005-12-19 at 05:59 -0800, Aparna Ramakrishnan wrote: >> > Hello, >> > Is there an event in Manager API, which can detect the users >> that have >> > been registered with asterisk? >> > I now use the PeerStatusEvent which denotes every time a >> user >> > registers with asterisk. >> > Now at times when i need to re-run my program again, the >> already >> > registered users are not visible. What event can help me >> find also the >> > already resgitered users, which will be displayed after i >> re-run my >> > program? >> > >> > Kindly help. >> > >> > Thanks n Regards >> > Aparna >> > __________________________________________________ >> > Do You Yahoo!? >> > Tired of spam? Yahoo! Mail has the best spam protection >> around >> > http://mail.yahoo.com >> > >> >> >> >> __________________________________________________ >> Do You Yahoo!? >> Ti red of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Stefan R. <sr...@re...> - 2005-12-20 13:34:27
|
You can also use a CommandAction with "sip show peers". But then you have to parse the CLI output on your own. =3DStefan > Also, another question... > Is there any other way that I can continue with the same version > asterisk 1.0.7 and still get to display the Registered Users when i > re-run the java program?? > At this moment, I do not want to upgrade. > Kindly guide. > > Thanks > Aparna > > Aparna Ramakrishnan <apa...@ya...> wrote: > Hello Stefan, > I have Asterisk version 1.0.7 and so I beleive I cannot go ahead with > using SIPPeersAction. So if I now upgrade from 1.0.7 to 1.2, will I nee= d > to go through any changes in its setup or so? and whats the procedure.. > kindly guide. > > Thanks n regards > Aparna > > > Stefan Reuter <sr...@re...> wrote: > Aparna, > > you can use something like this: > > ResponseEvents response =3D conn.sendEventGeneratingAction(new > SIPPeersAction()); > Iterator i =3D response.getEvents().iterator(); > while (i.hasNext()) > { > ManagerEvent event =3D (ManagerEvent) i.next(); > if (event instanceof PeerEntryEvent) > { > PeerEntryEvent peer =3D (PeerEntryEvent) event; > System.out.println(peer.getObjectName() + ": " + peer.getStatus()); > } > } > > There are two things to note: > 1. SIPPeersAction is only available with Asterisk 1.2. > 2. SIPPeerEntry in Asterisk-Java 0.2 had a bug that I just fixed. > Please us the asterisk-java jar from > http://null.reucon.net/~srt/asterisk-java-0.2-fix1.jar > > Hope that helps, > > =3DStefan > > > On Mon, 2005-12-19 at 06:44 -0800, Aparna Ramakrishnan wrote: >> Hello Stefan, >> Thank you for your reply. >> I would like some additional help since I am new to Asterisk as well >> as Java. Plz bear with me. >> >> How do I assign SIPPeersAction .. , with sendAction? as in, >> managerConnection.sendAction(mySIPPeersAction()); ?? >> >> or how should i go abt it? >> >> Also, in handlevent method, should I use the event PeerStatusEvent? >> and get its Status? >> >> Kindly guide further. Appreciate your help and advice. >> >> Thanks again >> Aparna >> >> >> Stefan Reuter wrote: >> Aparna, >> >> please have a look at the SipPeersAction. It generates >> PeerEntryEvents >> that contain a status field that you can probably use for your >> purposes. >> >> =3DStefan >> >> On Mon, 2005-12-19 at 05:59 -0800, Aparna Ramakrishnan wrote: >> > Hello, >> > Is there an event in Manager API, which can detect the users >> that have >> > been registered with asterisk? >> > I now use the PeerStatusEvent which denotes every time a >> user >> > registers with asterisk. >> > Now at times when i need to re-run my program again, the >> already >> > registered users are not visible. What event can help me >> find also the >> > already resgitered users, which will be displayed after i >> re-run my >> > program? >> > >> > Kindly help. >> > >> > Thanks n Regards >> > Aparna >> > __________________________________________________ >> > Do You Yahoo!? >> > Tired of spam? Yahoo! Mail has the best spam protection >> around >> > http://mail.yahoo.com >> > >> >> >> >> __________________________________________________ >> Do You Yahoo!? >> Ti red of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com |
From: Aparna R. <apa...@ya...> - 2005-12-20 09:38:52
|
Also, another question... Is there any other way that I can continue with the same version asterisk 1.0.7 and still get to display the Registered Users when i re-run the java program?? At this moment, I do not want to upgrade. Kindly guide. Thanks Aparna Aparna Ramakrishnan <apa...@ya...> wrote: Hello Stefan, I have Asterisk version 1.0.7 and so I beleive I cannot go ahead with using SIPPeersAction. So if I now upgrade from 1.0.7 to 1.2, will I need to go through any changes in its setup or so? and whats the procedure.. kindly guide. Thanks n regards Aparna Stefan Reuter <sr...@re...> wrote: Aparna, you can use something like this: ResponseEvents response = conn.sendEventGeneratingAction(new SIPPeersAction()); Iterator i = response.getEvents().iterator(); while (i.hasNext()) { ManagerEvent event = (ManagerEvent) i.next(); if (event instanceof PeerEntryEvent) { PeerEntryEvent peer = (PeerEntryEvent) event; System.out.println(peer.getObjectName() + ": " + peer.getStatus()); } } There are two things to note: 1. SIPPeersAction is only available with Asterisk 1.2. 2. SIPPeerEntry in Asterisk-Java 0.2 had a bug that I just fixed. Please us the asterisk-java jar from http://null.reucon.net/~srt/asterisk-java-0.2-fix1.jar Hope that helps, =Stefan On Mon, 2005-12-19 at 06:44 -0800, Aparna Ramakrishnan wrote: > Hello Stefan, > Thank you for your reply. > I would like some additional help since I am new to Asterisk as well > as Java. Plz bear with me. > > How do I assign SIPPeersAction .. , with sendAction? as in, > managerConnection.sendAction(mySIPPeersAction()); ?? > > or how should i go abt it? > > Also, in handlevent method, should I use the event PeerStatusEvent? > and get its Status? > > Kindly guide further. Appreciate your help and advice. > > Thanks again > Aparna > > > Stefan Reuter wrote: > Aparna, > > please have a look at the SipPeersAction. It generates > PeerEntryEvents > that contain a status field that you can probably use for your > purposes. > > =Stefan > > On Mon, 2005-12-19 at 05:59 -0800, Aparna Ramakrishnan wrote: > > Hello, > > Is there an event in Manager API, which can detect the users > that have > > been registered with asterisk? > > I now use the PeerStatusEvent which denotes every time a > user > > registers with asterisk. > > Now at times when i need to re-run my program again, the > already > > registered users are not visible. What event can help me > find also the > > already resgitered users, which will be displayed after i > re-run my > > program? > > > > Kindly help. > > > > Thanks n Regards > > Aparna > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection > around > > http://mail.yahoo.com > > > > > > __________________________________________________ > Do You Yahoo!? > Ti red of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Aparna R. <apa...@ya...> - 2005-12-20 08:32:31
|
Hello Stefan, I have Asterisk version 1.0.7 and so I beleive I cannot go ahead with using SIPPeersAction. So if I now upgrade from 1.0.7 to 1.2, will I need to go through any changes in its setup or so? and whats the procedure.. kindly guide. Thanks n regards Aparna Stefan Reuter <sr...@re...> wrote: Aparna, you can use something like this: ResponseEvents response = conn.sendEventGeneratingAction(new SIPPeersAction()); Iterator i = response.getEvents().iterator(); while (i.hasNext()) { ManagerEvent event = (ManagerEvent) i.next(); if (event instanceof PeerEntryEvent) { PeerEntryEvent peer = (PeerEntryEvent) event; System.out.println(peer.getObjectName() + ": " + peer.getStatus()); } } There are two things to note: 1. SIPPeersAction is only available with Asterisk 1.2. 2. SIPPeerEntry in Asterisk-Java 0.2 had a bug that I just fixed. Please us the asterisk-java jar from http://null.reucon.net/~srt/asterisk-java-0.2-fix1.jar Hope that helps, =Stefan On Mon, 2005-12-19 at 06:44 -0800, Aparna Ramakrishnan wrote: > Hello Stefan, > Thank you for your reply. > I would like some additional help since I am new to Asterisk as well > as Java. Plz bear with me. > > How do I assign SIPPeersAction .. , with sendAction? as in, > managerConnection.sendAction(mySIPPeersAction()); ?? > > or how should i go abt it? > > Also, in handlevent method, should I use the event PeerStatusEvent? > and get its Status? > > Kindly guide further. Appreciate your help and advice. > > Thanks again > Aparna > > > Stefan Reuter wrote: > Aparna, > > please have a look at the SipPeersAction. It generates > PeerEntryEvents > that contain a status field that you can probably use for your > purposes. > > =Stefan > > On Mon, 2005-12-19 at 05:59 -0800, Aparna Ramakrishnan wrote: > > Hello, > > Is there an event in Manager API, which can detect the users > that have > > been registered with asterisk? > > I now use the PeerStatusEvent which denotes every time a > user > > registers with asterisk. > > Now at times when i need to re-run my program again, the > already > > registered users are not visible. What event can help me > find also the > > already resgitered users, which will be displayed after i > re-run my > > program? > > > > Kindly help. > > > > Thanks n Regards > > Aparna > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection > around > > http://mail.yahoo.com > > > > > > __________________________________________________ > Do You Yahoo!? > Ti red of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Stefan R. <sr...@re...> - 2005-12-19 15:22:26
|
Aparna, you can use something like this: ResponseEvents response =3D conn.sendEventGeneratingAction(new SIPPeersAction()); Iterator i =3D response.getEvents().iterator(); while (i.hasNext()) { ManagerEvent event =3D (ManagerEvent) i.next(); if (event instanceof PeerEntryEvent) { PeerEntryEvent peer =3D (PeerEntryEvent) event; System.out.println(peer.getObjectName() + ": " + peer.getStatus()); } } There are two things to note: 1. SIPPeersAction is only available with Asterisk 1.2. 2. SIPPeerEntry in Asterisk-Java 0.2 had a bug that I just fixed. Please us the asterisk-java jar from http://null.reucon.net/~srt/asterisk-java-0.2-fix1.jar Hope that helps, =3DStefan On Mon, 2005-12-19 at 06:44 -0800, Aparna Ramakrishnan wrote: > Hello Stefan, > Thank you for your reply. > I would like some additional help since I am new to Asterisk as well > as Java. Plz bear with me. > =20 > How do I assign SIPPeersAction .. , with sendAction? as in,=20 > managerConnection.sendAction(mySIPPeersAction()); ?? > =20 > or how should i go abt it? > =20 > Also, in handlevent method, should I use the event PeerStatusEvent? > and get its Status? > =20 > Kindly guide further. Appreciate your help and advice. > =20 > Thanks again > Aparna > =20 >=20 > Stefan Reuter <sr...@re...> wrote: > Aparna, > =20 > please have a look at the SipPeersAction. It generates > PeerEntryEvents > that contain a status field that you can probably use for your > purposes. > =20 > =3DStefan > =20 > On Mon, 2005-12-19 at 05:59 -0800, Aparna Ramakrishnan wrote: > > Hello, > > Is there an event in Manager API, which can detect the users > that have > > been registered with asterisk? > > I now use the PeerStatusEvent which denotes every time a > user > > registers with asterisk.=20 > > Now at times when i need to re-run my program again, the > already > > registered users are not visible. What event can help me > find also the > > already resgitered users, which will be displayed after i > re-run my > > program? > >=20 > > Kindly help. > >=20 > > Thanks n Regards > > Aparna > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection > around=20 > > http://mail.yahoo.com=20 > >=20 >=20 >=20 >=20 > __________________________________________________ > Do You Yahoo!? > Ti red of spam? Yahoo! Mail has the best spam protection around=20 > http://mail.yahoo.com=20 >=20 |
From: Aparna R. <apa...@ya...> - 2005-12-19 14:44:28
|
Hello Stefan, Thank you for your reply. I would like some additional help since I am new to Asterisk as well as Java. Plz bear with me. How do I assign SIPPeersAction .. , with sendAction? as in, managerConnection.sendAction(mySIPPeersAction()); ?? or how should i go abt it? Also, in handlevent method, should I use the event PeerStatusEvent? and get its Status? Kindly guide further. Appreciate your help and advice. Thanks again Aparna Stefan Reuter <sr...@re...> wrote: Aparna, please have a look at the SipPeersAction. It generates PeerEntryEvents that contain a status field that you can probably use for your purposes. =Stefan On Mon, 2005-12-19 at 05:59 -0800, Aparna Ramakrishnan wrote: > Hello, > Is there an event in Manager API, which can detect the users that have > been registered with asterisk? > I now use the PeerStatusEvent which denotes every time a user > registers with asterisk. > Now at times when i need to re-run my program again, the already > registered users are not visible. What event can help me find also the > already resgitered users, which will be displayed after i re-run my > program? > > Kindly help. > > Thanks n Regards > Aparna > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Stefan R. <sr...@re...> - 2005-12-19 14:16:00
|
Brett, thanks for publishing your solution, i am sure it will be of help for others with similar requirements. I am currently thinking about the options to fix this for Asterisk-Java 0.3. What I thought about is: a) using one connection only for event receiving and using a pool of connections for sending actions b) separating the reader and the event handling, i.e. there would be one reader threat that places asterisks output into a buffer and a threadpool that dispatches the events to the listeners. There are some issues with both option that I would like to discuss. Option a) has the problem that multiple connections are needed. Thats probably fine if you run one central instance to control asterisk but calls for trouble when using Asterisk-Java on the desktop. Option b) is better in this regard but no longer guarantees that events are delivered in the order they are received. This could be adressed by adding a sequence to the events but places additional burdon on the developer. What do you think? Are there other options? What would you prefer? =3DStefan On Sun, 2005-12-18 at 22:37 +1100, Brett Sutton wrote: > Here's a technique I use to get arround the problem of trying to send > an Action when you are in an event handler. > If you don't know; its simply not possible. >=20 > The call to 'new RecieveFax(event)' creates its own connection to the > API Manager. >=20 > I do wonder whether it would be better if the MangerEventHandler > method was called in a seperate thread from that which the > ManagerReader runs in however that may have other undesirable side > affects.=20 > Alternatively the call to SendAction should probably throw an > IllegalStateException rather than just timing out. As it stand its > hard to diagnose why the call to SendAction fails. >=20 > Basically It's necessary to send the subsequent action in a different > thread from the the eventHandler otherwise the ManagerReader locks up > and nothing works. The subsequent actionn should also be sent using a > separate instance of the ManagerConnection. >=20 > You could potentionally send the subsequent action in the event > handler thread (using a separate ManagerConnection) but you will block > the ManagerReader from notifying your application of other events and > I'm not certain, but I suspect that there is little to be gained from > holding the ManagerReader up whilst you do other work as I doubt that > Asterisk is waiting on the ManagerReader and as such you really arn't > doing the operation synchronously (with respect to Asterisk). >=20 > So here is a sample class demonstating one possible solution. >=20 > I hope this of some use. >=20 > Regards, > Brett. >=20 > import java.io.IOException; > import java.util.TreeSet; > import java.util.Vector; > import java.util.concurrent.LinkedBlockingQueue; >=20 > import net.sf.asterisk.manager.AuthenticationFailedException; > import net.sf.asterisk.manager.ManagerConnection; > import net.sf.asterisk.manager.ManagerConnectionFactory; > import net.sf.asterisk.manager.ManagerEventHandler; > import net.sf.asterisk.manager.TimeoutException; > import net.sf.asterisk.manager.action.StatusAction; > import net.sf.asterisk.manager.event.ManagerEvent; > import net.sf.asterisk.manager.event.NewChannelEvent; > import net.sf.asterisk.manager.event.NewStateEvent; >=20 > import org.apache.commons.configuration.ConfigurationException; > import org.apache.log4j.Logger; >=20 >=20 > public class FaxManagerInbound extends Thread implements > ManagerEventHandler > { > static Logger logger =3D > Logger.getLogger(FaxManagerInbound.class.getName()); >=20 > private static FaxManagerInbound self; >=20 > private boolean running; >=20 > private ManagerConnection managerConnection; >=20 > private Vector<Channel> channels; >=20 > private static final LinkedBlockingQueue<NewChannelEvent> queue =3D > new LinkedBlockingQueue<NewChannelEvent>(); >=20 > static public FaxManagerInbound getInstance() > throws ConfigurationException, > IOException, > AuthenticationFailedException, > TimeoutException > { > if (self =3D=3D null) > { > self =3D new FaxManagerInbound(Configuration.getInstance() > .getChannels()); > self.start(); > } > return self; > } >=20 > private FaxManagerInbound(TreeSet<Channel> channels) > throws IOException, > AuthenticationFailedException, > TimeoutException > { > super("FaxManager Inbound"); > managerConnection =3D connect(); >=20 > // Get the list of channels we are interested in > for (Channel channel : channels) > { > if (channel.type =3D=3D ChannelManager.ChannelType.Inbound > || channel.type =3D=3D > ChannelManager.ChannelType.Both) > { > this.channels.add(channel); > } > } > } >=20 > public void run() > { > running =3D true; > logger.info("Inbound FaxManager started"); > while (running) > { > try > { > if (!managerConnection.isConnected()) > { > logger > .info("Inbound Manager API Connection > lost; reconnecting."); > managerConnection =3D connect(); > logger.info("Inbound Manager API: reconnected"); > } >=20 > NewChannelEvent event =3D queue.take(); > new RecieveFax(event); >=20 > } > catch (Throwable e) > { > // We don't like the manager shuting down just becuase > of a > // problem with a single fax. > logger.error(e.getMessage(), e); > } > } > logger.info("Inbound FaxManager Stopping"); > } >=20 > public void shutdown() > { > running =3D false; > queue.notify(); > notify(); > } >=20 > ManagerConnection connect() > throws IOException, > AuthenticationFailedException, > TimeoutException > { > ManagerConnection connection =3D null; > ManagerConnectionFactory factory =3D new > ManagerConnectionFactory(); >=20 > connection =3D factory.getManagerConnection(Configuration > .getAsteriskHost(), > Configuration.getAsteriskUsername(), > Configuration.getAsteriskPassword()); >=20 > // register for events > connection.addEventHandler(this); >=20 > // connect to Asterisk and log in > managerConnection.login(); >=20 > // request channel state > managerConnection.sendAction(new StatusAction()); >=20 > return connection; > } >=20 > public void handleEvent(ManagerEvent managerEvent) > { > if (managerEvent instanceof NewChannelEvent) > { > NewChannelEvent event =3D (NewChannelEvent) managerEvent; > System.out.println(event.getState()); > if (event.getState().compareToIgnoreCase("Ringing") =3D=3D 0 > || (event.getState().compareToIgnoreCase("Ring") > =3D=3D 0)) > { > queue.add(event); > } >=20 > } > else if (managerEvent instanceof NewStateEvent) > { > NewStateEvent event =3D (NewStateEvent) managerEvent; > System.out.println("State:" + event.getState()); > System.out.println(event); >=20 > } > else >=20 > // just print received events > System.out.println("Event: " + managerEvent); > } >=20 > } >=20 |