Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Newbie Queue: greetings when first joiningq


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Mar 19, 2008 1:54 am    Post subject: [asterisk-users] Newbie Queue: greetings when first joiningq Reply with quote

Quote:
I would think you'll need to do a Playback() of this message before
the
Quote:
caller enters the queue, as I'm not aware of such an option provided
by
Quote:
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?
Back to top
mark.h at cage151.com
Guest





PostPosted: Wed Mar 19, 2008 2:13 am    Post subject: [asterisk-users] Newbie Queue: greetings when first joiningq Reply with quote

Lee,

I'm pretty sure you can using macros and what not. Unfortunately, I'm not
that experienced to comment on it, but I'm positive that can be done with
one of those if, else things.

Mark.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Lee, John
(Sydney)
Sent: March 19, 2008 2:54 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Newbie Queue: greetings when first
joiningqueue

Quote:
I would think you'll need to do a Playback() of this message before
the
Quote:
caller enters the queue, as I'm not aware of such an option provided
by
Quote:
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
Back to top
asterisk at dotr.com
Guest





PostPosted: Wed Mar 19, 2008 2:52 am    Post subject: [asterisk-users] Newbie Queue: greetings when first joiningq Reply with quote

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:
Quote:
Quote:
I would think you'll need to do a Playback() of this message before
the
Quote:
caller enters the queue, as I'm not aware of such an option provided
by
Quote:
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
______________________________________________________________________

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services