<br><br><div class="gmail_quote">On Fri, Sep 28, 2012 at 7:42 PM, Mitch Claborn <span dir="ltr">&lt;<a href="mailto:mitch_ml@claborn.net" target="_blank">mitch_ml@claborn.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I want to put a &quot;call me now&quot; button on the web site that will place the request into an asterisk call queue and then when an agent picks up the call in the queue, place the outbound call to the customer.<br>
<br>
The following AMI command works, but it calls the customer first, before an agent is necessarily available.<br>
<br>
Action: Originate<br>
Channel: SIP/voipms/customer_number_<u></u>here<br>
Context: external<br>
Async: true<br>
Application: Queue<br>
Data: sales<br>
Callerid: Company &lt;<a href="tel:8005551212" value="+18005551212" target="_blank">8005551212</a>&gt;<br>
<br>
How can I get an available agent before the customer call is placed?<br>
<br></blockquote><div>Hello Mitch,<br><br>Hoping that the Queue application is not automatically Answering the line (till an agent will do this) my suggestion is to switch between &quot;who have to answer&quot; in order to progress to the second call leg. This means that the Queue will be called through a Local Channel and the call to your customer will be made through a Dial application.<br>
<br>Below is something to start with - in case it will work you could modify to your needs.<br><br>[demo]<br>exten =&gt; s,1,NoOp(Queue without answer)<br>exten =&gt; s,2,Queue(sales)<br><br>Action: Originate<br>Channel: Local/s@demo/n<br>
Application: Dial<br>Data: SIP/voipms/customer_number<br><br>HTH,<br>Ioan Indreias<br>Modulo Consulting // <a href="http://www.modulo.ro">www.modulo.ro</a><br></div></div>