Thread: [Asterisk-java-users] getMeetMeRooms() Problem
Brought to you by:
srt
From: Michael Y. <mic...@i9...> - 2007-11-07 18:12:32
|
Hello, Ive been having a strange problem with using getMeetMeRooms() from the Live implementation of AsteriskServer. I am attempting to get the state of the conference rooms after I have connected to the manager, but I always get an empty collection. I have tried both 0.3.0 and 0.3.1 and they both have the same behavior. Here is an example: -3 extensions(100,101,102) Call into the static MeetMe room 1234 -I start my application which connects to the manager and queries the MeetMe rooms via getMeetMeRooms() which returns an empty collection. -I then hang up extension 100 when I do this 3 onNewMeetMeUser events fire for all 3 extensions and then a Leave state event fires for the extension that was hung up. I have tried restarting my asterisk server with no effect. Is Asterisk-Java unable to query MeetMe state on connect? If so is there a way I can modify Asterisk-Java to do this? Thank You, Mike |
From: Martin S. <ma...@be...> - 2007-11-07 20:58:33
|
Hello, Are you mixing the Live API and the Manager API? Also, can you try having the 3 extensions call into the meetme room AFTER you connect to the server but BEFORE you use getMeetMeRooms()? I think the reason you're not seeing anything is that Asterisk-Java internally tracks MeetMe rooms as it sees events, and it hasn't seen an event yet about your MeetMe room. I know for things like channels that exist, fetching a list of channels will take care of this -- I don't know if there's a way to trigger the creation of some MeetMe events so that AJ knows about the rooms. Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 =20 > -----Original Message----- > From: ast...@li...=20 > [mailto:ast...@li...] On=20 > Behalf Of Michael Yara > Sent: Wednesday, November 07, 2007 1:12 PM > To: ast...@li... > Subject: [Asterisk-java-users] getMeetMeRooms() Problem >=20 > Hello, >=20 > Ive been having a strange problem with using getMeetMeRooms()=20 > from the=20 > Live implementation of AsteriskServer. I am attempting to get=20 > the state=20 > of the conference rooms after I have connected to the manager, but I=20 > always get an empty collection. > I have tried both 0.3.0 and 0.3.1 and they both have the same=20 > behavior.=20 > Here is an example: >=20 > -3 extensions(100,101,102) Call into the static MeetMe room 1234 > -I start my application which connects to the manager and queries the=20 > MeetMe rooms via getMeetMeRooms() which returns an empty collection. > -I then hang up extension 100 when I do this 3 onNewMeetMeUser events=20 > fire for all 3 extensions and then a Leave state event fires for the=20 > extension that was hung up. >=20 > I have tried restarting my asterisk server with no effect. Is=20 > Asterisk-Java unable to query MeetMe state on connect? If so=20 > is there a=20 > way I can modify Asterisk-Java to do this? >=20 > Thank You, > Mike >=20 >=20 > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and=20 > a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >=20 |
From: Michael Y. <mic...@i9...> - 2007-11-07 21:14:50
|
Martin, In this case I am utilizing the Live API only. I am not catching raw manager events. If I do what you suggested getMeetMeRooms() works as it should. What I really don't understand is in my original example how does Asterisk-Java know instantly about the other MeetMe users when only one is firing a manager MeetMeLeaveEvent? Is it parsing the MeetMe command? If so why cant it do this on connection? Mike Martin Smith wrote: > Hello, > > Are you mixing the Live API and the Manager API? Also, can you try > having the 3 extensions call into the meetme room AFTER you connect to > the server but BEFORE you use getMeetMeRooms()? > > I think the reason you're not seeing anything is that Asterisk-Java > internally tracks MeetMe rooms as it sees events, and it hasn't seen an > event yet about your MeetMe room. I know for things like channels that > exist, fetching a list of channels will take care of this -- I don't > know if there's a way to trigger the creation of some MeetMe events so > that AJ knows about the rooms. > > Martin Smith, Systems Developer > ma...@be... > Bureau of Economic and Business Research > University of Florida > (352) 392-0171 Ext. 221 > > > > >> -----Original Message----- >> From: ast...@li... >> [mailto:ast...@li...] On >> Behalf Of Michael Yara >> Sent: Wednesday, November 07, 2007 1:12 PM >> To: ast...@li... >> Subject: [Asterisk-java-users] getMeetMeRooms() Problem >> >> Hello, >> >> Ive been having a strange problem with using getMeetMeRooms() >> from the >> Live implementation of AsteriskServer. I am attempting to get >> the state >> of the conference rooms after I have connected to the manager, but I >> always get an empty collection. >> I have tried both 0.3.0 and 0.3.1 and they both have the same >> behavior. >> Here is an example: >> >> -3 extensions(100,101,102) Call into the static MeetMe room 1234 >> -I start my application which connects to the manager and queries the >> MeetMe rooms via getMeetMeRooms() which returns an empty collection. >> -I then hang up extension 100 when I do this 3 onNewMeetMeUser events >> fire for all 3 extensions and then a Leave state event fires for the >> extension that was hung up. >> >> I have tried restarting my asterisk server with no effect. Is >> Asterisk-Java unable to query MeetMe state on connect? If so >> is there a >> way I can modify Asterisk-Java to do this? >> >> Thank You, >> Mike >> >> >> -------------------------------------------------------------- >> ----------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and >> a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Michael Y. <mic...@i9...> - 2007-11-07 21:17:04
|
Martin, I just realized what you meant by "Are you mixing the Live API and the Manager API?" and yes I am catching events from both. Mike Michael Yara wrote: > Martin, > > In this case I am utilizing the Live API only. I am not catching raw > manager events. If I do what you suggested getMeetMeRooms() works as it > should. > What I really don't understand is in my original example how does > Asterisk-Java know instantly about the other MeetMe users when only one > is firing a manager MeetMeLeaveEvent? > Is it parsing the MeetMe command? If so why cant it do this on connection? > > Mike > > Martin Smith wrote: > >> Hello, >> >> Are you mixing the Live API and the Manager API? Also, can you try >> having the 3 extensions call into the meetme room AFTER you connect to >> the server but BEFORE you use getMeetMeRooms()? >> >> I think the reason you're not seeing anything is that Asterisk-Java >> internally tracks MeetMe rooms as it sees events, and it hasn't seen an >> event yet about your MeetMe room. I know for things like channels that >> exist, fetching a list of channels will take care of this -- I don't >> know if there's a way to trigger the creation of some MeetMe events so >> that AJ knows about the rooms. >> >> Martin Smith, Systems Developer >> ma...@be... >> Bureau of Economic and Business Research >> University of Florida >> (352) 392-0171 Ext. 221 >> >> >> >> >> >>> -----Original Message----- >>> From: ast...@li... >>> [mailto:ast...@li...] On >>> Behalf Of Michael Yara >>> Sent: Wednesday, November 07, 2007 1:12 PM >>> To: ast...@li... >>> Subject: [Asterisk-java-users] getMeetMeRooms() Problem >>> >>> Hello, >>> >>> Ive been having a strange problem with using getMeetMeRooms() >>> from the >>> Live implementation of AsteriskServer. I am attempting to get >>> the state >>> of the conference rooms after I have connected to the manager, but I >>> always get an empty collection. >>> I have tried both 0.3.0 and 0.3.1 and they both have the same >>> behavior. >>> Here is an example: >>> >>> -3 extensions(100,101,102) Call into the static MeetMe room 1234 >>> -I start my application which connects to the manager and queries the >>> MeetMe rooms via getMeetMeRooms() which returns an empty collection. >>> -I then hang up extension 100 when I do this 3 onNewMeetMeUser events >>> fire for all 3 extensions and then a Leave state event fires for the >>> extension that was hung up. >>> >>> I have tried restarting my asterisk server with no effect. Is >>> Asterisk-Java unable to query MeetMe state on connect? If so >>> is there a >>> way I can modify Asterisk-Java to do this? >>> >>> Thank You, >>> Mike >>> >>> >>> -------------------------------------------------------------- >>> ----------- >>> This SF.net email is sponsored by: Splunk Inc. >>> Still grepping through log files to find problems? Stop. >>> Now Search log events and configuration files using AJAX and >>> a browser. >>> Download your FREE copy of Splunk now >> http://get.splunk.com/ >>> _______________________________________________ >>> Asterisk-java-users mailing list >>> Ast...@li... >>> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >>> >>> >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> Asterisk-java-users mailing list >> Ast...@li... >> https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >> >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Martin S. <ma...@be...> - 2007-11-07 21:25:46
|
> What I really don't understand is in my original example how does=20 > Asterisk-Java know instantly about the other MeetMe users=20 > when only one=20 > is firing a manager MeetMeLeaveEvent? > Is it parsing the MeetMe command? If so why cant it do this=20 > on connection? It probably could, if there's a manager event that gives this information (I don't use MeetMe much). If you can figure out that event, send it upon connection :). Also, note that if you mix the APIs without using different threads you'll get a deadlock when you try to execute an action during an event handler. See the list archives for at least 3 recent examples of this and solutions (ManagerProxyEventListener, I think?). Cheers, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 |
From: Michael Y. <mic...@i9...> - 2007-11-07 21:47:36
|
To my knowledge there is no action that you can send to the Manger that will give me this information. Asterisk-Java must be using some other means to get the information on the other users. The question is what and how can I take advantage of this on connect. Mike Martin Smith wrote: >> What I really don't understand is in my original example how does >> Asterisk-Java know instantly about the other MeetMe users >> when only one >> is firing a manager MeetMeLeaveEvent? >> Is it parsing the MeetMe command? If so why cant it do this >> on connection? >> > > It probably could, if there's a manager event that gives this > information (I don't use MeetMe much). If you can figure out that event, > send it upon connection :). > > Also, note that if you mix the APIs without using different threads > you'll get a deadlock when you try to execute an action during an event > handler. See the list archives for at least 3 recent examples of this > and solutions (ManagerProxyEventListener, I think?). > > Cheers, > > Martin Smith, Systems Developer > ma...@be... > Bureau of Economic and Business Research > University of Florida > (352) 392-0171 Ext. 221 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Martin S. <ma...@be...> - 2007-11-07 21:56:31
|
I suggest you use telnet or sniff the traffic or turn debugging on, and see what data is passed when Asterisk-Java finds out. I'm sure there's an explanation which is along the lines of some event delivering the information. If you're not familiar with log4j, set the 'log4j.debug' property to 'true'. You may have to give some root categories or something too -- I don't fiddle much with it in AJ and couldn't tell you off the top of my head. Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 =20 > -----Original Message----- > From: ast...@li...=20 > [mailto:ast...@li...] On=20 > Behalf Of Michael Yara > Sent: Wednesday, November 07, 2007 4:48 PM > To: ast...@li... > Subject: Re: [Asterisk-java-users] getMeetMeRooms() Problem >=20 > To my knowledge there is no action that you can send to the=20 > Manger that=20 > will give me this information. Asterisk-Java must be using some other=20 > means to get the information on the other users. The question is what=20 > and how can I take advantage of this on connect. >=20 > Mike >=20 > Martin Smith wrote: > >> What I really don't understand is in my original example how does=20 > >> Asterisk-Java know instantly about the other MeetMe users=20 > >> when only one=20 > >> is firing a manager MeetMeLeaveEvent? > >> Is it parsing the MeetMe command? If so why cant it do this=20 > >> on connection? > >> =20 > > > > It probably could, if there's a manager event that gives this > > information (I don't use MeetMe much). If you can figure=20 > out that event, > > send it upon connection :). > > > > Also, note that if you mix the APIs without using different threads > > you'll get a deadlock when you try to execute an action=20 > during an event > > handler. See the list archives for at least 3 recent=20 > examples of this > > and solutions (ManagerProxyEventListener, I think?). > > > > Cheers, > > > > Martin Smith, Systems Developer > > ma...@be... > > Bureau of Economic and Business Research > > University of Florida > > (352) 392-0171 Ext. 221=20 > > > >=20 > -------------------------------------------------------------- > ----------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX=20 > and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > =20 >=20 > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and=20 > a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users >=20 |