Re: [Asterisk-java-users] Two Connection but only one Thread for reading...
Brought to you by:
srt
From: Gabriel A. <gab...@gl...> - 2007-07-11 13:12:42
|
I will try to explain better, sorry. I have 2 beans like: <bean id="managerConnection" class="org.asteriskjava.manager.DefaultManagerConnection" ... > <bean id="managerConnectionCaller" class="org.asteriskjava.manager.DefaultManagerConnection" ... > Over the first connection I add an Event Listener. With the second connection I will make a call with Originate Action. If I debug with Eclipse, I see the following Threads: Java Manager Connection 0-Reader 0 Java Manager Connection 1-Reader 0 However while I debug with Eclipse, if I make a call from a phone to Asterisk, the Events come through Java Manager Connection 1-Reader 0. And if I make a call with Originate using bean 2, it will go through Java Manager Connection 1-Reader 0 also. Nothing goes through Java Manager Connection 0-Reader 0. Regards, Gabriel. -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Stefan Reuter Sent: Martes, 10 de Julio de 2007 05:49 p.m. To: ast...@li... Subject: Re: [Asterisk-java-users] Two Connection but only one Thread for reading... Gabriel Allasia wrote: > I need to make calls through one connection and to receive Events through > another. Events like JoinEvent and LeaveEvent. well that will just work. I really don't understand the problem you seem to encounter. =Stefan -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |