Peter Pauly
2007-Dec-09 20:33 UTC
[asterisk-users] Don't enter a queue if no one is logged in
I currently have the following setup: exten => 2000,1,Playback(/var/lib/asterisk/sounds/Greeting) exten => 2000,2,Queue(Qabcdef|t) exten => 2000,3,Playback(/var/lib/asterisk/sounds/EveryonesBusy) exten => 2000,4,Hangup exten => 2000,103,Hangup What happens is, that the greeting in step one is played regardless if anyone is logged into the queue. So immediately after the greet, we tell them we can't help them. What I would like is to check first to see if there is anyone logged into the queue, and then play the greeting. Is this possible? Is there a function that checks if anyone is logged in?
Atis Lezdins
2007-Dec-10 10:31 UTC
[asterisk-users] Don't enter a queue if no one is logged in
Peter Pauly wrote:> I currently have the following setup: > > exten => 2000,1,Playback(/var/lib/asterisk/sounds/Greeting) > exten => 2000,2,Queue(Qabcdef|t) > exten => 2000,3,Playback(/var/lib/asterisk/sounds/EveryonesBusy) > exten => 2000,4,Hangup > exten => 2000,103,Hangup > > What happens is, that the greeting in step one is played regardless if > anyone is logged into the queue. So immediately after the greet, we > tell them we can't help them. > > What I would like is to check first to see if there is anyone logged > into the queue, and then play the greeting. Is this possible? Is there > a function that checks if anyone is logged in?http://www.voip-info.org/wiki/index.php?page=Asterisk+func+queue_member_count Regards, Atis
Darryl Dunkin
2007-Dec-10 18:24 UTC
[asterisk-users] Don't enter a queue if no one is logged in
Yes, in the queue config add: leavewhenempty = yes The users will enter the queue, but exit quickly and continue with the dialplan. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Peter Pauly Sent: Sunday, December 09, 2007 12:33 To: asterisk-users at lists.digium.com Subject: [asterisk-users] Don't enter a queue if no one is logged in I currently have the following setup: exten => 2000,1,Playback(/var/lib/asterisk/sounds/Greeting) exten => 2000,2,Queue(Qabcdef|t) exten => 2000,3,Playback(/var/lib/asterisk/sounds/EveryonesBusy) exten => 2000,4,Hangup exten => 2000,103,Hangup What happens is, that the greeting in step one is played regardless if anyone is logged into the queue. So immediately after the greet, we tell them we can't help them. What I would like is to check first to see if there is anyone logged into the queue, and then play the greeting. Is this possible? Is there a function that checks if anyone is logged in? _______________________________________________ --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