Re: [Asterisk-java-users] asterisk-java, ports
Brought to you by:
srt
From: Chris H. <ch...@as...> - 2005-04-15 14:16:11
|
----- Original Message -----=20 From: Dov Bigio=20 To: asterisk-java-users=20 Sent: Friday, April 15, 2005 8:06 AM Subject: [Asterisk-java-users] asterisk-java, ports Hi, I've been doing some tests, not exactly with asterisk-java, but with a = perl script that keeps sending "show agents" and "show channels" to port = 5038, gets the response, parses it and submit to a MySQL Database. Then = I have a Java application that reads from the database and display this = information to the end-user. The problem I have is that sometimes, after I send a "show channels" = command and wait for the response I get some asterisk events, which are = not valid responses to my request. I guess this happens because Asterisk uses the same port for events = and the manager API. Is this a common error? Is there a way to avoid it? If I did the parsing application using asterisk-java instead of Pearl, = would I still be vulnerable to this kind of error? This isn't a bug. It's the "broken" way that asterisk handles the = status request. One would think that a request would receive a response = and not generate events. Chris |