<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,<br>
<br>
This is the situation:<br>
&nbsp;&nbsp;&nbsp; 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].<br>
&nbsp;&nbsp;&nbsp; Then s,... starts. It picks up the call and then places the call in
a "Reception" queue.<br>
<br>
This is the problem:<br>
&nbsp;&nbsp;&nbsp; When the call is in the "Reception" queue, I would like to play a
voice menu while the call is in the queue.<br>
&nbsp;&nbsp;&nbsp; If the user responds to the "Voice Menu" by dialling a number, then
I would like to pass this call to that extension.<br>
&nbsp;&nbsp;&nbsp; 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 <br>
&nbsp;&nbsp;&nbsp; Receptionist.<br>
<br>
<br>
<b>/extensions.conf/</b><br>
<br>
[incoming]<br>
exten =&gt; s,1,Wait,1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;
Wait a second, just for fun<br>
exten =&gt; s,2,Answer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;
Answer the line<br>
;___________TODO______________&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;Play a "Thank you for
calling ..."<br>
exten =&gt; s,3,Queue(QUEUE-Reception)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;Place call in
reception queue<br>
;___________TODO______________&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;Play "Voice Menu -&gt;
Sales;Accounts;Support<br>
exten =&gt; 1,1,QUEUE(QUEUE-Support)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;Pressed "1", place
call in queue.conf::[QUEUE-Support]&nbsp; &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&nbsp;
need some help ova here.... plz<br>
<br>
[sip]<br>
include =&gt; incoming&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
;include the incoming calls context<br>
<br>
exten =&gt; 101,1,Dial(SIP/Reception,20,tr)<br>
exten =&gt; 200,1,Queue(QUEUE-Support)<br>
<br>
<br>
<b>/Asterisk Out-put/</b><br>
<br>
Asterisk Ready.<br>
&nbsp;&nbsp;&nbsp; -- Starting simple switch on 'Zap/4-1'<br>
&nbsp;&nbsp;&nbsp; -- Executing Wait("Zap/4-1", "1") in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing Answer("Zap/4-1", "") in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing Queue("Zap/4-1", "QUEUE-Reception") in new stack<br>
&nbsp;&nbsp;&nbsp; -- Started music on hold, class 'default', on Zap/4-1<br>
&nbsp;&nbsp;&nbsp; -- Called SIP/Reception<br>
&nbsp;&nbsp;&nbsp; -- Stopped music on hold on Zap/4-1<br>
Apr&nbsp; 2 13:51:16 WARNING[1994]: chan_sip.c:860 retrans_pkt: Maximum
retries exceeded on call <a class="moz-txt-link-abbreviated" href="mailto:76a1d748020bb36d645b3ca849d60f8e@192.168.5.71">76a1d748020bb36d645b3ca849d60f8e@192.168.5.71</a>
for seqno 102 (Critical Request)<br>
Apr&nbsp; 2 13:51:16 NOTICE[2004]: app_queue.c:1103 wait_for_answer: No one
is answering queue 'QUEUE-Reception' (1/0/0)<br>
<br>
<br>
<br>
Thank you all.<br>
<pre class="moz-signature" cols="72">-- 
Kind Regards
Etienne

</pre>
</body>
</html>