Re: [asterisk-users] QueueMemberStatus

2008-07-16 Thread Atis Lezdins
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]:2Ring   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


Re: [asterisk-users] QueueMemberStatus

2008-07-15 Thread Matt Riddell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jason Dixon 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]:2Ring   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.  :)

Looks correct.

- --
Kind Regards,

Matt Riddell
Director
___

http://www.venturevoip.com (Great new VoIP end to end solution)
http://www.venturevoip.com/news.php (Daily Asterisk News - html)
http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIfVfuDQNt8rg0Kp4RAhsdAKCDJ6ya2YJPpSBxPemi88mV9sUf5gCfSNg0
i/cHg7W3yYGL8apTWBejPts=
=6pTt
-END PGP SIGNATURE-

___
-- 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


Re: [asterisk-users] QueueMemberStatus

2008-07-08 Thread Jason Dixon
On Tue, Jul 08, 2008 at 12:10:05PM +1200, Matt Riddell wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Jason Dixon wrote:
  On Tue, Jul 08, 2008 at 12:32:17AM +0200, Philipp Kempgen wrote:
  Jason Dixon schrieb:
  I'm trying to get some useful status info on Asterisk queues.  Using the
  Asterisk::Manager perl module, I've attempted to gather Queues and
  QueueStatus, but neither are useful.  In fact, Queues only returns one
  out of four possible queues.
 
  I found references online to QueueMemberStatus, which is enabled by
  'eventmemberstatus = yes' in queues.conf.  I've enabled this, but I
  get invalid command errors through the Manager or the CLI.
  QueueMemberStatus is not an action (= command) but an event.
 
  Below I've
  pasted dumps of each Action (QueueMemberStatus, QueueStatus, Queues).
  If anyone can offer some alternative suggestions on how to query the
  number of free extensions in a queue, I'm all ears.
  Query the ExtensionState of each of the queue members.
  
  This makes a lot of sense.  But rather than query the ExtensionState of
  all members, is there a simple way to query the number of free members
  for a particular queue?
 
 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?

Thanks,

-- 
Jason Dixon
OmniTI Computer Consulting, Inc.
[EMAIL PROTECTED]
443.325.1357 x.241 

___
-- 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


Re: [asterisk-users] QueueMemberStatus

2008-07-08 Thread Jason Dixon
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]:2Ring   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.  :)

Thanks,

-- 
Jason Dixon
OmniTI Computer Consulting, Inc.
[EMAIL PROTECTED]
443.325.1357 x.241 

___
-- 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


[asterisk-users] QueueMemberStatus

2008-07-07 Thread Jason Dixon
I'm trying to get some useful status info on Asterisk queues.  Using the
Asterisk::Manager perl module, I've attempted to gather Queues and
QueueStatus, but neither are useful.  In fact, Queues only returns one
out of four possible queues.

I found references online to QueueMemberStatus, which is enabled by
'eventmemberstatus = yes' in queues.conf.  I've enabled this, but I
get invalid command errors through the Manager or the CLI.  Below I've
pasted dumps of each Action (QueueMemberStatus, QueueStatus, Queues).
If anyone can offer some alternative suggestions on how to query the
number of free extensions in a queue, I'm all ears.


$VAR1 = {
  'Message' = 'Invalid/unknown command',
  'Response' = 'Error'
};
$VAR1 = {
  'Message' = 'Queue status will follow',
  'Response' = 'Success'
};
$VAR1 = {
  'Completed' = '',
  'Holdtime' = '',
  'Event' = 'QueueParams',
  'ServicelevelPerf' = '0.0',
  'Calls' = '',
  'Queue' = 'support_queue',
  'Weight' = '',
  'ServiceLevel' = '',
  'Abandoned' = '',
  'Max' = ''
};


Thanks,

-- 
Jason Dixon
OmniTI Computer Consulting, Inc.
[EMAIL PROTECTED]
443.325.1357 x.241 

___
-- 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


Re: [asterisk-users] QueueMemberStatus

2008-07-07 Thread Mark Michelson
Jason Dixon wrote:
 I'm trying to get some useful status info on Asterisk queues.  Using the
 Asterisk::Manager perl module, I've attempted to gather Queues and
 QueueStatus, but neither are useful.  In fact, Queues only returns one
 out of four possible queues.
 
 I found references online to QueueMemberStatus, which is enabled by
 'eventmemberstatus = yes' in queues.conf.  I've enabled this, but I
 get invalid command errors through the Manager or the CLI.  Below I've
 pasted dumps of each Action (QueueMemberStatus, QueueStatus, Queues).
 If anyone can offer some alternative suggestions on how to query the
 number of free extensions in a queue, I'm all ears.
 
 
 $VAR1 = {
   'Message' = 'Invalid/unknown command',
   'Response' = 'Error'
 };
 $VAR1 = {
   'Message' = 'Queue status will follow',
   'Response' = 'Success'
 };
 $VAR1 = {
   'Completed' = '',
   'Holdtime' = '',
   'Event' = 'QueueParams',
   'ServicelevelPerf' = '0.0',
   'Calls' = '',
   'Queue' = 'support_queue',
   'Weight' = '',
   'ServiceLevel' = '',
   'Abandoned' = '',
   'Max' = ''
 };
 
 
 Thanks,
 

QueueMemberStatus is a manager event, not an action. The event is sent every 
time that a member's status changes by default. By setting 
eventmemberstatus=no, 
these events will not be sent out.

The QueueStatus action causes QueueMember, QueueParams, and QueueEntry events 
to 
be sent out when executed. These should give information about the queue whose 
status has been queried. I'm not sure how the Asterisk::Manager perl module 
works, but if you can be watching for these events somehow, you should see them.

As for the final command, Queues, the output you gave would make sense if there 
are no members in the queue, no callers had been handled yet, and there was no 
weight or maxlen set in queues.conf. I'm not sure if that's the case in this 
scenario or not.

Mark Michelson

___
-- 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


Re: [asterisk-users] QueueMemberStatus

2008-07-07 Thread Philipp Kempgen
Jason Dixon schrieb:
 I'm trying to get some useful status info on Asterisk queues.  Using the
 Asterisk::Manager perl module, I've attempted to gather Queues and
 QueueStatus, but neither are useful.  In fact, Queues only returns one
 out of four possible queues.
 
 I found references online to QueueMemberStatus, which is enabled by
 'eventmemberstatus = yes' in queues.conf.  I've enabled this, but I
 get invalid command errors through the Manager or the CLI.

QueueMemberStatus is not an action (= command) but an event.

 Below I've
 pasted dumps of each Action (QueueMemberStatus, QueueStatus, Queues).
 If anyone can offer some alternative suggestions on how to query the
 number of free extensions in a queue, I'm all ears.

Query the ExtensionState of each of the queue members.


Grüße,
Philipp Kempgen
-- 
http://www.das-asterisk-buch.de  -  http://www.the-asterisk-book.com
Amooma GmbH - Bachstr. 126 - 56566 Neuwied  -  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998

___
-- 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


Re: [asterisk-users] QueueMemberStatus

2008-07-07 Thread Jason Dixon
On Tue, Jul 08, 2008 at 12:32:17AM +0200, Philipp Kempgen wrote:
 Jason Dixon schrieb:
  I'm trying to get some useful status info on Asterisk queues.  Using the
  Asterisk::Manager perl module, I've attempted to gather Queues and
  QueueStatus, but neither are useful.  In fact, Queues only returns one
  out of four possible queues.
  
  I found references online to QueueMemberStatus, which is enabled by
  'eventmemberstatus = yes' in queues.conf.  I've enabled this, but I
  get invalid command errors through the Manager or the CLI.
 
 QueueMemberStatus is not an action (= command) but an event.
 
  Below I've
  pasted dumps of each Action (QueueMemberStatus, QueueStatus, Queues).
  If anyone can offer some alternative suggestions on how to query the
  number of free extensions in a queue, I'm all ears.
 
 Query the ExtensionState of each of the queue members.

This makes a lot of sense.  But rather than query the ExtensionState of
all members, is there a simple way to query the number of free members
for a particular queue?

Thanks,

-- 
Jason Dixon
OmniTI Computer Consulting, Inc.
[EMAIL PROTECTED]
443.325.1357 x.241 

___
-- 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


Re: [asterisk-users] QueueMemberStatus

2008-07-07 Thread Matt Riddell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jason Dixon wrote:
 On Tue, Jul 08, 2008 at 12:32:17AM +0200, Philipp Kempgen wrote:
 Jason Dixon schrieb:
 I'm trying to get some useful status info on Asterisk queues.  Using the
 Asterisk::Manager perl module, I've attempted to gather Queues and
 QueueStatus, but neither are useful.  In fact, Queues only returns one
 out of four possible queues.

 I found references online to QueueMemberStatus, which is enabled by
 'eventmemberstatus = yes' in queues.conf.  I've enabled this, but I
 get invalid command errors through the Manager or the CLI.
 QueueMemberStatus is not an action (= command) but an event.

 Below I've
 pasted dumps of each Action (QueueMemberStatus, QueueStatus, Queues).
 If anyone can offer some alternative suggestions on how to query the
 number of free extensions in a queue, I'm all ears.
 Query the ExtensionState of each of the queue members.
 
 This makes a lot of sense.  But rather than query the ExtensionState of
 all members, is there a simple way to query the number of free members
 for a particular queue?

Action: Command
Command: show queue my_queue_name
ActionID: my_queue_name_12345

Or just show queues.

Bear in mind that if you want to do show queues as opposed to show queue
and you are using a realtime queue which has not been used, you will
need to type show queue my_queue_name first before it will show up in
show queues.

- --
Kind Regards,

Matt Riddell
Director
___

http://www.venturevoip.com (Great new VoIP end to end solution)
http://www.venturevoip.com/news.php (Daily Asterisk News - html)
http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIcrBdDQNt8rg0Kp4RAkhQAJ44LZomYhLNYRBKc4th1mG3ecfjGQCgo9vd
ZvIBFNBfG/X69WxF4FkCxKw=
=dbQ2
-END PGP SIGNATURE-

___
-- 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


Re: [asterisk-users] QueueMemberStatus

2007-07-04 Thread Lee Jenkins
Lee Jenkins wrote:
 I've been poking for the definition of QueueMemberStatus and all the 
 source file indicates is that it is a integer member of the member 
 structure.
 
 Anyone know where I can find the CONSTANTS definitions?
 

OK, I didn't know this, but QueueMemberStatus returns the same codes for 
channel status as defined in devicestate.h.



-- 

Warm Regards,

Lee




___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] QueueMemberStatus

2007-07-03 Thread Lee Jenkins

I've been poking for the definition of QueueMemberStatus and all the 
source file indicates is that it is a integer member of the member 
structure.

Anyone know where I can find the CONSTANTS definitions?

-- 

Warm Regards,

Lee




___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] QueueMemberStatus/Status Field

2007-01-23 Thread Lee Jenkins

Lee Jenkins wrote:



Hi all,

Where can I find the status definitions for the status field below? 
Googled /web/voip-info.org and can't seem to find anything.


Event: QueueMemberStatus
Privilege: agent,all
Queue: support
Location: SIP/111
Membership: dynamic
Penalty: 0
CallsTaken: 0
LastCall: 0
Status: 1
Paused: 0



I was looking for something unrelated and ran across this little gem.

http://www.asteriskpbx.org/doxygen/trunk/devicestate_8h.html#4c79ce1f0eb3c1ce7c15439c63c87a34
or
http://preview.tinyurl.com/2pgcwp

--

Warm Regards,

Lee

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] QueueMemberStatus/Status Field

2007-01-22 Thread Lee Jenkins



Hi all,

Where can I find the status definitions for the status field below? 
Googled /web/voip-info.org and can't seem to find anything.


Event: QueueMemberStatus
Privilege: agent,all
Queue: support
Location: SIP/111
Membership: dynamic
Penalty: 0
CallsTaken: 0
LastCall: 0
Status: 1
Paused: 0

Thank you!

--

Warm Regards,

Lee

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] queuememberstatus overwhelms manager socket connection to asterisk

2006-08-21 Thread Roi Stork
I have a test application, what it does is just connect to the asterisk manager,and listen for events. I also set the connection to receive on user, call and agent events.I Noticed that everytime the queue is empty, asterisk tends to throw too many
queuememberstatus events, overwhelming the connection and therefore closesit abruptly.I also got the same result when I used telnet to connect to asterisk, and then make a call which is then forwarded to an empty queue.
I'm using version 1.2.7.1 and even if the queue has its eventwhencalled set to no, the problem still persists.
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users