asterisk-java-devel Mailing List for Asterisk-Java Library (Page 5)
Brought to you by:
srt
You can subscribe to this list here.
2005 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(8) |
Jul
(3) |
Aug
(6) |
Sep
(5) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(8) |
Feb
(6) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
(17) |
Aug
(21) |
Sep
(2) |
Oct
(7) |
Nov
(8) |
Dec
(12) |
2007 |
Jan
(10) |
Feb
(19) |
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(6) |
Nov
(1) |
Dec
(5) |
2008 |
Jan
(12) |
Feb
(15) |
Mar
(18) |
Apr
(34) |
May
(3) |
Jun
(34) |
Jul
(5) |
Aug
(1) |
Sep
(8) |
Oct
|
Nov
(2) |
Dec
(2) |
2009 |
Jan
(8) |
Feb
(2) |
Mar
(35) |
Apr
(16) |
May
(11) |
Jun
(2) |
Jul
(6) |
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(4) |
Dec
|
2010 |
Jan
(43) |
Feb
(15) |
Mar
(1) |
Apr
(7) |
May
(3) |
Jun
(7) |
Jul
(1) |
Aug
(3) |
Sep
(5) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
(2) |
Mar
(9) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2012 |
Jan
(9) |
Feb
(2) |
Mar
(4) |
Apr
(1) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
(10) |
Nov
(10) |
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
(10) |
Dec
|
2014 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(11) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
(2) |
Mar
(7) |
Apr
(39) |
May
(18) |
Jun
(6) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
(9) |
Mar
(1) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Luca N. <l.n...@my...> - 2014-06-17 08:03:33
|
Hi there! In my project i have necessity to call my asterisk server to have a list of the parked channels. I understood that a ParkedCallsAction generates n ParkedCallEvents where n is the number of parked channels, following a ParkedCallsComplete event. Everything works just as expected, except for the fact that i can't catch these ParkedCallEvent in my events listener. This is a log for a normal ParkedCallEvent (i can see this event in my listener): Dispatching event: org.asteriskjava.manager.event.ParkedCallEvent[dateReceived='Mon Jun 16 15:08:57 CEST 2014',privilege='call,all',callerid=null,sequencenumber=null,from='SIP/1078-000000b3',calleridname='1078',timestamp=null,uniqueid='palermo-1402924150.275',exten='1',parkinglot='default',server=null,calleridnum=null,channel='SIP/1078-000000b3',timeout='1200',systemHashcode=662570926]DEBUG And this is a log for a ParkedCallsAction generated ParkedCallEvent (no trace of this event in my listener): Dispatching event: org.asteriskjava.manager.event.ParkedCallEvent[dateReceived='Mon Jun 16 15:09:00 CEST 2014',callerid=null,sequencenumber=null,from='SIP/1078-000000b3',calleridname='1078',timestamp=null,uniqueid=null,exten='1',parkinglot='default',server=null,calleridnum=null,channel='SIP/1078-000000b3',timeout='1196',systemHashcode=421189702] Major difference being that in the second case there is no privilege value. Is there a way i can catch these events in my listener? Or, is there a fastest way to have a list of the currently parked channels by request using the AMI? Thank you all :) -- Luca |
From: <Jac...@L-...> - 2014-02-12 17:51:19
|
I guess the NewChannelEvent is difference depending on what channel type you are using. Most of my phones are SCCP (Skinny) and they create a new channel event as soon as one is taken off-hook, where SIP phone will not do this because they don't create the new channel until it actually starts dialing the other end-point. Correct I usually do an instanceof to determine the event type. Example: Public void onManagerEvent(ManagerEvent managerEvent){ If (managerEvent instanceof BridgeEvent){ BridgeEvent event = (BridgeEvent)managerEvent; // use event to get the info needed } } Jacob From: Jose Baez [mailto:pe...@gm...] Sent: Wednesday, February 12, 2014 10:17 AM To: ast...@li... Subject: Re: [Asterisk-java-devel] How to create a new Event.class Thanks Jacob, but Asterisk doesn't send NewChannel event when someone picks up the phone. Just when phone starts ringing in creates a NewChannel event. ;) I'll use Bridge event for the time being... Anyway, about creating a new .class, one user has told me that I can parse any managerEvent.toString(). No need to create a new class. :)) On 12 February 2014 15:49, <Jac...@l-...> wrote: If you are wanting to know when a phone is taken off-hook would it not be better to monitor the NewChannelEvent or if you implement the AsteriskServierListener you will have the method onNewAstereiskChannel called each time a new channel created (phone is taken off-hook) I personally implemented the AsteriskServerListener and every time onNewAstereiskChannel is called I add a property change listener to the AsteriskChannel object so that I receive all changes to the channel as well. Jacob From: Jose Baez [mailto:pe...@gm...] Sent: Wednesday, February 12, 2014 8:26 AM To: ast...@li... Subject: Re: [Asterisk-java-devel] How to create a new Event.class OK, I have sniffed AMI directly and there is not any Pickup Event sent (and I have every events permitted in manager.conf) I could checked BridgeEvent but there are many Link/Unlink messages when people presses DTMF.... Do you think is OK to check first Bridge Link event as if it were a Pickup event? On 12 February 2014 14:01, Jose Baez <pe...@gm...> wrote: Hello! I needed a new ManagerEvent not developed in Asterisk-Java (PickupEvent). I am not a developer, so I made a new class (PickupEvent.java) based on other Asterisk-Java source code (with proper setters/getters). My code for handling ManagerEvent is (1.0.0-CI ) @Override public void onManagerEvent(ManagerEvent event) { if (event.getClass() == NewExtenEvent.class) { handleEvent((NewExtenEvent) event); } else if (event.??? == PickupEvent.class) { handleEvent((PickupEvent) event); } } Can I create this new class in my project without putting it in library (which I don't know) ? I already made the class and: event.getClass() == PickupEvent.class ...never gets called What else do I need? Thanks. ------------------------------------------------------------------------ ------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.cl ktrk _______________________________________________ Asterisk-java-devel mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel |
From: Jose B. <pe...@gm...> - 2014-02-12 16:17:14
|
Thanks Jacob, but Asterisk doesn't send NewChannel event when someone picks up the phone. Just when phone starts ringing in creates a NewChannel event. ;) I'll use Bridge event for the time being... Anyway, about creating a new .class, one user has told me that I can parse any managerEvent.toString(). No need to create a new class. :)) On 12 February 2014 15:49, <Jac...@l-...> wrote: > If you are wanting to know when a phone is taken off-hook would it not be > better to monitor the NewChannelEvent or if you implement the > AsteriskServierListener you will have the method onNewAstereiskChannel > called each time a new channel created (phone is taken off-hook) > > > > I personally implemented the AsteriskServerListener and every time > onNewAstereiskChannel is called I add a property change listener to the > AsteriskChannel object so that I receive all changes to the channel as well. > > > > Jacob > > > > *From:* Jose Baez [mailto:pe...@gm...] > *Sent:* Wednesday, February 12, 2014 8:26 AM > *To:* ast...@li... > *Subject:* Re: [Asterisk-java-devel] How to create a new Event.class > > > > OK, I have sniffed AMI directly and there is not any Pickup Event sent > (and I have every events permitted in manager.conf) > > > > I could checked BridgeEvent but there are many Link/Unlink messages when > people presses DTMF.... Do you think is OK to check first Bridge Link event > as if it were a Pickup event? > > > > > > > > > > On 12 February 2014 14:01, Jose Baez <pe...@gm...> wrote: > > Hello! I needed a new ManagerEvent not developed in Asterisk-Java > (PickupEvent). > > > > I am not a developer, so I made a new class (PickupEvent.java) based on > other Asterisk-Java source code (with proper setters/getters). > > > > My code for handling ManagerEvent is (1.0.0-CI ) > > > > @Override > > public void *onManagerEvent(ManagerEvent event)* { > > > > if (*event.getClass() == NewExtenEvent.class*) { > > handleEvent((NewExtenEvent) event); > > } > > else if (*event.??? == PickupEvent.class)* { > > handleEvent((PickupEvent) event); > > } > > } > > > > Can I create this new class in my project without putting it in library > (which I don't know) ? > > > > I already made the class and: > > > > event.getClass() == PickupEvent.class > > > > ...never gets called > > > > What else do I need? > > > > Thanks. > > > > > > > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > |
From: <Jac...@L-...> - 2014-02-12 16:05:13
|
If you are wanting to know when a phone is taken off-hook would it not be better to monitor the NewChannelEvent or if you implement the AsteriskServierListener you will have the method onNewAstereiskChannel called each time a new channel created (phone is taken off-hook) I personally implemented the AsteriskServerListener and every time onNewAstereiskChannel is called I add a property change listener to the AsteriskChannel object so that I receive all changes to the channel as well. Jacob From: Jose Baez [mailto:pe...@gm...] Sent: Wednesday, February 12, 2014 8:26 AM To: ast...@li... Subject: Re: [Asterisk-java-devel] How to create a new Event.class OK, I have sniffed AMI directly and there is not any Pickup Event sent (and I have every events permitted in manager.conf) I could checked BridgeEvent but there are many Link/Unlink messages when people presses DTMF.... Do you think is OK to check first Bridge Link event as if it were a Pickup event? On 12 February 2014 14:01, Jose Baez <pe...@gm...> wrote: Hello! I needed a new ManagerEvent not developed in Asterisk-Java (PickupEvent). I am not a developer, so I made a new class (PickupEvent.java) based on other Asterisk-Java source code (with proper setters/getters). My code for handling ManagerEvent is (1.0.0-CI ) @Override public void onManagerEvent(ManagerEvent event) { if (event.getClass() == NewExtenEvent.class) { handleEvent((NewExtenEvent) event); } else if (event.??? == PickupEvent.class) { handleEvent((PickupEvent) event); } } Can I create this new class in my project without putting it in library (which I don't know) ? I already made the class and: event.getClass() == PickupEvent.class ...never gets called What else do I need? Thanks. |
From: Jose B. <pe...@gm...> - 2014-02-12 14:25:44
|
OK, I have sniffed AMI directly and there is not any Pickup Event sent (and I have every events permitted in manager.conf) I could checked BridgeEvent but there are many Link/Unlink messages when people presses DTMF.... Do you think is OK to check first Bridge Link event as if it were a Pickup event? On 12 February 2014 14:01, Jose Baez <pe...@gm...> wrote: > Hello! I needed a new ManagerEvent not developed in Asterisk-Java > (PickupEvent). > > I am not a developer, so I made a new class (PickupEvent.java) based on > other Asterisk-Java source code (with proper setters/getters). > > My code for handling ManagerEvent is (1.0.0-CI ) > > @Override > public void *onManagerEvent(ManagerEvent event)* { > > if (*event.getClass() == NewExtenEvent.class*) { > handleEvent((NewExtenEvent) event); > } > else if (*event.??? == PickupEvent.class)* { > handleEvent((PickupEvent) event); > } > } > > > Can I create this new class in my project without putting it in library > (which I don't know) ? > > I already made the class and: > > event.getClass() == PickupEvent.class > > ...never gets called > > What else do I need? > > Thanks. > > > |
From: Jose B. <pe...@gm...> - 2014-02-12 14:01:19
|
Hello! I needed a new ManagerEvent not developed in Asterisk-Java (PickupEvent). I am not a developer, so I made a new class (PickupEvent.java) based on other Asterisk-Java source code (with proper setters/getters). My code for handling ManagerEvent is (1.0.0-CI ) @Override public void *onManagerEvent(ManagerEvent event)* { if (*event.getClass() == NewExtenEvent.class*) { handleEvent((NewExtenEvent) event); } else if (*event.??? == PickupEvent.class)* { handleEvent((PickupEvent) event); } } Can I create this new class in my project without putting it in library (which I don't know) ? I already made the class and: event.getClass() == PickupEvent.class ...never gets called What else do I need? Thanks. |
From: Yves A. <yv...@gm...> - 2013-11-07 13:47:40
|
hi, 1.) reagarding to my answer.... if you are on linux, the delimiter used in the path is ":", not ";" 2.) your problem is not AJ-related, so Stefan R. is not involved... it is a pure java problem... but... as we all cannot see in realtime what you do and what happens and this kind of remote help is very asynchronously... it is hard to "guess" the exact solution... 3.)as you wrote... you are new to java and AJ... this problem (classpath and so on) is typically for beginners.... so using an IDE might help to compile, but may not solve your problem on linux.. i think it is better to first go without IDE and so on for learning some basic stuff... and if you are familiar with the most important things, you can switch over to an IDE.... but... if you are on an IDE that is not on the machin that your asterisk is running on... other obstacles may occur... yves Am 07.11.2013 12:58, schrieb Chandramouli P: > Hello Jacob, Yves and Wayne, > > Thank you for your reply and hints. I tried in all the ways as you > suggested to get some output. But, not getting any result. As you > suggested finally, I am going to work with IDE. > > But, in my opinion, everything should work from CLI in Linux. At this > point of time, the author of Asterisk-Java library should respond to our > thread :-) . > > I will get back to you, once I am done with the setting up of IDE. > > Thank you, once again. > > Regards, > Chandra. > > ------------------------------------------------------------------------------ > November Webinars for C, C++, Fortran Developers > Accelerate application performance with scalable programming models. Explore > techniques for threading, error checking, porting, and tuning. Get the most > from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > --- Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv. http://www.avast.com |
From: Chandramouli P <mou...@gm...> - 2013-11-07 11:58:14
|
Hello Jacob, Yves and Wayne, Thank you for your reply and hints. I tried in all the ways as you suggested to get some output. But, not getting any result. As you suggested finally, I am going to work with IDE. But, in my opinion, everything should work from CLI in Linux. At this point of time, the author of Asterisk-Java library should respond to our thread :-) . I will get back to you, once I am done with the setting up of IDE. Thank you, once again. Regards, Chandra. |
From: Yves A. <yv...@gm...> - 2013-11-06 18:04:44
|
to keep things easy: put your HelloManager.class and the asterisk-java.jar file in ONE folder. CD into this folder and execute: java -cp asterisk-java.jar;. HelloManager this should execute without CNF execption. If this runs, your phones shoud ring.... and then... go ahead and learn the next steps concerning java and asterisk... have fun. yves Am 06.11.2013 18:22, schrieb Jac...@L-...: > > I have tested the code provided at the bottom (HelloManager.java) and > it works fine on my system. > > Are you using an IDE like Netbeans or Eclipse or IntelliJ? If not I > would recommend doing so. If you on a command line only system I > would learn a little more about creating a basic java package. > > Jacob > > *From:*Yves A. [mailto:yv...@gm...] > *Sent:* Wednesday, November 06, 2013 10:54 AM > *To:* ast...@li... > *Subject:* Re: [Asterisk-java-devel] Call is not initiating between > two extensions through Asterisk-Java program > > no... not the sources... the libraries (asterisk-java.jar) must be on > the classpath... > > yves > > Am 06.11.2013 17:29, schrieb Chandramouli P: > > Hello Jacob, > > Thank you for your quick reply. > > The asterisk-java.jar file is in my source directory only, where > my source code program (.java) is located. I think that we no need > to add my program source directory to the class path. Am I correct? > > I look forward to hearing from you. Thank you. > > Regards, > Chandra. > > > On 11/6/2013 6:06 PM, Jac...@L-... > <mailto:Jac...@L-...> wrote: > > So, now on the step where you execute java HelloManager you > need to make sure that asterisk-java.jar is in your classpath. > > Jacob > > *From:*Chandramouli P [mailto:mou...@gm...] > *Sent:* Wednesday, November 06, 2013 6:33 AM > *To:* ast...@li... > <mailto:ast...@li...> > *Subject:* Re: Call is not initiating between two extensions > through Asterisk-Java program > > Hello Jacob, > > Thank you for your quick reply. As you suggested, I executed > the generated class file like java HelloManager. I am getting > the below errors: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/asteriskjava/manager/action/ManagerAction > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Unknown > Source) > at java.lang.Class.getMethod0(Unknown Source) > at java.lang.Class.getMethod(Unknown Source) > at sun.launcher.LauncherHelper.getMainMethod(Unknown > Source) > at > sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) > Caused by: java.lang.ClassNotFoundException: > org.asteriskjava.manager.action.ManagerAction > at java.net.URLClassLoader$1.run(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native > Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown > Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > ... 6 more > > Please note that I am getting the above errors with Step 6 and > with out Step 6 also. > > Please let me know your thoughts. > > Thank you. > > Regards, > Chandra. > > > > On 11/6/2013 5:44 PM, Jac...@L-... > <mailto:Jac...@L-...> wrote: > > OK, after step 8 you now have a HelloManager.class file, > you now need to tell Java to run that class file (java > HellowManager) should be the command to have Java execute > your code. I don't think step 6 is needed, as your code > creates a new manager connection and handles the sending > of the OriginateAction so there is no need to run "java > --jar asterisk-java.jar". > > Jacob > > *From:*Chandramouli P [mailto:mou...@gm...] > *Sent:* Wednesday, November 06, 2013 5:55 AM > *To:* ast...@li... > <mailto:ast...@li...> > *Subject:* Re: Call is not initiating between two > extensions through Asterisk-Java program > > Hello Jacob, > > Thank you for your reply. I tried as you suggested in both > the below scenarios. But, I am not getting anything. > Please find the below modified extensions.conf file: > > *Scenario 1:* > [abcd] > exten => 121,1,Dial(SIP/121,15) > exten => 121,2,Hangup > > [abcd](+) > exten => 115,1,Dial(SIP/115,15) > exten => 115,2,Hangup > > *Scenario 2:* > [abcd] > exten => 121,1,Dial(SIP/121,15) > exten => 121,2,Hangup > > exten => 115,1,Dial(SIP/115,15) > exten => 115,2,Hangup > > I tested AMI through Telnet connected successfully. Please > find the below output: > > # telnet 127.0.0.1 5038 > Trying 127.0.0.1... > Connected to 127.0.0.1. > Escape character is '^]'. > Asterisk Call Manager/1.3 > > Action: Login > UserName: manager > Secret: password > > I pressed "Enter" key two times and got the below output: > > Response: Success > Message: Authentication accepted > > After Step 8 (I mean after creating the .class file), Do I > need to execute any command? > > Any update would be appreciated. Thanks in advance. > > Regards, > CMP > > > On 11/5/2013 7:23 PM, > ast...@li... > <mailto:ast...@li...> > wrote: > > Re: Call is not initiating between two extensions through > > Asterisk-Java program (Jac...@L-... <mailto:Jac...@L-...>) > > > > > > ------------------------------------------------------------------------------ > > November Webinars for C, C++, Fortran Developers > > Accelerate application performance with scalable programming models. Explore > > techniques for threading, error checking, porting, and tuning. Get the most > > from the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk > > > > > _______________________________________________ > > Asterisk-java-devel mailing list > > Ast...@li... <mailto:Ast...@li...> > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > > > ------------------------------------------------------------------------ > > <http://www.avast.com/> > > > > Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus > <http://www.avast.com/> Schutz ist aktiv. > > > > ------------------------------------------------------------------------------ > November Webinars for C, C++, Fortran Developers > Accelerate application performance with scalable programming models. Explore > techniques for threading, error checking, porting, and tuning. Get the most > from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk > > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel --- Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv. http://www.avast.com |
From: <Jac...@L-...> - 2013-11-06 17:22:28
|
I have tested the code provided at the bottom (HelloManager.java) and it works fine on my system. Are you using an IDE like Netbeans or Eclipse or IntelliJ? If not I would recommend doing so. If you on a command line only system I would learn a little more about creating a basic java package. Jacob From: Yves A. [mailto:yv...@gm...] Sent: Wednesday, November 06, 2013 10:54 AM To: ast...@li... Subject: Re: [Asterisk-java-devel] Call is not initiating between two extensions through Asterisk-Java program no... not the sources... the libraries (asterisk-java.jar) must be on the classpath... yves Am 06.11.2013 17:29, schrieb Chandramouli P: Hello Jacob, Thank you for your quick reply. The asterisk-java.jar file is in my source directory only, where my source code program (.java) is located. I think that we no need to add my program source directory to the class path. Am I correct? I look forward to hearing from you. Thank you. Regards, Chandra. On 11/6/2013 6:06 PM, Jac...@L-... wrote: So, now on the step where you execute java HelloManager you need to make sure that asterisk-java.jar is in your classpath. Jacob From: Chandramouli P [mailto:mou...@gm...] Sent: Wednesday, November 06, 2013 6:33 AM To: ast...@li... Subject: Re: Call is not initiating between two extensions through Asterisk-Java program Hello Jacob, Thank you for your quick reply. As you suggested, I executed the generated class file like java HelloManager. I am getting the below errors: Exception in thread "main" java.lang.NoClassDefFoundError: org/asteriskjava/manager/action/ManagerAction at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getMethod0(Unknown Source) at java.lang.Class.getMethod(Unknown Source) at sun.launcher.LauncherHelper.getMainMethod(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.asteriskjava.manager.action.ManagerAction at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 6 more Please note that I am getting the above errors with Step 6 and with out Step 6 also. Please let me know your thoughts. Thank you. Regards, Chandra. On 11/6/2013 5:44 PM, Jac...@L-... wrote: OK, after step 8 you now have a HelloManager.class file, you now need to tell Java to run that class file (java HellowManager) should be the command to have Java execute your code. I don't think step 6 is needed, as your code creates a new manager connection and handles the sending of the OriginateAction so there is no need to run "java -jar asterisk-java.jar". Jacob From: Chandramouli P [mailto:mou...@gm...] Sent: Wednesday, November 06, 2013 5:55 AM To: ast...@li... Subject: Re: Call is not initiating between two extensions through Asterisk-Java program Hello Jacob, Thank you for your reply. I tried as you suggested in both the below scenarios. But, I am not getting anything. Please find the below modified extensions.conf file: Scenario 1: [abcd] exten => 121,1,Dial(SIP/121,15) exten => 121,2,Hangup [abcd](+) exten => 115,1,Dial(SIP/115,15) exten => 115,2,Hangup Scenario 2: [abcd] exten => 121,1,Dial(SIP/121,15) exten => 121,2,Hangup exten => 115,1,Dial(SIP/115,15) exten => 115,2,Hangup I tested AMI through Telnet connected successfully. Please find the below output: # telnet 127.0.0.1 5038 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Asterisk Call Manager/1.3 Action: Login UserName: manager Secret: password I pressed "Enter" key two times and got the below output: Response: Success Message: Authentication accepted After Step 8 (I mean after creating the .class file), Do I need to execute any command? Any update would be appreciated. Thanks in advance. Regards, CMP On 11/5/2013 7:23 PM, ast...@li... wrote: Re: Call is not initiating between two extensions through Asterisk-Java program (Jac...@L-...) ------------------------------------------------------------------------ ------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clk trk _______________________________________________ Asterisk-java-devel mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel ________________________________ <http://www.avast.com/> Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus <http://www.avast.com/> Schutz ist aktiv. |
From: Yves A. <yv...@gm...> - 2013-11-06 16:53:26
|
no... not the sources... the libraries (asterisk-java.jar) must be on the classpath... yves Am 06.11.2013 17:29, schrieb Chandramouli P: > Hello Jacob, > > Thank you for your quick reply. > > The asterisk-java.jar file is in my source directory only, where my > source code program (.java) is located. I think that we no need to add > my program source directory to the class path. Am I correct? > > I look forward to hearing from you. Thank you. > > Regards, > Chandra. > > > On 11/6/2013 6:06 PM, Jac...@L-... wrote: >> >> So, now on the step where you execute java HelloManager you need to >> make sure that asterisk-java.jar is in your classpath. >> >> Jacob >> >> *From:*Chandramouli P [mailto:mou...@gm...] >> *Sent:* Wednesday, November 06, 2013 6:33 AM >> *To:* ast...@li... >> *Subject:* Re: Call is not initiating between two extensions through >> Asterisk-Java program >> >> Hello Jacob, >> >> Thank you for your quick reply. As you suggested, I executed the >> generated class file like java HelloManager. I am getting the below >> errors: >> >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/asteriskjava/manager/action/ManagerAction >> at java.lang.Class.getDeclaredMethods0(Native Method) >> at java.lang.Class.privateGetDeclaredMethods(Unknown Source) >> at java.lang.Class.getMethod0(Unknown Source) >> at java.lang.Class.getMethod(Unknown Source) >> at sun.launcher.LauncherHelper.getMainMethod(Unknown Source) >> at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) >> Caused by: java.lang.ClassNotFoundException: >> org.asteriskjava.manager.action.ManagerAction >> at java.net.URLClassLoader$1.run(Unknown Source) >> at java.net.URLClassLoader$1.run(Unknown Source) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(Unknown Source) >> at java.lang.ClassLoader.loadClass(Unknown Source) >> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) >> at java.lang.ClassLoader.loadClass(Unknown Source) >> ... 6 more >> >> Please note that I am getting the above errors with Step 6 and with >> out Step 6 also. >> >> Please let me know your thoughts. >> >> Thank you. >> >> Regards, >> Chandra. >> >> >> >> On 11/6/2013 5:44 PM, Jac...@L-... >> <mailto:Jac...@L-...> wrote: >> >> OK, after step 8 you now have a HelloManager.class file, you now >> need to tell Java to run that class file (java HellowManager) >> should be the command to have Java execute your code. I don't >> think step 6 is needed, as your code creates a new manager >> connection and handles the sending of the OriginateAction so >> there is no need to run "java --jar asterisk-java.jar". >> >> Jacob >> >> *From:*Chandramouli P [mailto:mou...@gm...] >> *Sent:* Wednesday, November 06, 2013 5:55 AM >> *To:* ast...@li... >> <mailto:ast...@li...> >> *Subject:* Re: Call is not initiating between two extensions >> through Asterisk-Java program >> >> Hello Jacob, >> >> Thank you for your reply. I tried as you suggested in both the >> below scenarios. But, I am not getting anything. Please find the >> below modified extensions.conf file: >> >> *Scenario 1:* >> [abcd] >> exten => 121,1,Dial(SIP/121,15) >> exten => 121,2,Hangup >> >> [abcd](+) >> exten => 115,1,Dial(SIP/115,15) >> exten => 115,2,Hangup >> >> *Scenario 2:* >> [abcd] >> exten => 121,1,Dial(SIP/121,15) >> exten => 121,2,Hangup >> >> exten => 115,1,Dial(SIP/115,15) >> exten => 115,2,Hangup >> >> I tested AMI through Telnet connected successfully. Please find >> the below output: >> >> # telnet 127.0.0.1 5038 >> Trying 127.0.0.1... >> Connected to 127.0.0.1. >> Escape character is '^]'. >> Asterisk Call Manager/1.3 >> >> Action: Login >> UserName: manager >> Secret: password >> >> I pressed "Enter" key two times and got the below output: >> >> Response: Success >> Message: Authentication accepted >> >> After Step 8 (I mean after creating the .class file), Do I need >> to execute any command? >> >> Any update would be appreciated. Thanks in advance. >> >> Regards, >> CMP >> >> >> On 11/5/2013 7:23 PM, >> ast...@li... >> <mailto:ast...@li...> wrote: >> >> Re: Call is not initiating between two extensions through >> >> Asterisk-Java program (Jac...@L-... <mailto:Jac...@L-...>) >> > > > > ------------------------------------------------------------------------------ > November Webinars for C, C++, Fortran Developers > Accelerate application performance with scalable programming models. Explore > techniques for threading, error checking, porting, and tuning. Get the most > from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk > > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel --- Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv. http://www.avast.com |
From: Chandramouli P <mou...@gm...> - 2013-11-06 16:29:33
|
Hello Jacob, Thank you for your quick reply. The asterisk-java.jar file is in my source directory only, where my source code program (.java) is located. I think that we no need to add my program source directory to the class path. Am I correct? I look forward to hearing from you. Thank you. Regards, Chandra. On 11/6/2013 6:06 PM, Jac...@L-... wrote: > > So, now on the step where you execute java HelloManager you need to > make sure that asterisk-java.jar is in your classpath. > > Jacob > > *From:*Chandramouli P [mailto:mou...@gm...] > *Sent:* Wednesday, November 06, 2013 6:33 AM > *To:* ast...@li... > *Subject:* Re: Call is not initiating between two extensions through > Asterisk-Java program > > Hello Jacob, > > Thank you for your quick reply. As you suggested, I executed the > generated class file like java HelloManager. I am getting the below > errors: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/asteriskjava/manager/action/ManagerAction > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Unknown Source) > at java.lang.Class.getMethod0(Unknown Source) > at java.lang.Class.getMethod(Unknown Source) > at sun.launcher.LauncherHelper.getMainMethod(Unknown Source) > at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) > Caused by: java.lang.ClassNotFoundException: > org.asteriskjava.manager.action.ManagerAction > at java.net.URLClassLoader$1.run(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > ... 6 more > > Please note that I am getting the above errors with Step 6 and with > out Step 6 also. > > Please let me know your thoughts. > > Thank you. > > Regards, > Chandra. > > > > On 11/6/2013 5:44 PM, Jac...@L-... > <mailto:Jac...@L-...> wrote: > > OK, after step 8 you now have a HelloManager.class file, you now > need to tell Java to run that class file (java HellowManager) > should be the command to have Java execute your code. I don't > think step 6 is needed, as your code creates a new manager > connection and handles the sending of the OriginateAction so there > is no need to run "java --jar asterisk-java.jar". > > Jacob > > *From:*Chandramouli P [mailto:mou...@gm...] > *Sent:* Wednesday, November 06, 2013 5:55 AM > *To:* ast...@li... > <mailto:ast...@li...> > *Subject:* Re: Call is not initiating between two extensions > through Asterisk-Java program > > Hello Jacob, > > Thank you for your reply. I tried as you suggested in both the > below scenarios. But, I am not getting anything. Please find the > below modified extensions.conf file: > > *Scenario 1:* > [abcd] > exten => 121,1,Dial(SIP/121,15) > exten => 121,2,Hangup > > [abcd](+) > exten => 115,1,Dial(SIP/115,15) > exten => 115,2,Hangup > > *Scenario 2:* > [abcd] > exten => 121,1,Dial(SIP/121,15) > exten => 121,2,Hangup > > exten => 115,1,Dial(SIP/115,15) > exten => 115,2,Hangup > > I tested AMI through Telnet connected successfully. Please find > the below output: > > # telnet 127.0.0.1 5038 > Trying 127.0.0.1... > Connected to 127.0.0.1. > Escape character is '^]'. > Asterisk Call Manager/1.3 > > Action: Login > UserName: manager > Secret: password > > I pressed "Enter" key two times and got the below output: > > Response: Success > Message: Authentication accepted > > After Step 8 (I mean after creating the .class file), Do I need to > execute any command? > > Any update would be appreciated. Thanks in advance. > > Regards, > CMP > > > On 11/5/2013 7:23 PM, > ast...@li... > <mailto:ast...@li...> wrote: > > Re: Call is not initiating between two extensions through > > Asterisk-Java program (Jac...@L-... <mailto:Jac...@L-...>) > |
From: Chandramouli P <mou...@gm...> - 2013-11-06 12:33:13
|
Hello Jacob, Thank you for your quick reply. As you suggested, I executed the generated class file like java HelloManager. I am getting the below errors: Exception in thread "main" java.lang.NoClassDefFoundError: org/asteriskjava/manager/action/ManagerAction at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.getMethod0(Unknown Source) at java.lang.Class.getMethod(Unknown Source) at sun.launcher.LauncherHelper.getMainMethod(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.asteriskjava.manager.action.ManagerAction at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 6 more Please note that I am getting the above errors with Step 6 and with out Step 6 also. Please let me know your thoughts. Thank you. Regards, Chandra. On 11/6/2013 5:44 PM, Jac...@L-... wrote: > > OK, after step 8 you now have a HelloManager.class file, you now need > to tell Java to run that class file (java HellowManager) should be the > command to have Java execute your code. I don't think step 6 is > needed, as your code creates a new manager connection and handles the > sending of the OriginateAction so there is no need to run "java --jar > asterisk-java.jar". > > Jacob > > *From:*Chandramouli P [mailto:mou...@gm...] > *Sent:* Wednesday, November 06, 2013 5:55 AM > *To:* ast...@li... > *Subject:* Re: Call is not initiating between two extensions through > Asterisk-Java program > > Hello Jacob, > > Thank you for your reply. I tried as you suggested in both the below > scenarios. But, I am not getting anything. Please find the below > modified extensions.conf file: > > *Scenario 1:* > [abcd] > exten => 121,1,Dial(SIP/121,15) > exten => 121,2,Hangup > > [abcd](+) > exten => 115,1,Dial(SIP/115,15) > exten => 115,2,Hangup > > *Scenario 2:* > [abcd] > exten => 121,1,Dial(SIP/121,15) > exten => 121,2,Hangup > > exten => 115,1,Dial(SIP/115,15) > exten => 115,2,Hangup > > I tested AMI through Telnet connected successfully. Please find the > below output: > > # telnet 127.0.0.1 5038 > Trying 127.0.0.1... > Connected to 127.0.0.1. > Escape character is '^]'. > Asterisk Call Manager/1.3 > > Action: Login > UserName: manager > Secret: password > > I pressed "Enter" key two times and got the below output: > > Response: Success > Message: Authentication accepted > > After Step 8 (I mean after creating the .class file), Do I need to > execute any command? > > Any update would be appreciated. Thanks in advance. > > Regards, > CMP > > > On 11/5/2013 7:23 PM, > ast...@li... > <mailto:ast...@li...> wrote: > > Re: Call is not initiating between two extensions through > > Asterisk-Java program (Jac...@L-... <mailto:Jac...@L-...>) > |
From: Chandramouli P <mou...@gm...> - 2013-11-06 11:55:46
|
Hello Jacob, Thank you for your reply. I tried as you suggested in both the below scenarios. But, I am not getting anything. Please find the below modified extensions.conf file: *Scenario 1:* [abcd] exten => 121,1,Dial(SIP/121,15) exten => 121,2,Hangup [abcd](+) exten => 115,1,Dial(SIP/115,15) exten => 115,2,Hangup *Scenario 2:* [abcd] exten => 121,1,Dial(SIP/121,15) exten => 121,2,Hangup exten => 115,1,Dial(SIP/115,15) exten => 115,2,Hangup I tested AMI through Telnet connected successfully. Please find the below output: # telnet 127.0.0.1 5038 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Asterisk Call Manager/1.3 Action: Login UserName: manager Secret: password I pressed "Enter" key two times and got the below output: Response: Success Message: Authentication accepted After Step 8 (I mean after creating the .class file), Do I need to execute any command? Any update would be appreciated. Thanks in advance. Regards, CMP On 11/5/2013 7:23 PM, ast...@li... wrote: > Re: Call is not initiating between two extensions through > Asterisk-Java program (Jac...@L-...) |
From: <Jac...@L-...> - 2013-11-05 13:53:32
|
I think you issue is going to be in your extensions.conf [abcd] exten => 121,1,Dial(SIP/121,15) exten => 121,2,Hangup [abcd] exten => 115,1,Dial(SIP/115,15) exten => 115,2,Hangup You are defining [abcd] twice which is not good, it will match on the first one found and never hit the second one. It should look like this (only one [abcd] entry): [abcd] exten => 121,1,Dial(SIP/121,15) exten => 121,2,Hangup exten => 115,1,Dial(SIP/115,15) exten => 115,2,Hangup As well you can test if your AMI (asterisk manager interface) is working by do a Telnet session to 127.0.0.1 on port 5038 and seeing if you can login manually. Jacob From: Chandramouli P [mailto:mou...@gm...] Sent: Tuesday, November 05, 2013 6:45 AM To: ast...@li... Subject: [Asterisk-java-devel] Call is not initiating between two extensions through Asterisk-Java program Hi, I am completely new to Asterisk-Java and following http://www.asterisk-java.org/development/tutorial.html link. I am able to execute basic "Hello AGI" example. Now, I am trying to execute "Hello Manager" example. But, nothing is happening. I have two extensions (121, 115) and connected to my Asterisk server through two soft phones (Xlite). I am able to make call between two extensions directly. Now, I want to initiate a call from 121 to extension 115 using Asterisk-Java program. Please find my below configuration step by step: 1) /etc/asterisk/manager.conf [general] enabled = yes port = 5038 bindaddr = 0.0.0.0 [manager] secret=password permit=0.0.0.0/0.0.0.0 read=all write=all 2) /etc/asterisk/sip.conf [121] type=friend username=121 secret=cmp1 callerid="cmp121" host=dynamic context=abcd [115] type=friend username=115 secret=cmp2 callerid="cmp115" host=dynamic context=abcd 3) /etc/asterisk/extensions.conf [abcd] exten => 121,1,Dial(SIP/121,15) exten => 121,2,Hangup [abcd] exten => 115,1,Dial(SIP/115,15) exten => 115,2,Hangup 4) HelloManager.java import java.io.IOException; import org.asteriskjava.manager.AuthenticationFailedException; import org.asteriskjava.manager.ManagerConnection; import org.asteriskjava.manager.ManagerConnectionFactory; import org.asteriskjava.manager.TimeoutException; import org.asteriskjava.manager.action.OriginateAction; import org.asteriskjava.manager.response.ManagerResponse; public class HelloManager { private ManagerConnection managerConnection; public HelloManager() throws IOException { ManagerConnectionFactory factory = new ManagerConnectionFactory( "localhost", "manager", "password"); this.managerConnection = factory.createManagerConnection(); } public void run() throws IOException, AuthenticationFailedException, TimeoutException { OriginateAction originateAction; ManagerResponse originateResponse; originateAction = new OriginateAction(); originateAction.setChannel("SIP/121"); originateAction.setContext("abcd"); originateAction.setExten("115"); originateAction.setPriority(new Integer(1)); //originateAction.setTimeout(new Integer(30000)); managerConnection.login(); originateResponse = managerConnection.sendAction(originateAction, 30000); // print out whether the originate succeeded or not System.out.println(originateResponse.getResponse()); managerConnection.logoff(); } public static void main(String[] args) throws Exception { HelloManager helloManager; helloManager = new HelloManager(); helloManager.run(); } } 5) Connected to Asterisk server (asterisk -rvvvvv) 6) Start Asterisk-Java ( java -jar asterisk-java.jar) 7) Compiled the program (javac -cp asterisk-java.jar HelloManager.java) 8) HelloManager.class file is created. I executed the above 8 steps and not seeing any messages on Asterisk-Java server console (on *:4573) and also not seeing any messages on Asterisk server console. Call is also not forming between the extensions. What I need to do in addition? Any help would be appreciated. Thanks in advance. Regards, CMP |
From: Chandramouli P <mou...@gm...> - 2013-11-05 12:45:19
|
Hi, I am completely new to Asterisk-Java and following *http://www.asterisk-java.org/development/tutorial.html* link. I am able to execute basic "Hello AGI" example. Now, I am trying to execute "Hello Manager" example. But, nothing is happening. I have two extensions (121, 115) and connected to my Asterisk server through two soft phones (Xlite). I am able to make call between two extensions directly. Now, I want to initiate a call from 121 to extension 115 using Asterisk-Java program. *Please find my below configuration step by step:* 1) /etc/asterisk/manager.conf [general] enabled = yes port = 5038 bindaddr = 0.0.0.0 [manager] secret=password permit=0.0.0.0/0.0.0.0 read=all write=all 2) /etc/asterisk/sip.conf [121] type=friend username=121 secret=cmp1 callerid="cmp121" host=dynamic context=abcd [115] type=friend username=115 secret=cmp2 callerid="cmp115" host=dynamic context=abcd 3) /etc/asterisk/extensions.conf [abcd] exten => 121,1,Dial(SIP/121,15) exten => 121,2,Hangup [abcd] exten => 115,1,Dial(SIP/115,15) exten => 115,2,Hangup 4) HelloManager.java import java.io.IOException; import org.asteriskjava.manager.AuthenticationFailedException; import org.asteriskjava.manager.ManagerConnection; import org.asteriskjava.manager.ManagerConnectionFactory; import org.asteriskjava.manager.TimeoutException; import org.asteriskjava.manager.action.OriginateAction; import org.asteriskjava.manager.response.ManagerResponse; public class HelloManager { private ManagerConnection managerConnection; public HelloManager() throws IOException { ManagerConnectionFactory factory = new ManagerConnectionFactory( "localhost", "manager", "password"); this.managerConnection = factory.createManagerConnection(); } public void run() throws IOException, AuthenticationFailedException, TimeoutException { OriginateAction originateAction; ManagerResponse originateResponse; originateAction = new OriginateAction(); originateAction.setChannel("SIP/121"); originateAction.setContext("abcd"); originateAction.setExten("115"); originateAction.setPriority(new Integer(1)); //originateAction.setTimeout(new Integer(30000)); managerConnection.login(); originateResponse = managerConnection.sendAction(originateAction, 30000); // print out whether the originate succeeded or not System.out.println(originateResponse.getResponse()); managerConnection.logoff(); } public static void main(String[] args) throws Exception { HelloManager helloManager; helloManager = new HelloManager(); helloManager.run(); } } 5) Connected to Asterisk server (asterisk -rvvvvv) 6) Start Asterisk-Java ( java -jar asterisk-java.jar) 7) Compiled the program (javac -cp asterisk-java.jar HelloManager.java) 8) HelloManager.class file is created. I executed the above 8 steps and not seeing any messages on Asterisk-Java server console (on *:4573) and also not seeing any messages on Asterisk server console. Call is also not forming between the extensions. What I need to do in addition? Any help would be appreciated. Thanks in advance. Regards, CMP |
From: Yves A. <yv...@gm...> - 2013-08-05 09:49:34
|
Hi, I don´t understand what you mean with "run a webservice in asterisk itself", but "dynamic" extensions can be realized quite easy... at least in two ways: 1.) use (database-driven) realtime extensions 2.) go the way like freepbx and other frameworks and create the configfiles everytime it is necessary and reload them via asterisk so afaik asterisk has no "webservice" itself, but of course you could write your own and do all the necessary stuff there. yves Am 05.08.2013 08:59, schrieb Chandramouli P: > Hi, > > I have done some research and gone through lot of documents about web > services with Asterisk. What I noticed is people are able to call their > web service from Asterisk (extensions.conf) using any of SOAP or REST. > Of course, it will be done using AGI. > > My query: > > I want to run a web service in Asterisk itself. For example, when I send > a request from my web application to Asterisk system using REST or SOAP, > I will be able to run a web service to create a extension in Asterisk. > That means, creation of an extension functionality should be developed > as a web service in Asterisk. Is it possible or not? > > Thanks in advance. > > Regards, > Chandra. > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > |
From: Chandramouli P <cra...@ya...> - 2013-08-05 07:00:21
|
Hi, I have done some research and gone through lot of documents about web services with Asterisk. What I noticed is people are able to call their web service from Asterisk (extensions.conf) using any of SOAP or REST. Of course, it will be done using AGI. My query: I want to run a web service in Asterisk itself. For example, when I send a request from my web application to Asterisk system using REST or SOAP, I will be able to run a web service to create a extension in Asterisk. That means, creation of an extension functionality should be developed as a web service in Asterisk. Is it possible or not? Thanks in advance. Regards, Chandra. |
From: Mumuney A. <abd...@go...> - 2013-06-28 09:44:44
|
Hi all, I am on a project and we are leveraging the vert.x http://vertx.io/ project for easy scallabilty. However we need to use asterisk-java. My concern is asterisk-java already is a server that you run. I will like to use vert.x for this part because their approach to scallabilitiy and clustering is easy and understandable. My question is, Is it easy to use asterisk java in this way, that is allowing vert.x to handle the socket connections. What packages do I need to strip out. Or what considerations am I to make. Regards. |
From: Brett S. <bs...@no...> - 2013-06-03 02:42:25
|
HI Stephan, I've got a long outstanding pull request on asterisk java. Is it possible for you to merge it? Or is there anything I can do to help? Brett On 12/11/12 23:46, Stefan Reuter wrote: > On 2012-11-12 09:19, Videanu Adrian wrote: >> If there is anyone interested or is a way to commit that code to >> official repository please let me know. > Sure just clone the repo at github and send me a pull request. > > =Stefan > |
From: Brett S. <bs...@no...> - 2012-11-13 22:26:35
|
No if you have already down the pull all is good. Videanu Adrian <vid...@ya...> wrote: >Hi Brett, >i have already sent a pool request to Stephan >(https://github.com/srt/asterisk-java/pull/16). I can send it to you >either if you think this is necessary. > >Regards, > >Adrian Videanu > >--- On Mon, 11/12/12, Brett Sutton <bs...@no...> wrote: > >From: Brett Sutton <bs...@no...> >Subject: Re: [Asterisk-java-devel] PauseMixMonitorAction >To: ast...@li... >Date: Monday, November 12, 2012, 10:33 AM > >Videanu, > >I have a fork on git hub. If you would like to send the patch to me I >will apply it and then push it up. > >Brett > >Videanu Adrian <vid...@ya...> wrote: >Hi all, >i have added a new class (PauseMixMonitorAction) to asterisk-java >package that allows you to pause a recording performed with MixMonitor >using asterisk manager command MixMonitorMute. This can be used from an >asteriskChannel like this : >asteriskChannel.pauseMixMonitor() or >asteriskChannel.unPauseMixMonitor(). > >If there is anyone interested or is a way to commit that code to >official repository please let me know. > >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_nov >Asterisk-java-devel mailing list >Ast...@li... >https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > >-- > >Sent from my Android phone with K-9 Mail. Please excuse my brevity. >-----Inline Attachment Follows----- > >------------------------------------------------------------------------------ >Monitor your physical, virtual and cloud infrastructure from a single >web console. Get in-depth insight into apps, servers, databases, >vmware, >SAP, cloud infrastructure, etc. Download 30-day Free Trial. >Pricing starts from $795 for 25 servers or applications! >http://p.sf.net/sfu/zoho_dev2dev_nov >-----Inline Attachment Follows----- > >_______________________________________________ >Asterisk-java-devel mailing list >Ast...@li... >https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > >------------------------------------------------------------------------ > >------------------------------------------------------------------------------ >Monitor your physical, virtual and cloud infrastructure from a single >web console. Get in-depth insight into apps, servers, databases, >vmware, >SAP, cloud infrastructure, etc. Download 30-day Free Trial. >Pricing starts from $795 for 25 servers or applications! >http://p.sf.net/sfu/zoho_dev2dev_nov > >------------------------------------------------------------------------ > >_______________________________________________ >Asterisk-java-devel mailing list >Ast...@li... >https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. |
From: Videanu A. <vid...@ya...> - 2012-11-13 12:51:16
|
Hi Brett, i have already sent a pool request to Stephan (https://github.com/srt/asterisk-java/pull/16). I can send it to you either if you think this is necessary. Regards, Adrian Videanu --- On Mon, 11/12/12, Brett Sutton <bs...@no...> wrote: From: Brett Sutton <bs...@no...> Subject: Re: [Asterisk-java-devel] PauseMixMonitorAction To: ast...@li... Date: Monday, November 12, 2012, 10:33 AM Videanu, I have a fork on git hub. If you would like to send the patch to me I will apply it and then push it up. Brett Videanu Adrian <vid...@ya...> wrote: Hi all, i have added a new class (PauseMixMonitorAction) to asterisk-java package that allows you to pause a recording performed with MixMonitor using asterisk manager command MixMonitorMute. This can be used from an asteriskChannel like this : asteriskChannel.pauseMixMonitor() or asteriskChannel.unPauseMixMonitor(). If there is anyone interested or is a way to commit that code to official repository please let me know. Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov Asterisk-java-devel mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov -----Inline Attachment Follows----- _______________________________________________ Asterisk-java-devel mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel |
From: Brett S. <bs...@no...> - 2012-11-13 11:57:00
|
Videanu, I have a fork on git hub. If you would like to send the patch to me I will apply it and then push it up. Brett Videanu Adrian <vid...@ya...> wrote: >Hi all, >i have added a new class (PauseMixMonitorAction) to asterisk-java >package that allows you to pause a recording performed with MixMonitor >using asterisk manager command MixMonitorMute. This can be used from an >asteriskChannel like this : >asteriskChannel.pauseMixMonitor() or >asteriskChannel.unPauseMixMonitor(). > >If there is anyone interested or is a way to commit that code to >official repository please let me know. > > >------------------------------------------------------------------------ > >------------------------------------------------------------------------------ >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_nov > >------------------------------------------------------------------------ > >_______________________________________________ >Asterisk-java-devel mailing list >Ast...@li... >https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. |
From: Stefan R. <ste...@re...> - 2012-11-12 13:04:04
|
On 2012-11-12 09:19, Videanu Adrian wrote: > If there is anyone interested or is a way to commit that code to > official repository please let me know. Sure just clone the repo at github and send me a pull request. =Stefan -- reuter network consulting Im Zollhafen 14 50678 Koeln Germany Telefon: +49 251 530289-20 Telefax: +49 251 530289-29 E-Mail: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Videanu A. <vid...@ya...> - 2012-11-12 08:19:31
|
Hi all, i have added a new class (PauseMixMonitorAction) to asterisk-java package that allows you to pause a recording performed with MixMonitor using asterisk manager command MixMonitorMute. This can be used from an asteriskChannel like this : asteriskChannel.pauseMixMonitor() or asteriskChannel.unPauseMixMonitor(). If there is anyone interested or is a way to commit that code to official repository please let me know. |