[asterisk-users] QueueMemberStatus
Atis Lezdins
atis at iq-labs.net
Wed Jul 16 08:44:52 CDT 2008
On Wed, Jul 9, 2008 at 12:00 AM, Jason Dixon <jdixon at omniti.com> 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 s at macro-dialout: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,
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835
More information about the asterisk-users
mailing list