Re: [Asterisk-java-users] Asterisk-Java 1.0 release et al
Hi Brett, sounds great. Currently I am in holidays, but I´d like to contribute and help as much as I can. Don´t expect too much from my side as I am quite busy, but nevertheless I´ll try hard. regards, Yves Am 13.04.2015 um 02:27 schrieb Brett Sutton: > Gentlefolk, > I've just been added by Stefan as a contributor to Asterisk-Java over at > GitHub (the official repository for asterisk-java). > > Noojee is a long time user of Asterisks Java and we are aiming to get > the project re-invigorated as Stefan is busy off working on other > projects these days. > > The first objective is to get an official 1.0 release out the door which > essentially is just a snap shot of the existing code with a few bug > fixes and a few minor enhancements that Noojee has been using for some time. > > Once we have 1.0 out the door the aim is to work on 2.0 in which we > would be looking to support asterisk 11 and 13 as well as merging many > of the enhancements which have been worked on in many of the forks of > asterisk-java. > > So we are looking for contributors to help: > > marshal commits via submitting pull requests for well tested bug fixes > to asterisk-java 1.0 > creation/marshalling of unit tests for 1.0 > creation of docker instances for each of the support version of asterisk 1.0 > agreement on what versions of asterisk 1.0 will support (1.4, 1.8,...). > general testing of the release candidates we will be pushing out. > other things that the community feel are important. > setup a better communications framework > moving issue tracking to github > > Can you help? > > Do you have any suggestions as to what we need to be doing? > > > > Brett > > > > -- > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > ___ > Asterisk-java-users mailing list > Asterisk-java-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users
Re: [Asterisk-java-users] Do you know some projects using asterisk-java library?
I am using this lib in a professional way (e.g. callcenter): - dialer systems (in- and outbound, handling thousands of calls per day) - backoffice telephony (e.g. switchboard supporting several locations) - webbased telphony systems - IVRs - FaxServer I really love it... I never got a telephonyproject, I could not build with asterisk + asteriskJava If you need help, ask the list or hire me for professional support. regards, Yves Am 18.08.2015 um 18:04 schrieb Alonso Genis: > Dears, > > I am Alonso, new at this list. We are studying some API for migrate an > application that connects to Asterisk's AMI for events and to process > them. > > We are very interesting in use Asterisk-Java, and i wonder if you know > some other developers or projects using it. I search in site, but i > don't find this information. We need it just for reference, is not > important what projects are or what license they have. > > Thanks very much for your attention. > > Alonso. > > -- > ___ > Asterisk-java-users mailing list > Asterisk-java-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus -- ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users
Re: [Asterisk-java-users] DefaultAsteriskServer goes to Hollywood
Hi Alessio, as my glassbowl is currently under repair, I cannot guess your source code so why not append it to your next eMail so that we can have a look at it? regards, yves Am 12.11.2015 um 09:11 schrieb Alessio Turini: Dear, I've a problem with the class DefaultAsteriskServer and the connection with the Asterisk (V. 11.19.0), i'll try to explain below (and sorry for my english) I develop a program that links inbound call with a couple of events, I use the class DefaultAsteriskServer and the listener addAsteriskServerListener(MyClass). MyClass checks every call and makes different operation based on type of call. The program is ok but after 10/20 hours goes to Hollywood, this means that the listener not link events. The class DefaultAsteriskServer is declared in a static object that wrap it. I would to ask, there is a timeout of connection between Asterisk and DefaultAsteriskServer , can i check the connection between the two actor? I tried to check the state of ManagerConnection (get by getManagerConnection() on DefaultAsteriskServer ) but the result is always connected and not help me to restablished a connection. Thanks in advance, Alessio -- *Dott. Alessio Turini* IT Dept - Credires Via Don Luigi Sturzo 4, Pontedera, Pisa, Italy +39 0587 467716 - +39 3457427943 - a.tur...@credires.it Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i, sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceveste questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail all'indirizzo i...@credires.it o telefonicamente allo +390587467700 e procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema; costituisce comportamento contrario ai principi dettati dal Dlgs 196/2003 il trattenere il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità, diverse. This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. Its use is allowed only to the intended recipient, for the purpose indicated in the message itself. If you are not the intended recipient, please notify us by email to i...@credires.it or by phone to +390587467700 and permanently delete this message and any attachments in your system. Keeping, disclosure also in part, distribution to other recipients, copying of the information included in this message and any attachments or using this information for different purposes is prohibited as per regulation Dlgs 196/2003. -- ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus -- ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users
Re: [Asterisk-java-users] sample asterisk dial plan integration with AGI java project (Eclipse)
Hi, the internet is full of examples... even the docs show it...: https://maven.reucon.com/projects/public/asterisk-java/1.0.0/tutorial.html http://www.jcgonzalez.com/asterisk-handle-calls-with-java-example A google search on "asterisk-java agi example" results in tons of info. regards, yves Am 12.11.2015 um 10:41 schrieb Abdul Basit: Hi all, I am new to asterisk, i would be very appreciate if any one would like to share sample dial plan integration with AGI based on Java Eclipse. thx I manage to setup Asterisk Environment in my machine. thx Regards, AB -- ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus -- ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users
Re: [Asterisk-java-users] DefaultAsteriskServer goes to Hollywood
my thoughts after taking a quick look...: I don´t see something essentially wrong... the listener only works, as long the object is "alive"... using it in a thread is ok, but i don´t see the code that initializes and finally "runs" the thread.. maybe you have deadslocks, or any other multithread related problems... or just a network-problem... (are asterisk and your programm running on different machines?) getting the managerconnection the way you do it should work, but it may be better to go the recommended way (don´t know your environment) and use the managerfactory. are you using at least the asterisk-java 1.0 api? using a serverlistener does not fire much info... a managereventlistener would give you much more information... maybe the thread-sleeptime of 20secs is too long... are you sure, that your asterisk is fine all the time? maybe there are interference with reloads, crashes and so on? what do asterisk-logs say (increase verbosity or use debug log) when connections failes? normally the managerconnection reestablishes the socketconnection, but this is not very stable... this only seems to work if the connection breaks after issuing a command... so relying on the result of getState is quite useless... you should fire an action to reliably check the availability... this should of course be a command that does not consume much resources.. e.g. core show version etc. yves Am 12.11.2015 um 11:15 schrieb Alessio Turini: Ok, thanks for the answers. The code in answer is similar as mine, I try to insert a portion of project below , the class EventoAsterisk after a couple of hours(15 h) doesn't grab the events, There is a mode to check this type of connection? In the method run, i try to check mc object but the result is always connected. Thanks Ale class ManagerAsterisk extends Thread { private String host; private String user; private String psw; private DefaultAsteriskServer serverA; private ManagerConnection mc; private EventoAsterisk eventi; ManagerAsterisk(String host, String user, String psw) { Log.info("DefaultAsteriskServer start "); this.host= host; this.user= user; this.psw= psw; serverA = new DefaultAsteriskServer(host, user, psw); serverA.initialize(); mc = serverA.getManagerConnection(); } ManagerConnection getManagerConnection() { return serverA.getManagerConnection(); } void addAsteriskServerListener(EventoAsterisk eventi) { this.eventi = eventi; serverA.addAsteriskServerListener(eventi); } void removeAsteriskServerListener(EventoAsterisk eventi) { Log.info("ManagerAsterisk.removeAsteriskServerListener - eventi :" + eventi); serverA.removeAsteriskServerListener(eventi); } @Override public void run() { try { while (true) { Log.info("ManagerAsterisk.run - state (pre sleep) :" + mc.getState().name() + " - " + mc.getState()); Thread.sleep(20 * 1000); ManagerConnectionState stato = mc.getState(); Log.info("ManagerAsterisk.run - state :" + mc.getState().name() + " - " + mc.getState()); if (!stato.equals(ManagerConnectionState.INITIAL) && !stato.equals(ManagerConnectionState.CONNECTING) && !stato.equals(ManagerConnectionState.CONNECTED)) { Log.info("ManagerAsterisk.run - reacreate :" + stato); serverA = new DefaultAsteriskServer(host, user, psw); mc = serverA.getManagerConnection(); mc.addEventListener(new ConnessioneAsterisk()); serverA.addAsteriskServerListener(eventi); stato = mc.getState(); Log.info("ManagerAsterisk.run - reacreated :" + stato); } } } catch (InterruptedException ex) { Log.error("ManagerAsterisk.run" + ex, ex); } } } Il 12/11/2015 10.50, Zoumana TRAORE ha scritto: Hi Alessio, You probably need to share a part of the code so we can help. I assume you did not maintain some how you AMI Connection. Here is how i did it using PingThread provided by the AJ library @Autowired private PingThread pingThread; /** * * Connect to Asterisk Server via Live API * * @return */ public void connect(){ asteriskServer = new DefaultAsteriskServer(asteriskLiveHost, asteriskUsername, asteriskPassword); asteriskServer.initialize(); pingThread.addConnection(asteriskServer.getManagerConnection()); } And you fire the PingThread for instance at your app boot-up if(pingThread != null && !pingThread.isAlive()){ pingThread.start(); } Regards, *--- * *Zoumana TRAORE* 2015-11-12 10
Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi' (script 'hello2.agi'))
Hi, Are your HelloAGIScript(2)-Classes defined in a package? If so, you have to prefix the full packagepath: hello.agi = path.to.my.class.HelloAgiScript hello2.agi = path.to.my.other.class.HelloAgiScript2 Also, check, state of the AGI-Server, and if you´re on different machines (as it seems) also Network, Firewall regards, yves Am 13.11.2015 um 10:11 schrieb Abdul Basit: Here is another class path setting still no luck :( From: basits...@hotmail.com To: asterisk-java-users@lists.sourceforge.net Date: Fri, 13 Nov 2015 14:06:01 +0500 Subject: Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi' (script 'hello2.agi')) I already snapshot in my previous file including with the source code, here is the class path screen short *fastagi-mapping.properties* hello.agi = HelloAgiScript hello2.agi = HelloAgiScript2 regards, AB From: zoumhuss...@gmail.com Date: Fri, 13 Nov 2015 09:57:20 +0100 To: asterisk-java-users@lists.sourceforge.net Subject: Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi' (script 'hello2.agi')) Please share your mapping file content and the screenshot of your eclipse project classpath Regards *--- **Zoumana TRAORE* 2015-11-13 9:45 GMT+01:00 Abdul Basit <mailto:basits...@hotmail.com>>: Hi I am facing this issue ""SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>' (script 'hello2.agi')"" , i did googled a lot but unable to find the solution. any one help please. I already Set fastagi-mapping.properties in class path , and also on the other path to be on safe, but no luck also the source code attached for the reference:( Asterisk Logs agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>: No script configured for URL 'agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>' (script 'hello2.agi') -- AGI Script agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi> completed, returning 0 _and on Eclipse Console when call trigger form softphone _Nov 13, 2015 3:48:43 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>' (script 'hello2.agi') This is the Dial Plan exten => 999,1,Agi(agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>) Regards, AB To: asterisk-java-users@lists.sourceforge.net <mailto:asterisk-java-users@lists.sourceforge.net> From: yves...@gmx.de <mailto:yves...@gmx.de> Date: Thu, 12 Nov 2015 12:28:30 +0100 Subject: Re: [Asterisk-java-users] sample asterisk dial plan integration with AGI java project (Eclipse) Hi, the internet is full of examples... even the docs show it...: https://maven.reucon.com/projects/public/asterisk-java/1.0.0/tutorial.html http://www.jcgonzalez.com/asterisk-handle-calls-with-java-example A google search on "asterisk-java agi example" results in tons of info. regards, yves Am 12.11.2015 um 10:41 schrieb Abdul Basit: Hi all, I am new to asterisk, i would be very appreciate if any one would like to share sample dial plan integration with AGI based on Java Eclipse. thx I manage to setup Asterisk Environment in my machine. thx Regards, AB -- ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net <mailto:Asterisk-java-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users Avast logo <https://www.avast.com/antivirus> Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. www.avast.com <https://www.avast.com/antivirus> -- ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net <mailto:Asterisk-java-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users --
Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi' (script 'hello2.agi'))
The resource file fastagi-mapping.properties cannot be found. you have to include the path to this file in your EXECUTION classpath... not in the java-build-source-path. in eclipse right-click on your agi-server-mail-class an click "run as" -> "run configuration". Put your mappings file in the user-entries section via "Add JARs" Button (even if it is not a jar-file) yves Am 13.11.2015 um 11:58 schrieb Abdul Basit: Hi Both, Thanks for the reply, i did but still same :( agi://10.168.30.1/hello.agi: No script configured for URL 'agi://10.168.30.1/hello.agi' (script 'hello.agi') hello.agi = agi_parsing.HelloAgiScript hello2.agi = agi_parsing.HelloAgiScript2 *_This is on Eclipse Console._* Nov 13, 2015 6:52:51 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle *INFO: Resource bundle 'fastagi-mapping' not found*. Nov 13, 2015 6:52:51 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run SEVERE: No script configured for URL 'agi://10.168.30.1/hello.agi' (script 'hello.agi') Regards, AB From: zoumhuss...@gmail.com Date: Fri, 13 Nov 2015 11:33:31 +0100 To: asterisk-java-users@lists.sourceforge.net Subject: Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi' (script 'hello2.agi')) +1 on package naming try with agi_parsing.HelloAgiScript as suggested by Yves networking seems to be fine as your server is getting the request to serve the AGI *--- **Zoumana TRAORE* 2015-11-13 11:25 GMT+01:00 Yves mailto:yves...@gmx.de>>: Hi, Are your HelloAGIScript(2)-Classes defined in a package? If so, you have to prefix the full packagepath: hello.agi = path.to.my.class.HelloAgiScript hello2.agi = path.to.my.other.class.HelloAgiScript2 Also, check, state of the AGI-Server, and if you´re on different machines (as it seems) also Network, Firewall regards, yves Am 13.11.2015 um 10:11 schrieb Abdul Basit: Here is another class path setting still no luck :( From: basits...@hotmail.com <mailto:basits...@hotmail.com> To: asterisk-java-users@lists.sourceforge.net <mailto:asterisk-java-users@lists.sourceforge.net> Date: Fri, 13 Nov 2015 14:06:01 +0500 Subject: Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>' (script 'hello2.agi')) I already snapshot in my previous file including with the source code, here is the class path screen short *fastagi-mapping.properties* hello.agi = HelloAgiScript hello2.agi = HelloAgiScript2 regards, AB From: zoumhuss...@gmail.com <mailto:zoumhuss...@gmail.com> Date: Fri, 13 Nov 2015 09:57:20 +0100 To: asterisk-java-users@lists.sourceforge.net <mailto:asterisk-java-users@lists.sourceforge.net> Subject: Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>' (script 'hello2.agi')) Please share your mapping file content and the screenshot of your eclipse project classpath Regards *--- **Zoumana TRAORE* 2015-11-13 9:45 GMT+01:00 Abdul Basit mailto:basits...@hotmail.com>>: Hi I am facing this issue ""SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>' (script 'hello2.agi')"" , i did googled a lot but unable to find the solution. any one help please. I already Set fastagi-mapping.properties in class path , and also on the other path to be on safe, but no luck also the source code attached for the reference:( Asterisk Logs agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>: No script configured for URL 'agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>' (script 'hello2.agi') -- AGI Script agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi> completed, returning 0 _and on Eclipse Console when call trigger form softphone _Nov 13, 2015 3:48:43 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run SEVERE: No
Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi' (script 'hello2.agi'))
small typo... agi-server-mail-class should be agi-server-mai*n*-class Am 13.11.2015 um 12:09 schrieb Yves: The resource file fastagi-mapping.properties cannot be found. you have to include the path to this file in your EXECUTION classpath... not in the java-build-source-path. in eclipse right-click on your agi-server-mail-class an click "run as" -> "run configuration". Put your mappings file in the user-entries section via "Add JARs" Button (even if it is not a jar-file) yves Am 13.11.2015 um 11:58 schrieb Abdul Basit: Hi Both, Thanks for the reply, i did but still same :( agi://10.168.30.1/hello.agi: No script configured for URL 'agi://10.168.30.1/hello.agi' (script 'hello.agi') hello.agi = agi_parsing.HelloAgiScript hello2.agi = agi_parsing.HelloAgiScript2 *_This is on Eclipse Console._* Nov 13, 2015 6:52:51 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle *INFO: Resource bundle 'fastagi-mapping' not found*. Nov 13, 2015 6:52:51 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run SEVERE: No script configured for URL 'agi://10.168.30.1/hello.agi' (script 'hello.agi') Regards, AB From: zoumhuss...@gmail.com Date: Fri, 13 Nov 2015 11:33:31 +0100 To: asterisk-java-users@lists.sourceforge.net Subject: Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi' (script 'hello2.agi')) +1 on package naming try with agi_parsing.HelloAgiScript as suggested by Yves networking seems to be fine as your server is getting the request to serve the AGI *--- **Zoumana TRAORE* 2015-11-13 11:25 GMT+01:00 Yves : Hi, Are your HelloAGIScript(2)-Classes defined in a package? If so, you have to prefix the full packagepath: hello.agi = path.to.my.class.HelloAgiScript hello2.agi = path.to.my.other.class.HelloAgiScript2 Also, check, state of the AGI-Server, and if you´re on different machines (as it seems) also Network, Firewall regards, yves Am 13.11.2015 um 10:11 schrieb Abdul Basit: Here is another class path setting still no luck :( From: basits...@hotmail.com <mailto:basits...@hotmail.com> To: asterisk-java-users@lists.sourceforge.net <mailto:asterisk-java-users@lists.sourceforge.net> Date: Fri, 13 Nov 2015 14:06:01 +0500 Subject: Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>' (script 'hello2.agi')) I already snapshot in my previous file including with the source code, here is the class path screen short *fastagi-mapping.properties* hello.agi = HelloAgiScript hello2.agi = HelloAgiScript2 regards, AB From: zoumhuss...@gmail.com Date: Fri, 13 Nov 2015 09:57:20 +0100 To: asterisk-java-users@lists.sourceforge.net <mailto:asterisk-java-users@lists.sourceforge.net> Subject: Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>' (script 'hello2.agi')) Please share your mapping file content and the screenshot of your eclipse project classpath Regards *--- **Zoumana TRAORE* 2015-11-13 9:45 GMT+01:00 Abdul Basit : Hi I am facing this issue ""SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>' (script 'hello2.agi')"" , i did googled a lot but unable to find the solution. any one help please. I already Set fastagi-mapping.properties in class path , and also on the other path to be on safe, but no luck also the source code attached for the reference:( Asterisk Logs agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>: No script configured for URL 'agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>' (script 'hello2.agi') -- AGI Script agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi> completed, returning 0 _and on Eclipse Console when call trigger form softphone _Nov 13, 2015 3:48:43 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run SEV
Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi' (script 'hello2.agi'))
for the list: Abdul recreated the project from scratch et voilà... everything works... yves Am 13.11.2015 um 12:45 schrieb Abdul Basit: Hi yves, I did as you said, please refer to the snap shot. and still no script configured :( _*on Eclipse Console. *_ Nov 13, 2015 7:37:03 PM org.asteriskjava.fastagi.DefaultAgiServer startup INFO: Listening on *:4573. Nov 13, 2015 7:37:15 PM org.asteriskjava.fastagi.AbstractAgiServer getPool *INFO: Thread pool started. Nov 13, 2015 7:37:16 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run SEVERE: No script configured for URL 'agi://10.168.30.1/hello.agi' (script 'hello.agi') * *fastagi-mapping.properties* hello.agi = AgiParsing.HelloAgiScript hello2.agi = AgiParsing.HelloAgiScript2 ON Asterisk Console agi://10.168.30.1/hello2.agi: No script configured for URL 'agi://10.168.30.1/hello2.agi' (script 'hello2.agi') Can you Teamviewer to my system. or add me on your skype skype id:abdulbasit.uc Regards, AB To: asterisk-java-users@lists.sourceforge.net From: yves...@gmx.de Date: Fri, 13 Nov 2015 12:11:40 +0100 Subject: Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi' (script 'hello2.agi')) small typo... agi-server-mail-class should be agi-server-mai*n*-class Am 13.11.2015 um 12:09 schrieb Yves: The resource file fastagi-mapping.properties cannot be found. you have to include the path to this file in your EXECUTION classpath... not in the java-build-source-path. in eclipse right-click on your agi-server-mail-class an click "run as" -> "run configuration". Put your mappings file in the user-entries section via "Add JARs" Button (even if it is not a jar-file) yves Am 13.11.2015 um 11:58 schrieb Abdul Basit: Hi Both, Thanks for the reply, i did but still same :( agi://10.168.30.1/hello.agi: No script configured for URL 'agi://10.168.30.1/hello.agi' (script 'hello.agi') hello.agi = agi_parsing.HelloAgiScript hello2.agi = agi_parsing.HelloAgiScript2 *_This is on Eclipse Console._* Nov 13, 2015 6:52:51 PM org.asteriskjava.fastagi.ResourceBundleMappingStrategy loadResourceBundle *INFO: Resource bundle 'fastagi-mapping' not found*. Nov 13, 2015 6:52:51 PM org.asteriskjava.fastagi.internal.AgiConnectionHandler run SEVERE: No script configured for URL 'agi://10.168.30.1/hello.agi' (script 'hello.agi') Regards, AB From: zoumhuss...@gmail.com <mailto:zoumhuss...@gmail.com> Date: Fri, 13 Nov 2015 11:33:31 +0100 To: asterisk-java-users@lists.sourceforge.net <mailto:asterisk-java-users@lists.sourceforge.net> Subject: Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi' (script 'hello2.agi')) +1 on package naming try with agi_parsing.HelloAgiScript as suggested by Yves networking seems to be fine as your server is getting the request to serve the AGI *--- **Zoumana TRAORE* 2015-11-13 11:25 GMT+01:00 Yves mailto:yves...@gmx.de>>: Hi, Are your HelloAGIScript(2)-Classes defined in a package? If so, you have to prefix the full packagepath: hello.agi = path.to.my.class.HelloAgiScript hello2.agi = path.to.my.other.class.HelloAgiScript2 Also, check, state of the AGI-Server, and if you´re on different machines (as it seems) also Network, Firewall regards, yves Am 13.11.2015 um 10:11 schrieb Abdul Basit: Here is another class path setting still no luck :( From: basits...@hotmail.com <mailto:basits...@hotmail.com> To: asterisk-java-users@lists.sourceforge.net <mailto:asterisk-java-users@lists.sourceforge.net> Date: Fri, 13 Nov 2015 14:06:01 +0500 Subject: Re: [Asterisk-java-users] FW: SEVERE: No script configured for URL 'agi://10.168.30.1/hello2.agi <http://10.168.30.1/hello2.agi>' (script 'hello2.agi')) I already snapshot in my previous file including with the source code, here is
Re: [Asterisk-java-users] Bypass AbstractManagerEventListener for internal calls.
just to make it short take a look at the link- / unlinke-event (bridgeevent) regards, yves Am 10.12.2015 um 13:11 schrieb aditya barve: Hello Team, We extended AbstractManagerEventListener and wrote our logic in it for end user(Customer) to agent (CSR) calls. It has very specific business logic to Customer to CSR communication. In short we have wrote routing logic for Customer to CSR in our AbstractManagerEventListener class. Now we got a new requirement in which we have to implement CSR to CSR communication. Is there any way to filter out internal call events at asterisk level? So far we tried below changes in asterisk's manager.conf eventfilter=event: peerstatus eventfilter=event: Hangup eventfilter=event: NewStateEvent eventfilter=ChannelStateDesc: Up eventfilter=ChannelStateDesc: Ringing eventfilter=Channel: SIP/sangoma-* eventfilter=Channel1: SIP/sangoma-* In Ringing event we have make a CSR busy and On hangup we make it free. It worked fine expect we are not getting hangup event for CSR to CSR communication. Any clue why hangup event is not coming for CSR to CSR communication? Thanks, -- Aditya Barve -- ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus -- ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users
Re: [Asterisk-java-users] how to avoid autohangup AGI
Hi, set the verbosity of your asterisk to at least 3 and see output at cli. if the dialplan you wrote is complete, you will see that your agi returns to the dialplan, but there is no more step to execute in the dialplan and therefor the call is hung up. your agi does nothing more than set a variable and return (immediately). yves Am 14.03.2016 um 09:45 schrieb Иван Виноградов: Hello. Possible could somebody help me? I'm trying to use asterisk-java first time. public class TimeoutCalculationextends BaseAgiScript { public void service(AgiRequest request, AgiChannel channel)throws AgiException { channel.setVariable("dialTimeout", String.valueOf(20)); } [context] exten => _048XXX,1,Noop(NoOP) exten => _048XXX,n,AGI(agi://localhost/getTimeout.agi) but have issue with autohangup agi set debug on AGI Tx >> agi_network: yes AGI Tx >> agi_network_script: getTimeout.agi AGI Tx >> agi_request: agi://localhost/getTimeout.agi AGI Tx >> agi_channel: SIP/2001-0020 . AGI Rx << SET VARIABLE "dialTimeout" "20" AGI Tx >> 200 result=1 AGI Rx << SET VARIABLE "AJ_AGISTATUS" "SUCCESS" AGI Tx >> 200 result=1 -- AGI Script agi://localhost/getTimeout.agi completed, returning 0 AGI Tx >> HANGUP I don't understand why agi send HANGUP to asterisk? and unfortunately have not find how to disable auto hangup. tried to use channel.setAutoHangup(100); but HANGUP sent the same. -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140 ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users
Re: [Asterisk-java-users] ManagerConnection for simultaneous multiple calls
Hi Amol and welcome to the list. not much traffic here, but it is still alive... ;-) basically, you are doing everything right. Your second calls waits for the first call to be set up, because it is intended to... sendAction the way you use it waits for the manager response. If you want to return immediately, you should use sendaction in conjunction with a per call callback handler... take a look at the api doc, it is quite easy. another approach to become even more "parallel" is using one thread per call. cheers, yves Am 23.03.2017 um 17:01 schrieb Amol Vedak: Hello Friends, I am new to Asterisk Java and I suppose my question may be very basic. Request you to kindly bare with me. My code connects to Asterisk using ManagerConnection instance. It logs in for one time and I use the same object multiple times in different threads. I hope that is OK. I initiate two simultaneous calls on the same ManagerConnection object /managerConnection/.sendAction What I notice is, calls do not happen simultaneously. Second call happens after first call. Is there a way to run simultaneous calls through same ManagerConnection object? Or do I have to create object every time and login / logoff everytime? I hit a search on Google without much luck. Any help/pointers in this direction are highly appreciated. Thanks & Regards, Amol -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users
Re: [Asterisk-java-users] Wrong PJSIP_HEADER read
Hello Ahmed, thanks for you valuable findings. To find out, whats going on, I´d like to copy your setup; so, what versions are you using concerning - OperatingSystem - Asterisk - Asterisk-Java How do you "time" the Hangup so that it occurs between the two getHeader-Methods... or do you delay the execution in between to better simulate, whats going on, if this special case occurs? regards, Yves Am 21.12.2018 um 01:08 schrieb Salahuddin Ahmed: Hello, Let's explain the issue, In our agi script has those following header read, AGI Code: = String fromHeader = getHeaderValue("FROM"); String paidHeader = getHeaderValue("P-ASSERTED-IDENTITY"); String privacyHeader = getHeaderValue("PRIVACY"); String toHeader = getHeaderValue("TO"); = 4573 port trace = T 172.32.60.11:4573 <http://172.32.60.11:4573> -> 172.32.10.70:38630 <http://172.32.10.70:38630> [AP] GET VARIABLE"PJSIP_HEADER(read,FROM)". # T 172.32.10.70:38630 <http://172.32.10.70:38630> -> 172.32.60.11:4573 <http://172.32.60.11:4573> [AP] HANGUP. # T 172.32.60.11:4573 <http://172.32.60.11:4573> -> 172.32.10.70:38630 <http://172.32.10.70:38630> [AP] GET VARIABLE "PJSIP_HEADER(read,P-ASSERTED-IDENTITY)". # T 172.32.10.70:38630 <http://172.32.10.70:38630> -> 172.32.60.11:4573 <http://172.32.60.11:4573> [AP] 200 result=1 (<mailto:sip%3A12016615429@172.32.100.100>>;tag=1). # T 172.32.60.11:4573 <http://172.32.60.11:4573> -> 172.32.10.70:38630 <http://172.32.10.70:38630> [AP] GET VARIABLE "PJSIP_HEADER(read,PRIVACY)". # === When a new call arrived those lines are executing, and during that execution, if caller canceled the call then a HANGUP message send from asterisk to asterisk-java. If asterisk-java waits for any response of one of those 4 requests then I think asteris-agi get confused and the all further response will be shifted. Now according to code if asterisk-java received a response without "200 result=1" format, it discards that response, but this response does not belong to that request. In the next read, the actual value will appear. Now in this scenario, what would be the solution? could anyone please suggest this? Thanks, Salah Ahmed On Tue, Dec 18, 2018 at 1:31 PM Salahuddin Ahmed <mailto:txru...@gmail.com>> wrote: Hello, Recently I have noticed an error in my service. After some investigation, we found that its due to some calls is terminated very early. The scenario is, If Caller-A sends an INVITE to Asterisk, This INVITE processed on an agi method. On that method, we read several sip custom and default sip header for our processing. But during this processing, if Caller-A sends CANCEL then some header value read get malformed. Actually, it seems it gets shifted, suppose if we read To header first and then cseq, TO header value set to cseq value and TO return NULL. We have added some debug log in asterisk code and found, asterisk return good value. The time between INVITE and CANCEL is 50 ms. We have implemented AGIHangupException in our agi method, but this exception does not catch by this CANCEL request. Any idea/solution is appreciated. Thanks in advance, Salah Ahmed ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users
Re: [Asterisk-java-users] FastAGI call for custom commands
Hi, "streamFile" is not an customAGICommand. If you want to stream a soundfile, just use channel.streamFile("filename"); regards, Yves Am 17.06.2020 um 21:47 schrieb Wagner Feliziani via Asterisk-java-users: Hi, I am trying to call custom commands using FastAGI as stated in the tutorial : channel.sendCommand(AgiCommand) I tried : ... class CustomAgiCommand implements AgiCommand { String cmd; //public CustomAgiCommand(String cmd) {this.cmd = cmd;} public CustomAgiCommand(String cmd) { this.cmd = cmd; } @Override public String buildCommand() { return cmd; } @Override public void setAsteriskVersion(AsteriskVersion arg0) {}} ... channel.sendCommand( new CustomAgiCommand("streamFile(\"tt-monkeys\")") ); But it dont work : SEVERE: AgiException running AgiScript CallReceiveHandler on AJ DaemonPool-1.1 org.asteriskjava.fastagi.InvalidOrUnknownCommandException: Invalid or unknown command: streamFile("tt-monkeys") at org.asteriskjava.fastagi.internal.AgiChannelImpl.sendCommand(AgiChannelImpl.java:130) at CallReceiveHandler.service(CallReceiveHandler.java:42) at org.asteriskjava.fastagi.internal.AgiConnectionHandler.runScript(AgiConnectionHandler.java:178) at org.asteriskjava.fastagi.internal.AgiConnectionHandler.run(AgiConnectionHandler.java:149) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Am I doing this wrong ? Regards, wagfeliz ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users ___ Asterisk-java-users mailing list Asterisk-java-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/asterisk-java-users