Re: [Asterisk-java-users] Asterisk/AGI response problem
Brought to you by:
srt
From: Brett S. <bs...@no...> - 2006-07-23 07:09:44
|
You may be correct, however you need to consider the possibility that you have multiple bugs. You should also consider that the multiple delays could also be caused by multiple dns lookups at different positions in the code. The timing (20-30 seconds) feels very familiar to dns problems we have had in the past. One possible method of eliminating dns as a cause is to mis-configure you systems dns settings to ensure that dns always fails. Be aware that java caches dns settings and that you will need to restart your java application to clear the cache. You will also need to clear the dns cache on each of your servers. We have a fast agi app which doesn't sound to dissimilar to yours and we aren't experiencing your problems. We have seen delays in playing the prompt, but in the order of a second or so and this can be attributed to latency in the network (the java and asterisk servers are connected via the internet, one on a slow link). I gather that you can't reproduce the problem at will? We use the following to monitor manager api traffic in realtime (as suggested by Stefan): ngrep -s 4000 port 5038 just change the port to whatever port you are running the fastagi server on. Regards, Brett Jonathan Augenstine wrote: > I would consider this a possibility if it was simply a delay in > receiving the first prompt but the delays occur throughout the entire > duration of the call. Also, this would not explain other anomalies > like the initial prompt playing twice. > > On Jul 22, 2006, at 6:06 PM, Brett Sutton wrote: > >> Are you certain that its not a DNS issue. >> If the asterisk server has periodically having trouble resolving dns >> names to ip addresses then you can experience the sort of delays you >> are talking about. >> You can eliminate this as a possibility by using an IP address in the >> dial plan. Of course if you are already using an IP address then this >> is less likely to be the case. However be aware that if the >> asterisk-java libraries is doing any DNS or reverse DNS lookups >> before it passes the call to you then again you can experience the >> problem. >> >> >> >> Jonathan Augenstine wrote: >>> I have increased the pool size, but I was experiencing this with with >>> only 2 or 3 calls. I am fairly certain that it is something going on >>> in Asterisk and not the Asterisk-Java package, but I thought I would >>> ping the group to see if someone else may have experienced the same >>> behavior. I am currently working on the theory that something is >>> going on with some module in Asterisk and I am disabling unused >>> modules. Part of the difficulty I have had is that the behavior only >>> lasts for a short time not giving me much time to enable debugging >>> and then make test calls. This could be ugly but if it gets worse >>> maybe it will be easier to troubleshoot. >>> >>> On Jul 21, 2006, at 1:29 AM, Stefan Reuter wrote: >>> >>> >>>> Jonathan Augenstine wrote: >>>> >>>>> I have an Asterisk-Java app using >>>>> the AGI interface. Simply it answers a call, plays some prompts, and >>>>> collects DTMF. What has happened is that I have called in and the >>>>> initial prompt plays twice. I also note a long delay in the start of >>>>> the prompts playing. I have not timed the delay but it is on the >>>>> order of 20-30 seconds. >>>>> >>>> Did you have more than 10 concurrent AGI requests to your AGI server? >>>> That might explain the delay that you encounter, because 10 is the >>>> default pool size. You can adjust it in a properties file as shown in >>>> the tutorial. >>>> I have no idea what might be the cause for the prompts being played >>>> twice and never encountered that. Maybe you can trace it if you enable >>>> AGI debugging on Asterisk - but if its hard to reproduce... >>>> >>>> =Stefan >>>> >>>> -- >>>> reuter network consulting >>>> Neusser Str. 110 >>>> 50760 Koeln >>>> Germany >>>> Telefon: +49 221 1305699-0 >>>> Telefax: +49 221 1305699-90 >>>> E-Mail: sr...@re... >>>> >>>> ---------------------------------------------------------------------- >>>> --- >>>> Take Surveys. Earn Cash. Influence the Future of IT >>>> Join SourceForge.net's Techsay p\anel 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 >>>> >>> ------------------------------------------------------------------------- >>> 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 >>> >> >> ------------------------------------------------------------------------- >> 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_______________________________________________ >> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________> >> Asterisk-java-users mailing list >> Ast...@li... >> <mailto: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 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 > |