[asterisk-users] Newbie Queue: greetings when first joiningqueue
Julian Lyndon-Smith
asterisk at dotr.com
Wed Mar 19 02:52:39 CDT 2008
Check the number of calls waiting in the queue, then play the message if
more than 0
example code (written in the TBird IDE)
Exten => 100,1,Answer()
Exten => 100,n,Set(NumWaiting=${QUEUE_WAITING_COUNT(${QUEUENAME})})
Exten => 100,n,GotoIf($[${NumWaiting} = 0]?JoinQueue)
Exten => 100,n,PlayBack(MyMessage)
Exten => 100,n(JoinQueue),Queue(MyQueueName)
Exten => 100,n,Hangup()
So, if there are no members in the queue, jump directly to the queue
application, otherwise play the message first.
HTH
Julian
Lee, John (Sydney) wrote:
>> I would think you'll need to do a Playback() of this message before
> the
>> caller enters the queue, as I'm not aware of such an option provided
> by
>> app_queue.
>>
>> Exten=>100,1,Answer()
>> Exten=>100,n,Playback(greetings-earthling)
>> Exten=>100,n,Queue(xyzqueue)
>> Exten=>100,n,Hangup
>
> Thanks Mark for your suggestion.
> The issue with this is the first caller will always have to listen to
> this greeting regardless.
> Is there anyway to check if there is anyone in the queue before this
> greeting is played?
> In other words, if the queue is empty, then just "Queue".
> If queue is not empty, then "Playback + Queue".
>
> Is this possible?
>
> _______________________________________________
> -- 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
>
> ______________________________________________________________________
> This email for dotr.com has been scanned by MessageLabs
> ______________________________________________________________________
>
>
More information about the asterisk-users
mailing list