Etienne Pretorius
2005-Apr-02 05:14 UTC
[Asterisk-Users] {extensions.conf} Dialing plans with queues....
Hi all,
This is the situation:
I have a call coming in from the POTS line and I pass this through
to the [incoming] section by including the [incoming] inside [sip].
Then s,... starts. It picks up the call and then places the call in
a "Reception" queue.
This is the problem:
When the call is in the "Reception" queue, I would like to play a
voice menu while the call is in the queue.
If the user responds to the "Voice Menu" by dialling a number,
then
I would like to pass this call to that extension.
I know you can put a time out on the "Reception" queue - but I
need
to give the caller the option to by-pass the
Receptionist.
*/extensions.conf/*
[incoming]
exten => s,1,Wait,1 ; Wait a
second, just for fun
exten => s,2,Answer ; Answer
the line
;___________TODO______________ ;Play a "Thank you for
calling ..."
exten => s,3,Queue(QUEUE-Reception) ;Place call in
reception queue
;___________TODO______________ ;Play "Voice Menu ->
Sales;Accounts;Support
exten => 1,1,QUEUE(QUEUE-Support) ;Pressed "1", place
call
in queue.conf::[QUEUE-Support] <<<<<<<< need some help
ova here.... plz
[sip]
include => incoming ;include
the incoming calls context
exten => 101,1,Dial(SIP/Reception,20,tr)
exten => 200,1,Queue(QUEUE-Support)
*/Asterisk Out-put/*
Asterisk Ready.
-- Starting simple switch on 'Zap/4-1'
-- Executing Wait("Zap/4-1", "1") in new stack
-- Executing Answer("Zap/4-1", "") in new stack
-- Executing Queue("Zap/4-1", "QUEUE-Reception") in new
stack
-- Started music on hold, class 'default', on Zap/4-1
-- Called SIP/Reception
-- Stopped music on hold on Zap/4-1
Apr 2 13:51:16 WARNING[1994]: chan_sip.c:860 retrans_pkt: Maximum
retries exceeded on call 76a1d748020bb36d645b3ca849d60f8e@192.168.5.71
for seqno 102 (Critical Request)
Apr 2 13:51:16 NOTICE[2004]: app_queue.c:1103 wait_for_answer: No one
is answering queue 'QUEUE-Reception' (1/0/0)
Thank you all.
--
Kind Regards
Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050402/f0c0954d/attachment.htm
Etienne Pretorius
2005-Apr-02 05:54 UTC
[Asterisk-Users] {extensions.conf} Dialing plans with queues....
Oh well, found it with some searching.... Add the menu as a context in queue.conf and then define that menu in extensions.conf. Mind only single digit numbers are valid. Kind Regards Etienne Etienne Pretorius wrote:> Hi all, > > This is the situation: > I have a call coming in from the POTS line and I pass this through > to the [incoming] section by including the [incoming] inside [sip]. > Then s,... starts. It picks up the call and then places the call > in a "Reception" queue. > > This is the problem: > When the call is in the "Reception" queue, I would like to play a > voice menu while the call is in the queue. > If the user responds to the "Voice Menu" by dialling a number, > then I would like to pass this call to that extension. > I know you can put a time out on the "Reception" queue - but I > need to give the caller the option to by-pass the > Receptionist. > > > */extensions.conf/* > > [incoming] > exten => s,1,Wait,1 ; Wait > a second, just for fun > exten => s,2,Answer ; > Answer the line > ;___________TODO______________ ;Play a "Thank you for > calling ..." > exten => s,3,Queue(QUEUE-Reception) ;Place call in > reception queue > ;___________TODO______________ ;Play "Voice Menu -> > Sales;Accounts;Support > exten => 1,1,QUEUE(QUEUE-Support) ;Pressed "1", place > call in queue.conf::[QUEUE-Support] <<<<<<<< need some help ova > here.... plz > > [sip] > include => incoming > ;include the incoming calls context > > exten => 101,1,Dial(SIP/Reception,20,tr) > exten => 200,1,Queue(QUEUE-Support) > > > */Asterisk Out-put/* > > Asterisk Ready. > -- Starting simple switch on 'Zap/4-1' > -- Executing Wait("Zap/4-1", "1") in new stack > -- Executing Answer("Zap/4-1", "") in new stack > -- Executing Queue("Zap/4-1", "QUEUE-Reception") in new stack > -- Started music on hold, class 'default', on Zap/4-1 > -- Called SIP/Reception > -- Stopped music on hold on Zap/4-1 > Apr 2 13:51:16 WARNING[1994]: chan_sip.c:860 retrans_pkt: Maximum > retries exceeded on call 76a1d748020bb36d645b3ca849d60f8e@192.168.5.71 > for seqno 102 (Critical Request) > Apr 2 13:51:16 NOTICE[2004]: app_queue.c:1103 wait_for_answer: No one > is answering queue 'QUEUE-Reception' (1/0/0) > > > > Thank you all. > >-- >Kind Regards >Etienne > > > >------------------------------------------------------------------------ > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >