From: Dov B. <do...@te...> - 2005-04-15 13:06:28
|
Hi, I've been doing some tests, not exactly with asterisk-java, but with a pe= rl script that keeps sending "show agents" and "show channels" to port 50= 38, gets the response, parses it and submit to a MySQL Database. Then I h= ave a Java application that reads from the database and display this info= rmation to the end-user. The problem I have is that sometimes, after I send a "show channels" comm= and and wait for the response I get some asterisk events, which are not v= alid responses to my request. I guess this happens because Asterisk uses the same port for events and t= he 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, wo= uld I still be vulnerable to this kind of error? Thank you Dov |