Re: [asterisk-users] question on queues

2009-12-13 Thread Travis Elsberry
Hi Jerry, 

I use the built-in function queue_member 
http://www.asterisk.org/docs/asterisk/trunk/functions/queue_member?type=functions&value=QUEUE_MEMBER
 

and check with a GotoIf statement to check if the number is equal to zero. If 
it is not I send the call to the queue, if it is I pass the call to dial a 
cell-phone number or go directly to voicemail depending on which queue the call 
was originally destined for. 

Travis 
- Original Message - 
From: "Jerry Geis"  
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 
 
Sent: Sunday, December 13, 2009 4:20:40 PM 
Subject: [asterisk-users] question on queues 

I have been looking for a way from the dialplan to inquire if there are 
any members in a queue. 

So what I want to do is if no users are members of a queue then I can 
send the call to a given extention. 

I have the queue setup all that is working. Just need to be able to send 
the call to a certain user if 
no-one is logged into the queue. How do I do that? 

Thanks 

Jerry 

___ 
-- 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 
___
-- 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] question on queues

2009-12-13 Thread Fred Posner
On Dec 13, 2009, at 7:20 PM, Jerry Geis wrote:

> I have been looking for a way from the dialplan to inquire if there are 
> any members in a queue.
> 
> So what I want to do is if no users are members of a queue then I can 
> send the call to a given extention.
> 
> I have the queue setup all that is working. Just need to be able to send 
> the call to a certain user if
> no-one is logged into the queue. How do I do that?
> 
> Thanks
> 
> Jerry
> 

In queues.conf, you can have joinempty=no for the selected queue.

If there's noone logged in, the dialplan will move forward to the next entry.

---fred

___
-- 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] question on queues

2009-12-13 Thread Jerry Geis
I have been looking for a way from the dialplan to inquire if there are 
any members in a queue.

So what I want to do is if no users are members of a queue then I can 
send the call to a given extention.

I have the queue setup all that is working. Just need to be able to send 
the call to a certain user if
no-one is logged into the queue. How do I do that?

Thanks

Jerry

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