On Wed, Jul 9, 2008 at 12:00 AM, Jason Dixon <[EMAIL PROTECTED]> wrote: > On Tue, Jul 08, 2008 at 11:00:43AM -0400, Jason Dixon wrote: >> On Tue, Jul 08, 2008 at 12:10:05PM +1200, Matt Riddell wrote: >> > >> > Action: Command >> > Command: show queue my_queue_name >> > ActionID: my_queue_name_12345 >> >> This does not appear to show the correct status of an extension. It >> appears that ExtensionState also always reports Status of -1. Are >> there any Actions or Commands that will report the correct status of an >> extension? > > So far the only accurate representation I've found of queue members has > been the following. > > $ sudo /usr/sbin/asterisk -r -x "show channels" | grep '^SIP' > SIP/241-b742e010 [EMAIL PROTECTED]:2 Ring Dial(Zap/G1/411) > > $ sudo /usr/sbin/asterisk -r -x "show queue support_queue" | grep SIP > SIP/207 (Ringing) has taken no calls yet > SIP/203 (Not in use) has taken no calls yet > SIP/202 (In use) has taken no calls yet > SIP/201 (Not in use) has taken no calls yet > > All of the commands I've tried via the AGI have yielded incorrect > results. If this sounds wrong, please let me know and I'll resume > beating my head against the nearest wall. :) >
There is QUEUE_MEMBER_COUNT (in 1.4) and QUEUE_MEMBER (in 1.6) dialplan functions which allows to get count of members (in 1.6 also count of free / logged in members). You can use GetVar to evaluate that. Regards, Atis -- Atis Lezdins, VoIP Project Manager / Developer, [EMAIL PROTECTED] Skype: atis.lezdins Cell Phone: +371 28806004 Cell Phone: +1 800 7300689 Work phone: +1 800 7502835 _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users