Re: [Asterisk-java-users] Losing connection to Asterisk Manager API
Brought to you by:
srt
From: Martin S. <ma...@be...> - 2008-07-01 15:03:55
|
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 ------------------------------------------------------------ |