asterisk-java-users Mailing List for Asterisk-Java Library (Page 151)
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: Thameem A. <tha...@ya...> - 2006-05-08 17:19:34
|
Hi I am getting the following error in my logs for manager connection..i have one cdr event listening and another timertask which is using defaultmanager connection to login. This timer task is throwing the following error. 2006-05-06 18:21:06,705 [SIP/200-f61a] ERROR com.voiptelindia.gateway.manager.TimeoutMonitorTask - ERROR: - java.lang.ClassCastException: net.sf.asterisk.manager.response.ManagerError java.lang.ClassCastException: net.sf.asterisk.manager.response.ManagerError at net.sf.asterisk.manager.DefaultManagerConnection.login(DefaultManagerConnection.java:442) at net.sf.asterisk.manager.DefaultManagerConnection.login(DefaultManagerConnection.java:377) at com.voiptelindia.gateway.manager.TimeoutMonitorTask.run(Unknown Source) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) 2 I checked the DefaultManagerConnection code and it seems that the ChallengeResponse is causing the classcastexception but everything work well...except seeing this message in log... Please help me troubleshoot this problem Thanks, Thameem --------------------------------- Yahoo! Mail goes everywhere you do. Get it on your phone. |
From: Thameem A. <tha...@ya...> - 2006-05-08 17:19:33
|
Hi, I want to stream a file from Manager action...I checked the api and i don't see any class to do that. I need this to stream a file before I terminate a call by sending hangup action. Thanks in advance, Thameem --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. |
From: Peter H. <pe...@ra...> - 2006-05-06 11:40:48
|
Hello Artem, yes, you can run agi scripts from .jar files. As you pointed out, you got an exception. I recommend that you make two root classes for all of your exceptions and then inherit your exceptions from those root classes. The root classes should contain code that performs certain actions (e.g. logging) at the moment when they are thrown. I said two root classes - 1. one root class inheriting from java.lang.Exception This will be your base exception for all exceptions which need a throws clause in the method where they are thrown. 2. one root class inheriting from java.lang.RuntimeException This will be your base exception for all exceptions which should not require any throws clause in the method where they are thrown. See java documentation on Exception and RuntimeException, esp. concerning the need of a throws clause. You then create a small framework containing your own exception(s) that inherit either from root class (1) if you think they need a throws clause or from root class (2) if you think they are just exceptions that happen to be thrown during run time, like an illegal array index. This approach has got the disadvantage that you are duplicating code (such as having your own IndexOutOfBoundsException) which is bad practice, normally. However, it has a great advantage that the appropriate action is automatically performed when the exception is thrown. You can now use catch clauses such as this one: // inherits from TRuntimException ( root class (2) ) catch (TIllegalArrayIndexException e) { // no action required - will be logged automatically } With this you achieve consitent exception handling. You can even write your own log formatting, such as creating the resp. logging information as xml code for further automated analysis! As I said - this is a bit unconventional and cuts across some principles of good programming, but then, life's not straight forward, and sometimes you need to be a bit more pragmatic. Hope this helps! God bless Peter Example code: 1. Your base class inheriting from java.lang.Exception. import net.sf.asterisk.util.Log; import net.sf.asterisk.util.LogFactory; class TDeclaredException extends java.lang.Exception { private static Log gLog = null; public TDeclaredException (String message) { super (); Log (message); } public void Log (String message) { String stackTraceXML = null; if (gLog == null) { gLog = LogFactory.getLog(getClass()); } gLog.warn (message); } } 2. Your base class inheriting from java.lang.RuntimeException. import net.sf.asterisk.util.Log; import net.sf.asterisk.util.LogFactory; public class TRuntimeException extends RuntimeException { private static Log gLog = null; public TRuntimeException (String message) { super (); Log (message); } public void Log (String message) { String stackTraceXML = null; if (gLog == null) { gLog = LogFactory.getLog(getClass()); } gLog.warn (message); } } >>Can I use the AGI scripts from *.jar files ? > > > Sorry, its my fault. > The constructor of my AGI script throws an exception but I dont see it > in server's log files. > Log messages of the DefaultAGIServer are not so descriptive, right ? > > Anyway thanks for no answers. > > Best regards, Artem. > [scjp5.0] -- dyslexics of the world - untie ! |
From: Artem V. L. <te...@of...> - 2006-05-04 10:19:36
|
Artem V. Luzhnov wrote: > Can I use the AGI scripts from *.jar files ? Sorry, its my fault. The constructor of my AGI script throws an exception but I dont see it in server's log files. Log messages of the DefaultAGIServer are not so descriptive, right ? Anyway thanks for no answers. Best regards, Artem. [scjp5.0] |
From: Thameem A. <tha...@ya...> - 2006-05-02 17:38:24
|
Hi Stefan, Thanks for your infomration. I will be developing that and let you know how it goes. -Thameem Stefan Reuter <sr...@re...> wrote: Thameem Ansari wrote: > I am sure most of the guys have the same problem when they write calling > card app or just to display the cdr to the users....How do you guys > solve this issue? There are lots of options, some include: - Keep track of the calls on your own by following the channel state changing events like NewExtenEvent - Use the custom or account code field of the cdr to store the information you need - Use a (Dead)AGI in the "h" extension that logs details abot the call =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... --------------------------------- Yahoo! Mail goes everywhere you do. Get it on your phone. |
From: Stefan R. <sr...@re...> - 2006-05-02 11:47:27
|
Thameem Ansari wrote: > I am sure most of the guys have the same problem when they write callin= g > card app or just to display the cdr to the users....How do you guys > solve this issue? There are lots of options, some include: - Keep track of the calls on your own by following the channel state changing events like NewExtenEvent - Use the custom or account code field of the cdr to store the information you need - Use a (Dead)AGI in the "h" extension that logs details abot the call =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: Thameem A. <tha...@ya...> - 2006-05-01 03:19:38
|
Hi Stefan The CDREvent.getDestination returns the actualy extension and not the DNID. I think asterisk itself is sending the extension and not the DNID to cdr. So, If I have a AbsoluteTimeout Extension (T) in my dialplan and if the call happen to end on that extension and hangup the cdr event actually sending the last extension (ie, 'T' as destination number). Due to this when I try to find out the destination number from cdr event its giving wrong information. I am sure most of the guys have the same problem when they write calling card app or just to display the cdr to the users....How do you guys solve this issue? I also noticed that if you have a prefix with ur number and you remove the prefix using EXTEN:1, even though you remove that prefix asterisk is always sending the EXTEN with actual number (with prefix) mentioned in the dialplan. I am running the latest version 1.2.7 of asterisk. I also tested this functionality from all 1.2.x releases and its same behaviour. Thanks in advance, Thameem --------------------------------- Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. |
From: Stefan R. <sr...@re...> - 2006-04-28 11:32:11
|
Thameem Ansari wrote: > I have a situation where i need to allow simulaneous calls on the same > account which is prepaid. I am not sure how to handle this and restrict= > the callers (same account) not to overdue. This must be handled by your application. For example by using a separate thread that checks the balance every few seconds and hangs (or redirects) calls that run out of balance. > One addition...how do I make the DefaultManagerConnection to auto > reconnect when connection lost or the asterisk is restarted? This should happen automatically. Did you encounter any problems? =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: Thameem A. <tha...@ya...> - 2006-04-27 22:58:15
|
I have a situation where i need to allow simulaneous calls on the same account which is prepaid. I am not sure how to handle this and restrict the callers (same account) not to overdue. Please help me doing this... One addition...how do I make the DefaultManagerConnection to auto reconnect when connection lost or the asterisk is restarted? Thanks in advance, -Thameem --------------------------------- New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. |
From: Artem V. L. <te...@of...> - 2006-04-27 07:09:13
|
Hello Stefan. Can I use the AGI scripts from *.jar files ? I tried, but it has not turned out. ---- fastagi-mapping.properties ----- auth.agi = my.agi.AuthAGIScript ---- /fastagi-mapping.properties ----- ----- console java -cp ./lib/my-agi-scripts.jar:./lib/asterisk-java-0.3.jar:./config/fastagi-mapping.properties org.asteriskjava.fastagi.DefaultAgiServer 27.04.2006 13:56:46 org.asteriskjava.util.impl.JavaLoggingLog error SEVERE: Unable to create AgiScript instance of type my.agi.AuthAGIScript 27.04.2006 13:56:46 org.asteriskjava.util.impl.JavaLoggingLog error SEVERE: Unable to create AgiScript instance of type auth.agi 27.04.2006 13:56:46 org.asteriskjava.util.impl.JavaLoggingLog error SEVERE: No script configured for URL 'agi://localhost/auth.agi' (script 'auth.agi') ----- /console Thanks, Artem. [scjp5.0] |
From: Stefan R. <sr...@re...> - 2006-04-21 09:15:58
|
Thameem Ansari wrote: > I am getting into a weired situation.. I am using manager API to receiv= e > the cdr events from asterisk and for a single call sometimes I receive > 2-3 events. If I use asterisk standalone and write cdr to cdr table > (asterisk doing it) its not happening. So, I am thinking this is either= > the threading issue in the listener.. Do you have any idea? please verify whether Asterisk is sending the event multiple times or only your code receives it multiple times. You can do so by watching the Manager API output directly using telnet to your pbx on port 5038 and typing Action: Login Username: <username> Secret: <password> followed by a newline. Then you see all the events that Asterisk is sending. Onother option is to use ngrep (http://ngrep.sourceforge.net/) to sniff for the Manager API traffic. Run ngrep either on the pbx or on the box where you run your application. Example: ngrep -s 4000 port 5038 -T =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: Stefan R. <sr...@re...> - 2006-04-21 09:12:20
|
Thameem Ansari wrote: > I got it. Thanks for the reply. It would be nice if you could point me > to somewhere to find the documentation. Is there any forum exist to > discuss this library? This mailing list is supposed to be that forum though the guys tend to get a bit lazy sometimes and leaving it up to me to respond to questions = ;) =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: Thameem A. <tha...@ya...> - 2006-04-21 06:57:52
|
Hello Stefan, I am getting into a weired situation.. I am using manager API to receive the cdr events from asterisk and for a single call sometimes I receive 2-3 events. If I use asterisk standalone and write cdr to cdr table (asterisk doing it) its not happening. So, I am thinking this is either the threading issue in the listener.. Do you have any idea? Thanks, Thameem --------------------------------- Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. |
From: Thameem A. <tha...@ya...> - 2006-04-21 06:35:47
|
I got it. Thanks for the reply. It would be nice if you could point me to somewhere to find the documentation. Is there any forum exist to discuss this library? -Thameem Stefan Reuter <sr...@re...> wrote: Thameem Ansari wrote: > How do I set the AbsoluteTimeoutAction from the AGI? I want to dial a > call but timeout after few seconds. I am creating the > AbsoluteTimeoutAction with channel name and timeout seconds but it > doesn't work. Anyone can help me? you cant use any Actions with AGI, they are for the Manager API only. To set the AbsoluteTimeout in an AGI use exec("AbsoluteTimeout", "..."). =Stefan -- 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... __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Stefan R. <sr...@re...> - 2006-04-21 06:33:11
|
Thameem Ansari wrote: > How do I set the AbsoluteTimeoutAction from the AGI? I want to dial a > call but timeout after few seconds. I am creating the > AbsoluteTimeoutAction with channel name and timeout seconds but it > doesn't work. Anyone can help me? you cant use any Actions with AGI, they are for the Manager API only. To set the AbsoluteTimeout in an AGI use exec("AbsoluteTimeout", "..."). =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-04-21 06:14:04
|
How do I set the AbsoluteTimeoutAction from the AGI? I want to dial a call but timeout after few seconds. I am creating the AbsoluteTimeoutAction with channel name and timeout seconds but it doesn't work. Anyone can help me? Thanks, Thameem --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. |
From: Stefan R. <sr...@re...> - 2006-04-20 11:10:21
|
Eduard Martinez wrote: >> Edu <jav...@ba...> wrote: Hi! I'm working on some AGI >> scripts, and I was wondering I can use the hangup extension (h) to run= an >> AGI script for saving some info in a database, but it seems to be >> impossible, whien I hang up and the extension is executed, I get the >> following error. This should be fine as long as you dont try to send any commands to Asterisk. If I look at the line number of your stacktrace, your problem seems to be related to Asterisk-Java not finding the correct script instance. The problem here is that Asterisk-Java tries to send that error message to the Asterisk console via VerboseCommand that throws the error here since the channel is dead. So once you fix your URL and/or mapping things should work. =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: Eduard M. <ed...@ba...> - 2006-04-20 10:52:43
|
I know I can use it, but I don't like to mix agi and manager only for this= =20 reason. Regards,=20 Edu El Jueves, 20 de Abril de 2006 01:09, Thameem Ansari escribi=F3: > Why not using manager and getting the Hangup event? > > Thanks, > -Thameem > > Edu <jav...@ba...> wrote: Hi! I'm working on some AGI > scripts, and I was wondering I can use the hangup extension (h) to run an > AGI script for saving some info in a database, but it seems to be > impossible, whien I hang up and the extension is executed, I get the > following error. There is some way to run the script elsewere? If not, I > can mix AGI script with manager api to do this... > > 19-abr-2006 19:07:28 net.sf.asterisk.util.impl.JavaLoggingLog error > GRAVE: AGIException while handling request > net.sf.asterisk.fastagi.AGIHangupException: Channel was hung up. > at > net.sf.asterisk.fastagi.impl.AGIReaderImpl.readReply(AGIReaderImpl.java:1= 03 >) at > net.sf.asterisk.fastagi.impl.AGIChannelImpl.sendCommand(AGIChannelImpl.ja= va >:82) at > net.sf.asterisk.fastagi.AGIConnectionHandler.run(AGIConnectionHandler.jav= a: >117) at net.sf.asterisk.util.ThreadPool$TaskThread.run(ThreadPool.java:167) > > > ------------------------------------------------------- > 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=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com |
From: Thameem A. <tha...@ya...> - 2006-04-19 23:09:16
|
Why not using manager and getting the Hangup event? Thanks, -Thameem Edu <jav...@ba...> wrote: Hi! I'm working on some AGI scripts, and I was wondering I can use the hangup extension (h) to run an AGI script for saving some info in a database, but it seems to be impossible, whien I hang up and the extension is executed, I get the following error. There is some way to run the script elsewere? If not, I can mix AGI script with manager api to do this... 19-abr-2006 19:07:28 net.sf.asterisk.util.impl.JavaLoggingLog error GRAVE: AGIException while handling request net.sf.asterisk.fastagi.AGIHangupException: Channel was hung up. at net.sf.asterisk.fastagi.impl.AGIReaderImpl.readReply(AGIReaderImpl.java:103) at net.sf.asterisk.fastagi.impl.AGIChannelImpl.sendCommand(AGIChannelImpl.java:82) at net.sf.asterisk.fastagi.AGIConnectionHandler.run(AGIConnectionHandler.java:117) at net.sf.asterisk.util.ThreadPool$TaskThread.run(ThreadPool.java:167) ------------------------------------------------------- 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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Edu <jav...@ba...> - 2006-04-19 17:14:46
|
Hi! I'm working on some AGI scripts, and I was wondering I can use the hangup extension (h) to run an AGI script for saving some info in a database, but it seems to be impossible, whien I hang up and the extension is executed, I get the following error. There is some way to run the script elsewere? If not, I can mix AGI script with manager api to do this... 19-abr-2006 19:07:28 net.sf.asterisk.util.impl.JavaLoggingLog error GRAVE: AGIException while handling request net.sf.asterisk.fastagi.AGIHangupException: Channel was hung up. at net.sf.asterisk.fastagi.impl.AGIReaderImpl.readReply(AGIReaderImpl.java:103) at net.sf.asterisk.fastagi.impl.AGIChannelImpl.sendCommand(AGIChannelImpl.java:82) at net.sf.asterisk.fastagi.AGIConnectionHandler.run(AGIConnectionHandler.java:117) at net.sf.asterisk.util.ThreadPool$TaskThread.run(ThreadPool.java:167) |
From: Stefan R. <sr...@re...> - 2006-04-19 08:20:55
|
Hi Thameem, Thameem Ansari wrote: > Thanks for your mail. I guessed it should be a bug and its good that yo= u > fixed it. My production machine is running that version and I am > planning to upgrade in near future. One additional help I needed. I wan= t > to use the GetGroupCount but it is deprecated. The alternative is > GROUP_COUNT function. How do I use the this AJ? GetFullVariableCommand should do the trick, see http://www.asteriskjava.org/0.3-SNAPSHOT/apidocs/org/asteriskjava/fastagi= /command/GetFullVariableCommand.html If you extend BaseAgiScript you can also use the convenience method getFullVariable(). =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: Thameem A. <tha...@ya...> - 2006-04-19 08:10:26
|
Hi Stefan, Thanks for your mail. I guessed it should be a bug and its good that you fixed it. My production machine is running that version and I am planning to upgrade in near future. One additional help I needed. I want to use the GetGroupCount but it is deprecated. The alternative is GROUP_COUNT function. How do I use the this AJ? Thanks in advance, Thameem Stefan Reuter <sr...@re...> wrote: Hi, > I am using asterisk-java 0.3 snapshot version with asterisk 1.2.0-rc2. I > am trying to use a test agi and I am getting account code as null. If i > do agi debug in CLI it shows the account code value. What am I doing > wrong? Please help. Nothing. You just discovered a bug in the handling of the accountCode property. I fixed it in the latest snapshot (16) of 0.3 available at http://maven.reucon.com/maven2/org/asteriskjava/asterisk-java/0.3-SNAPSHOT/asterisk-java-0.3-20060419.080021-16.jar Btw. why are you using such an old version of Asterisk? Sorry for the inconvenience, =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. |
From: Stefan R. <sr...@re...> - 2006-04-19 08:06:24
|
Hi, > I am using asterisk-java 0.3 snapshot version with asterisk 1.2.0-rc2. = I > am trying to use a test agi and I am getting account code as null. If i= > do agi debug in CLI it shows the account code value. What am I doing > wrong? Please help. Nothing. You just discovered a bug in the handling of the accountCode property. I fixed it in the latest snapshot (16) of 0.3 available at http://maven.reucon.com/maven2/org/asteriskjava/asterisk-java/0.3-SNAPSHO= T/asterisk-java-0.3-20060419.080021-16.jar Btw. why are you using such an old version of Asterisk? Sorry for the inconvenience, =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: Thameem A. <tha...@ya...> - 2006-04-19 05:54:06
|
Hi, I am using asterisk-java 0.3 snapshot version with asterisk 1.2.0-rc2. I am trying to use a test agi and I am getting account code as null. If i do agi debug in CLI it shows the account code value. What am I doing wrong? Please help. Thanks, Thameem --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. |
From: Thameem A. <tha...@ya...> - 2006-04-18 08:16:41
|
Hi Stefan, Thanks for your valuable info..that works and saved my time. Great Help. Thanks, Thameem Stefan Reuter <sr...@re...> wrote: Hi Thameem, you must run the AGIServer in its own thread for this to work, otherwise tomcat just waits until the AGIServer is shutdown, which is not what you want :) Asterisk-Java contains the small convenience class AGIServerThread just for this case. Use it like this: public void init() throws ServletException { AGIServerThread serverThread = new AGIServerThread(); server = new DefaultAGIServer(); serverThread.setAgiServer(server); try{ serverThread.startup(); }catch(Exception ep){ logger.error("Error starting the DefaultAGIServer..."+ep,ep); } } =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... --------------------------------- Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. |