Re: [Asterisk-java-users] Losing connection to Asterisk Manager API
Brought to you by:
srt
From: Eric W. <eri...@gm...> - 2008-07-01 15:11:06
|
Does Asterisk-Java having built in logging? Or is this something I need to add myself? The only thing I'm seeing is in the actual asterisk logs. I'm connecting to asterisk manager api with a specific user, so I check the logs for when that user logs on. As for my server app, I'm using the Live api and the app runs great for about 45 minutes to an hour and then it just stops. It doesn't tell me it's disconnected or anything. The clients connected to it think it's still connected. Only when I try to connect a new client, the server will throw a 'Broken Pipe' error. On Tue, Jul 1, 2008 at 11:03 AM, Martin Smith <ma...@be...> wrote: > Hi Eric, > > Do you have any logs from Asterisk-Java when this reconnect happens? That > is the most definitive way to see what's going on. If you're running a > non-current version of Asterisk, you might also want to take note that some > versions in the past allowed manager connections *before* important things > like pbx.c were even loaded, making it impossible for Asterisk-Java to > determine what version of Asterisk it has connected to, and also making it > impossible to perform almost any operation, for a second or so. > > I'm not familiar with TrixBox, but if this setup involves modifications to > Asterisk itself (as TrixBox usually does -- not sure about HudLite), you may > also be having problems with Asterisk-Java determining the version because > of that. > > Either way, some logs when it happens are your best bet. And unless you > have hundreds of events per second in the PBX, Asterisk-Java and Java > shouldn't be hogging much CPU. > > Cheers, > > > Martin Smith, Systems Developer > ma...@be... > Bureau of Economic and Business Research > University of Florida > (352) 392-0171 Ext. 221 > > > ------------------------------ > *From:* ast...@li... [mailto: > ast...@li...] *On Behalf Of *Eric > Windham > *Sent:* Tuesday, July 01, 2008 10:58 AM > *To:* ast...@li... > *Subject:* [Asterisk-java-users] Losing connection to Asterisk Manager API > > Hi all, > > My company has been using the Trixbox HudLite server to connect a client > app to and get info about the asterisk server. However, the HudLite server > seems to lose it's connection to the Manager API quite frequently making the > client app software work incorrectly(callerid, screenpops, etc.) > > So I built a small java server app that connects to the Manager API through > asterisk-java and allows a new client app(similar to the old one). This > server app seems to be losing it connections to the Manager API also. The > asteriskDefaultServer does not seem to be reconnecting and we're also > noticing that the java process seems to be eating up a lot of the cpu. > > Is anyone else having this problem? Is there a way to ensure a reconnect? > And is java that much of a cpu hog? > > > -- > ------------------------------------------------------------ > Eric Windham > ------------------------------------------------------------ > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- ------------------------------------------------------------ Eric Windham ------------------------------------------------------------ |