asterisk-java-users Mailing List for Asterisk-Java Library (Page 147)
Brought to you by:
srt
You can subscribe to this list here.
2005 |
Jan
|
Feb
(8) |
Mar
(33) |
Apr
(36) |
May
(19) |
Jun
(21) |
Jul
(53) |
Aug
(30) |
Sep
(36) |
Oct
(34) |
Nov
(43) |
Dec
(72) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(123) |
Feb
(75) |
Mar
(86) |
Apr
(46) |
May
(41) |
Jun
(29) |
Jul
(76) |
Aug
(38) |
Sep
(39) |
Oct
(68) |
Nov
(16) |
Dec
(17) |
2007 |
Jan
(34) |
Feb
(18) |
Mar
(39) |
Apr
(30) |
May
(20) |
Jun
(10) |
Jul
(59) |
Aug
(54) |
Sep
(60) |
Oct
(22) |
Nov
(14) |
Dec
(10) |
2008 |
Jan
(34) |
Feb
(67) |
Mar
(65) |
Apr
(67) |
May
(60) |
Jun
(51) |
Jul
(88) |
Aug
(75) |
Sep
(47) |
Oct
(143) |
Nov
(54) |
Dec
(42) |
2009 |
Jan
(46) |
Feb
(80) |
Mar
(162) |
Apr
(159) |
May
(200) |
Jun
(34) |
Jul
(46) |
Aug
(59) |
Sep
(5) |
Oct
(35) |
Nov
(73) |
Dec
(30) |
2010 |
Jan
(23) |
Feb
(50) |
Mar
(8) |
Apr
(24) |
May
(19) |
Jun
(49) |
Jul
(56) |
Aug
(35) |
Sep
(26) |
Oct
(79) |
Nov
(39) |
Dec
(34) |
2011 |
Jan
(27) |
Feb
(22) |
Mar
(28) |
Apr
(12) |
May
(16) |
Jun
(19) |
Jul
(1) |
Aug
(64) |
Sep
(19) |
Oct
(11) |
Nov
(17) |
Dec
(12) |
2012 |
Jan
(6) |
Feb
(8) |
Mar
(15) |
Apr
(43) |
May
(41) |
Jun
(14) |
Jul
(32) |
Aug
(3) |
Sep
(4) |
Oct
(7) |
Nov
(11) |
Dec
(11) |
2013 |
Jan
(35) |
Feb
(11) |
Mar
(23) |
Apr
(25) |
May
(37) |
Jun
(47) |
Jul
(25) |
Aug
(21) |
Sep
|
Oct
(1) |
Nov
(9) |
Dec
|
2014 |
Jan
(26) |
Feb
(2) |
Mar
(18) |
Apr
(41) |
May
(7) |
Jun
(7) |
Jul
(24) |
Aug
(5) |
Sep
(6) |
Oct
(8) |
Nov
(9) |
Dec
(7) |
2015 |
Jan
(7) |
Feb
(15) |
Mar
(8) |
Apr
(12) |
May
(7) |
Jun
|
Jul
|
Aug
(5) |
Sep
(1) |
Oct
(3) |
Nov
(30) |
Dec
(3) |
2016 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
(9) |
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(8) |
Dec
(4) |
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: wardsback <war...@no...> - 2006-07-17 20:48:06
|
On Mon, 17 Jul 2006 22:42:54 +0200, Tony Mowers <to...@am...> wrote= : > I personally don't do any of my java development on Linux anymore; I d= o = > it > all on a Windows platform. My asterisk server is a separate Linux box= . > > I personally like keeping my experimental asterisk server and developm= ent > machines as separate beasts. I leave my asterisk server on all the tim= e = > and > install new stuff on it much less frequently than my development machi= ne. > My development machine is also a pretty beefy machine whereas my aster= isk > server is some klunky old box. My PC has loads of tools installed on = it. > > In the cases where I want it all running on one box then I use a VMWar= e > image running asterisk in it. > > Tony > > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On Behalf O= f > wardsback > Sent: Monday, July 17, 2006 10:10 PM > To: ast...@li... > Subject: Re: [Asterisk-java-users] A newbie introduction > > On Mon, 17 Jul 2006 14:57:59 +0200, Tony Mowers <to...@am...> wro= te: > >> My recommendation would be to just use the asterisk@home distribution= = >> and >> boot a computer from it. Don't bother with handpicking and configuri= ng = >> a >> linux distribution unless you have a real good reason for it. >> >> The asterisk@home project has changed names, so I don't know what imp= act >> that is going to have. Here is the site: >> http://www.trixbox.org/ >> >> >> For good information about it and all sorts of projects see: >> http://www.nerdvittles.com/ >> >> >> Tony >> >> >> >> -----Original Message----- >> From: ast...@li... >> [mailto:ast...@li...] On Behalf = Of >> wardsback >> Sent: Monday, July 17, 2006 2:04 PM >> To: ast...@li... >> Subject: [Asterisk-java-users] A newbie introduction >> >> Hi there ... >> >> first let me introduce myself : >> >> french, former sound enginner in the disk industry, I recently switch= ed >> carrer towards software developpement. >> >> In this company I just joined, I've been asked to set up a custom PBX= >> using asterisk. >> I just got asterisk-java and am currently reading the docs. Smoothly >> managed to run examples from tutorials and getting the whole picture.= >> >> I haven't yet decided what distro I'll run the PBX server on, so why = not >> have little poll : >> >> What would you guys recommend as a linux distro to work efficiently o= n >> asterisk/java programming ? >> >> PEACE >> > > OK, thanks for your reply, tony > > I had a quick look at the sites you pointed out and couldn't see anyth= ing > related to Java. I really need an easy-to-setup system. For developpem= ent > as for deployment. > > I'll keep on reading ... > > thanx again... > > ----------------------------------------------------------------------= --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to shar= e = > your > opinions on IT & business topics through brief surveys -- and earn cas= h > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ----------------------------------------------------------------------= --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to shar= e = > your > opinions on IT & business topics through brief surveys -- and earn cas= h > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > sounds like a smart choice indeed. Unfortunately, my company is rather = poor and I'm stuck with 1 single machine to act as a server AND = developpement paltform. While all the fuss it implies :( Well, enough ranting, I'm diving back into javadoc to see where I'm gonn= a = start with. peace |
From: Tony M. <to...@am...> - 2006-07-17 20:43:00
|
I personally don't do any of my java development on Linux anymore; I do it all on a Windows platform. My asterisk server is a separate Linux box. I personally like keeping my experimental asterisk server and development machines as separate beasts. I leave my asterisk server on all the time and install new stuff on it much less frequently than my development machine. My development machine is also a pretty beefy machine whereas my asterisk server is some klunky old box. My PC has loads of tools installed on it. In the cases where I want it all running on one box then I use a VMWare image running asterisk in it. Tony -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of wardsback Sent: Monday, July 17, 2006 10:10 PM To: ast...@li... Subject: Re: [Asterisk-java-users] A newbie introduction On Mon, 17 Jul 2006 14:57:59 +0200, Tony Mowers <to...@am...> wrote: > My recommendation would be to just use the asterisk@home distribution and > boot a computer from it. Don't bother with handpicking and configuring a > linux distribution unless you have a real good reason for it. > > The asterisk@home project has changed names, so I don't know what impact > that is going to have. Here is the site: > http://www.trixbox.org/ > > > For good information about it and all sorts of projects see: > http://www.nerdvittles.com/ > > > Tony > > > > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On Behalf Of > wardsback > Sent: Monday, July 17, 2006 2:04 PM > To: ast...@li... > Subject: [Asterisk-java-users] A newbie introduction > > Hi there ... > > first let me introduce myself : > > french, former sound enginner in the disk industry, I recently switched > carrer towards software developpement. > > In this company I just joined, I've been asked to set up a custom PBX > using asterisk. > I just got asterisk-java and am currently reading the docs. Smoothly > managed to run examples from tutorials and getting the whole picture. > > I haven't yet decided what distro I'll run the PBX server on, so why not > have little poll : > > What would you guys recommend as a linux distro to work efficiently on > asterisk/java programming ? > > PEACE > OK, thanks for your reply, tony I had a quick look at the sites you pointed out and couldn't see anything related to Java. I really need an easy-to-setup system. For developpement as for deployment. I'll keep on reading ... thanx again... ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: wardsback <war...@no...> - 2006-07-17 20:10:02
|
On Mon, 17 Jul 2006 14:57:59 +0200, Tony Mowers <to...@am...> wrote: > My recommendation would be to just use the asterisk@home distribution and > boot a computer from it. Don't bother with handpicking and configuring a > linux distribution unless you have a real good reason for it. > > The asterisk@home project has changed names, so I don't know what impact > that is going to have. Here is the site: > http://www.trixbox.org/ > > > For good information about it and all sorts of projects see: > http://www.nerdvittles.com/ > > > Tony > > > > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On Behalf Of > wardsback > Sent: Monday, July 17, 2006 2:04 PM > To: ast...@li... > Subject: [Asterisk-java-users] A newbie introduction > > Hi there ... > > first let me introduce myself : > > french, former sound enginner in the disk industry, I recently switched > carrer towards software developpement. > > In this company I just joined, I've been asked to set up a custom PBX > using asterisk. > I just got asterisk-java and am currently reading the docs. Smoothly > managed to run examples from tutorials and getting the whole picture. > > I haven't yet decided what distro I'll run the PBX server on, so why not > have little poll : > > What would you guys recommend as a linux distro to work efficiently on > asterisk/java programming ? > > PEACE > OK, thanks for your reply, tony I had a quick look at the sites you pointed out and couldn't see anything related to Java. I really need an easy-to-setup system. For developpement as for deployment. I'll keep on reading ... thanx again... |
From: Tony M. <to...@am...> - 2006-07-17 12:58:06
|
My recommendation would be to just use the asterisk@home distribution and boot a computer from it. Don't bother with handpicking and configuring a linux distribution unless you have a real good reason for it. The asterisk@home project has changed names, so I don't know what impact that is going to have. Here is the site: http://www.trixbox.org/ For good information about it and all sorts of projects see: http://www.nerdvittles.com/ Tony -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of wardsback Sent: Monday, July 17, 2006 2:04 PM To: ast...@li... Subject: [Asterisk-java-users] A newbie introduction Hi there ... first let me introduce myself : french, former sound enginner in the disk industry, I recently switched carrer towards software developpement. In this company I just joined, I've been asked to set up a custom PBX using asterisk. I just got asterisk-java and am currently reading the docs. Smoothly managed to run examples from tutorials and getting the whole picture. I haven't yet decided what distro I'll run the PBX server on, so why not have little poll : What would you guys recommend as a linux distro to work efficiently on asterisk/java programming ? PEACE -- Fred CORNU ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: wardsback <war...@no...> - 2006-07-17 12:04:03
|
Hi there ... first let me introduce myself : french, former sound enginner in the disk industry, I recently switched carrer towards software developpement. In this company I just joined, I've been asked to set up a custom PBX using asterisk. I just got asterisk-java and am currently reading the docs. Smoothly managed to run examples from tutorials and getting the whole picture. I haven't yet decided what distro I'll run the PBX server on, so why not have little poll : What would you guys recommend as a linux distro to work efficiently on asterisk/java programming ? PEACE -- Fred CORNU |
From: Stefan R. <sr...@re...> - 2006-07-17 00:24:27
|
Brett Sutton wrote: > Just put a catch (Throwable) at the very top of your thread and log the= > output. yes, thats a good idea to nail down the problem. and report if the issue is caused by Asterisk-Java so we can fix it :) =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Brett S. <bs...@no...> - 2006-07-16 10:20:01
|
Just put a catch (Throwable) at the very top of your thread and log the output. Stefan Reuter wrote: > Thameem Ansari wrote: > >> I am running the DefaultAGIServer as separate deamon thread with tomcat. >> Sometimes this thread dies after 3-4 days for some reasons. I would like >> to monitor this thread using Tomcat JMX feature. Does anybody know how >> to do this? >> > > You can probably build an MBean around AgiServerThread but I don't know > exactly how to do that. > But another question: Why is your thread dying in the first place? > > =Stefan > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Stefan R. <sr...@re...> - 2006-07-16 09:30:40
|
Thameem Ansari wrote: > I am running the DefaultAGIServer as separate deamon thread with tomcat= =2E > Sometimes this thread dies after 3-4 days for some reasons. I would lik= e > to monitor this thread using Tomcat JMX feature. Does anybody know how > to do this? You can probably build an MBean around AgiServerThread but I don't know exactly how to do that. But another question: Why is your thread dying in the first place? =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Thameem A. <tha...@ya...> - 2006-07-16 08:27:10
|
I am running the DefaultAGIServer as separate deamon thread with tomcat. Sometimes this thread dies after 3-4 days for some reasons. I would like to monitor this thread using Tomcat JMX feature. Does anybody know how to do this? Thanks, Thameem --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. |
From: Stefan R. <sr...@re...> - 2006-07-14 06:38:10
|
King Ho wrote: > Is there any documentation/examples on the use of the org.asteriskjava.= live > package?=20 Up to now ther are only javadocs at http://asterisk-java.org/0.3-SNAPSHOT/apidocs/ that cover the live package. The entry point is AsteriskServer (i.e. its implementation DefaultAsteriskServer). If there are questions that cant be answered by looking at the javadocs feel free to ask on the list. I am planning to provide some basic docs in the tutorial in the near futu= re. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: King H. <kin...@ne...> - 2006-07-14 06:16:25
|
Stefan, Is there any documentation/examples on the use of the org.asteriskjava.live package? Thanks. King |
From: Stefan R. <sr...@re...> - 2006-07-13 20:24:26
|
Haiyin Qiu wrote: > I suppose this method is printout the events respond from asterisk. Is = that=20 > means when i input the IAXpeers, the responds from asterisk?=20 At least in Asterisk 1.2.x the IAXpeers action is almost unusable. If you really need that information i suggest looking at the CommandAction and passing "iax show users". > how can I=20 > specilize it is the event of IAXPEERS directive but not other directive= like=20 > HANDUP? you can use Java's instanceof operator to check for the type of the event= =2E =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Haiyin Q. <yan...@ho...> - 2006-07-13 11:53:09
|
Hi, There is a method name handelEvents in this class HelloEvent public void handleEvent(ManagerEvent event) { // just print received events System.out.println(event); } I suppose this method is printout the events respond from asterisk. Is that means when i input the IAXpeers, the responds from asterisk? how can I specilize it is the event of IAXPEERS directive but not other directive like HANDUP? Here is the information i run HelloEvents. What should this correct result of HelloEvent? 2006-7-13 13:37:12 net.sf.asterisk.util.impl.JavaLoggingLog info 信息: Connecting to 132.xx.xx.xx port 5038 net.sf.asterisk.manager.event.ConnectEvent: dateReceived=Thu Jul 13 13:37:13 CE T 2006; systemHashcode=29315749 2006-7-13 13:37:13 net.sf.asterisk.util.impl.JavaLoggingLog info 信息: Connected via Asterisk Call Manager/1.0 2006-7-13 13:37:13 net.sf.asterisk.util.impl.JavaLoggingLog info 信息: Successfully logged in 2006-7-13 13:37:13 net.sf.asterisk.util.impl.JavaLoggingLog info 信息: Determined Asterisk version: Asterisk 1.2 net.sf.asterisk.manager.event.StatusCompleteEvent: dateReceived=Thu Jul 13 13:3 :13 CEST 2006; systemHashcode=6290200 2006-7-13 13:45:50 net.sf.asterisk.util.impl.JavaLoggingLog info 信息: Closing socket. 2006-7-13 13:45:50 net.sf.asterisk.util.impl.JavaLoggingLog info 信息: Reached end of stream, terminating reader. net.sf.asterisk.manager.event.DisconnectEvent: dateReceived=Thu Jul 13 13:45:50 CEST 2006; systemHashcode=12934710 Press any key to continue... _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ |
From: Stefan R. <sr...@re...> - 2006-07-12 22:59:35
|
> This feels like it might possibly be a security risk in some instances.= Security is a good point to consider. Especially being secure by default.= > It basically allows someone with access to the dial-plan to call any > class in the java code base. Not exactly any class, only classes that implement the AgiScript interface. The security issue is present if all of the following conditions are met: - you place multiple scripts on your classpath - some of the availble scripts should not be exposed to Asterisk - at least one of the available scripts, that should not be exposed to Asterisk does not itself implement security checks (i.e. verifying the source IP address) > I'm not certain that this is such a good idea (although I do like the > convenience). Its a tradeoff. The past showed that most people having trouble starting to play with Asterisk-Java and FastAGI didn't get the mapping done the right way. (esp. CLASSPATH issues) > The approach I've used previously is to create a small mapping class, > the advantage of this technique is that the java programmer has control= > over which methods can be called not the dial plan writer. Yep, thats what I also do, but it doesn't work "out of the box", i.e. you have to use it :) I usually use the Spring Framework and the SimpleMappingStrategy (which does probably just what your small mapping class does) provided with Asterisk-Java. What I like with the new approach is that it gets people started more quickly: Just implement the AgiScript, place the script's class file and asteriskjava.jar on the CLASSPATH and run DefaultAgiServer from the command line. > Do other people have an opinion on this? Any feedback is highly appreciated! =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Brett S. <bs...@no...> - 2006-07-12 22:34:29
|
This feels like it might possibly be a security risk in some instances. It basically allows someone with access to the dial-plan to call any class in the java code base. I'm not certain that this is such a good idea (although I do like the convenience). The approach I've used previously is to create a small mapping class, the advantage of this technique is that the java programmer has control over which methods can be called not the dial plan writer. Do other people have an opinion on this? Stefan Reuter wrote: > Hi, > > let's sched some light on the mapping strategis for FastAGI scripts in > the upcoming Asterisk-Java 0.3 release: > > As Tony pointed out Asterisk-Java 0.3 by default uses a > CompositeMappingStrategy to determine which script class to use for an > incoming AGI request. > The default is to try the ResourceBundleStrategy (the one already used > by 0.2) first and then fall back to the ClassNameMappingStrategy. > > ResourceBundleStrategy looks for fastagi-mapping.properties on the > classpath. To map a call to "agi://localhost/my-script.agi" to your AGI > script MyScript in com.example.agi you would place a line like this in > the properties file: > my-script.agi com.example.agi.MyScript > > If there is no fastagi-mapping.properties file on the classpath or the > properties file does not a mapping that matches the request the > ClassNameMappingStrategy is used: It looks for a Java class with a > default (i.e. public and without arguments) constructor that implements > AgiScript and has a full name corresponding to your request. So to call > your script using the ClassNameMappingStrategy you would place something > like > exten => 123,1,AGI(agi://localhost/com.example.agi.MyScript) > in your dialplan. > > The main purpose of the ClassNameMappingStrategy is to make easy things > easy. So in a simple case you dont need any mapping properties files and > just call your script class directly. > Hope that explanation helps and you like the idea. > > =Stefan > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Stefan R. <sr...@re...> - 2006-07-12 20:56:53
|
Tony Mowers wrote: > Is it possible that the class CompositeMappingStrategy has a code chang= e to > it that has created a bug? [...] > This would be causing the problems that 'unplug' is seeing. yes, there was indeed a bug. It has been fixed in svn trunk and in the latest snapshot available from http://maven.reucon.com/maven2/org/asteriskjava/asterisk-java/0.3-SNAPSHO= T/asterisk-java-0.3-20060712.204750-70.jar Note: This bug was only present in the snapshot and trunk, not in the stable release 0.2 (which does not include the CompositeMappingStrategy) Thanks for reporting (and insisting :), Tony. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Stefan R. <sr...@re...> - 2006-07-12 19:21:45
|
Hi, let's sched some light on the mapping strategis for FastAGI scripts in the upcoming Asterisk-Java 0.3 release: As Tony pointed out Asterisk-Java 0.3 by default uses a CompositeMappingStrategy to determine which script class to use for an incoming AGI request. The default is to try the ResourceBundleStrategy (the one already used by 0.2) first and then fall back to the ClassNameMappingStrategy. ResourceBundleStrategy looks for fastagi-mapping.properties on the classpath. To map a call to "agi://localhost/my-script.agi" to your AGI script MyScript in com.example.agi you would place a line like this in the properties file: my-script.agi com.example.agi.MyScript If there is no fastagi-mapping.properties file on the classpath or the properties file does not a mapping that matches the request the ClassNameMappingStrategy is used: It looks for a Java class with a default (i.e. public and without arguments) constructor that implements AgiScript and has a full name corresponding to your request. So to call your script using the ClassNameMappingStrategy you would place something like exten =3D> 123,1,AGI(agi://localhost/com.example.agi.MyScript) in your dialplan. The main purpose of the ClassNameMappingStrategy is to make easy things easy. So in a simple case you dont need any mapping properties files and just call your script class directly. Hope that explanation helps and you like the idea. =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |
From: Tony M. <to...@am...> - 2006-07-12 16:17:31
|
Unplug ... If you are working directly from the source tree and not a release then you might want to try something like the following in your dialplan: exten => 123,1,AGI(agi://your.server.com/com.example.agi.MyScript) Where 'com.example.agi.MyScript' is your java class. I don't know if this change is due to a bug or a new feature that I don't know how to configure. Stefan should be able to answer that. Tony Mowers http://www.amowers.com -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of unplug Sent: Friday, July 07, 2006 10:57 AM To: ast...@li... Subject: Re: [Asterisk-java-users] fail to run the example I have no idea. I feel very strange about it. Actually, I put the asterisk-java.jar in $JAVA_HOME/jre/lib/ext. I have already put the properties in the same directory but same error still found. On 7/7/06, Stefan Reuter <sr...@re...> wrote: > unplug wrote: > > I already set the current directory in the classpath as follow. > > echo $CLASSPATH > > .: > If your classpath is really ".:" how does it find the asterisk-java.jar > file then?? > > =Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: sr...@re... > > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Tony M. <to...@am...> - 2006-07-12 16:04:46
|
Stefan, Is it possible that the class CompositeMappingStrategy has a code change to it that has created a bug? It looks like the ClassNameMappingStrategy is the last strategy in the array of strategies and it causes the ResourceBundleMappingStrategy to be ignored. See class CompositeMappingStrategy public AgiScript determineScript(AgiRequest request) { AgiScript script = null; if (strategies == null) { return null; } for (MappingStrategy strategy : strategies) { script = strategy.determineScript(request); } return script; } This would be causing the problems that 'unplug' is seeing. -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Stefan Reuter Sent: Friday, July 07, 2006 9:49 AM To: ast...@li... Subject: Re: [Asterisk-java-users] fail to run the example Then its not on the classpath. Try including . in your CLASSPATH environment variable. Which JDK are you using? on which platform? =Stefan unplug wrote: > Hi, > I follow the website tutorial to run HelloAGIScript. > http://www.asteriskjava.org/latest/tutorial.html > In my directory, I have the following files. > fastagi-mapping.properties > HelloAGIScript.java > HelloAGIScript.class > I have already located asterisk-java.jar in a classpath and I run the > AGIServer as following. > java -cp . net.sf.asterisk.fastagi.DefaultAGIServer > server started > > Then I make a call to 1300 (which I have followed the example to > configure the exten). > > But there is an error in the console. > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Received connection. > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog error > SEVERE: Resource bundle 'fastagi-mapping' is missing. > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog error > SEVERE: No script configured for URL 'agi://localhost/HelloAGIScript' > (script 'HelloAGIScript') > > Anyone can tell me why AGIServer can't find fastagi-mapping.properties > as it is located in the current directory which is also a classpath? > What's wrong in the above setting? > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... |
From: Stefan R. <sr...@re...> - 2006-07-07 09:47:41
|
Hi Martin, thanks for your patch, it has been handled as AJ-36 in Jira (see http://jira.reucon.com/browse/AJ-36) and has been fixed for the upcoming Asterisk-Java 0.3 release. Can you please verify that it is indeed fixed in trunk? (http://asteriskjava.org/0.3-SNAPSHOT/) =3DStefan mar...@my... wrote: >=20 > Hi! > I was recently writing about problem I got with CommandResponses, when > every new CommandResponse#getResult() was "rewriting" older results, > because it was THE SAME object as previous results. There was no > response on that mail post, so I'm writing again, as I think of it as a= > bug. I send (maybe a better this time) a patch again. If it's not a bug= > and it's expected to work this way, please write it in javadoc. > Thanks. >=20 > Martin >=20 >=20 > -----------------------------------------------------------------------= - >=20 > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 >=20 >=20 > -----------------------------------------------------------------------= - >=20 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... |
From: unplug <mai...@gm...> - 2006-07-07 08:56:43
|
I have no idea. I feel very strange about it. Actually, I put the asterisk-java.jar in $JAVA_HOME/jre/lib/ext. I have already put the properties in the same directory but same error still found. On 7/7/06, Stefan Reuter <sr...@re...> wrote: > unplug wrote: > > I already set the current directory in the classpath as follow. > > echo $CLASSPATH > > .: > If your classpath is really ".:" how does it find the asterisk-java.jar > file then?? > > =Stefan > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: sr...@re... > > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > |
From: Edu <jav...@ba...> - 2006-07-07 08:10:06
|
Thanks! It works like a charm. I don't know why is not needed in my develop machine but doesn't matter. Regards, Edu El Jueves, 6 de Julio de 2006 10:49, Stefan Reuter escribi=F3: > Eduard Martinez wrote: > > Another possible cause: > > I'm doing Originate to a local channel, like Local@/XXXXX@outcoming > > Originate extension then is s, context [connected] > > you can try setting the variables with two leading underscores (e.g. > __callerId) this causes them to be interhited. I am unsure whether this > works with Local/ channels though. > > =3DStefan |
From: Stefan R. <sr...@re...> - 2006-07-07 08:02:22
|
unplug wrote: > I already set the current directory in the classpath as follow. > echo $CLASSPATH > .: If your classpath is really ".:" how does it find the asterisk-java.jar file then?? =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... |
From: unplug <mai...@gm...> - 2006-07-07 07:54:52
|
I already set the current directory in the classpath as follow. echo $CLASSPATH .: I have also tried to set the absolute path in the classpath. I also tried to put the properties files in the $JAVA_HOME/jre/lib/ext which is the classpath of the JDK. But all case is failed and itl showed the error as before. > > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog info > > INFO: Received connection. > > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog error > > SEVERE: Resource bundle 'fastagi-mapping' is missing. > > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog error > > SEVERE: No script configured for URL 'agi://localhost/HelloAGIScript' > > (script 'HelloAGIScript') OS platform: fedora core 4 JDK: java version "1.5.0_06" On 7/7/06, Stefan Reuter <sr...@re...> wrote: > Then its not on the classpath. Try including . in your CLASSPATH > environment variable. > Which JDK are you using? on which platform? > > =Stefan > > unplug wrote: > > Hi, > > I follow the website tutorial to run HelloAGIScript. > > http://www.asteriskjava.org/latest/tutorial.html > > In my directory, I have the following files. > > fastagi-mapping.properties > > HelloAGIScript.java > > HelloAGIScript.class > > I have already located asterisk-java.jar in a classpath and I run the > > AGIServer as following. > > java -cp . net.sf.asterisk.fastagi.DefaultAGIServer > > server started > > > > Then I make a call to 1300 (which I have followed the example to > > configure the exten). > > > > But there is an error in the console. > > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog info > > INFO: Received connection. > > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog error > > SEVERE: Resource bundle 'fastagi-mapping' is missing. > > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog error > > SEVERE: No script configured for URL 'agi://localhost/HelloAGIScript' > > (script 'HelloAGIScript') > > > > Anyone can tell me why AGIServer can't find fastagi-mapping.properties > > as it is located in the current directory which is also a classpath? > > What's wrong in the above setting? > > > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > -- > reuter network consulting > Neusser Str. 110 > 50760 Koeln > Germany > Telefon: +49 221 1305699-0 > Telefax: +49 221 1305699-90 > E-Mail: sr...@re... > > > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > |
From: Stefan R. <sr...@re...> - 2006-07-07 07:49:14
|
Then its not on the classpath. Try including . in your CLASSPATH environment variable. Which JDK are you using? on which platform? =3DStefan unplug wrote: > Hi, > I follow the website tutorial to run HelloAGIScript. > http://www.asteriskjava.org/latest/tutorial.html > In my directory, I have the following files. > fastagi-mapping.properties > HelloAGIScript.java > HelloAGIScript.class > I have already located asterisk-java.jar in a classpath and I run the > AGIServer as following. > java -cp . net.sf.asterisk.fastagi.DefaultAGIServer > server started >=20 > Then I make a call to 1300 (which I have followed the example to > configure the exten). >=20 > But there is an error in the console. > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog info > INFO: Received connection. > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog error > SEVERE: Resource bundle 'fastagi-mapping' is missing. > Jul 6, 2006 4:41:49 PM net.sf.asterisk.util.impl.JavaLoggingLog error > SEVERE: No script configured for URL 'agi://localhost/HelloAGIScript' > (script 'HelloAGIScript') >=20 > Anyone can tell me why AGIServer can't find fastagi-mapping.properties > as it is located in the current directory which is also a classpath? > What's wrong in the above setting? >=20 > Using Tomcat but need to do more? Need to support web services, securit= y? > Get stuff done quickly with pre-integrated technology to make your job = easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geron= imo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... |