Hi Mitch,<div><br></div><div>Glad that it works for you.</div><div><br></div><div>Regarding the CallerID I suggest to set some the variables before the actual Dial.</div><div><br></div><div>Something like:</div><div><br></div>
<div>Action: Originate<br>Channel: Local/s@callmenow/n<br>Context: to-customer</div><div>Exten: s</div><div>Priority: 1<br>Async: true</div><div>Variable: CHANNEL_TO_CUSTOMER=SIP/voipms/customer_number<br>Variable: OUTBOUND_CALLERID_NUM=777</div>
<div>Variable: OUTBOUND_CALLERID_NAME=Call Me Now<br>Timeout: 999999<br><br>[callmenow]<br>exten =&gt; s,1,NoOp(callmenow: Queue without answer)<br>  same =&gt;n,Queue(sales,tc)</div><div><br>[dial-to-customer]</div><div>
exten =&gt; s,1,NoOp(to-customer)</div><div>  same =&gt; n,Set(CALLERID(num)=${<u></u>OUTBOUND_CALLERID_NUM})<br>  same =&gt; n,Set(CALLERID(name)=${<u></u>OUTBOUND_CALLERID_NAME})</div><div>  same =&gt; n,Dial(${CHANNEL_TO_CUSTOMER})</div>
<div><br></div><div>Have a nice weekend,</div><div>Ioan</div><div><br><div class="gmail_quote">On Fri, Oct 5, 2012 at 5:48 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">This is mostly working.  See below.  My only problem is being able to set the caller ID on the outbound call to the customer.  I&#39;ve tried both a queue connected macro and gosub (see below), and those both execute, but the caller ID is not showing up correctly for the customer.  I assume this is because the caller ID is being set on the agent&#39;s channel not the customers.<br>

<br>
Any ideas on that?<br>
<br>
<br>
<br>
<br>
Action: Originate<br>
Channel: Local/s@callmenow/n<br>
Application: Dial<br>
Data: SIP/voipms/customer_number<br>
Async: true<br>
Callerid: Call Me Now &lt;777&gt;<br>
Timeout: 999999<br>
<br>
[callmenow]<br>
exten =&gt; s,1,NoOp(callmenow: Queue without answer)<br>
  same =&gt;n,Queue(sales,tc,,,,,<u></u>CallMeNowQueueConnected,<u></u>CallMeNowQueueConnectedGosub)<br>
<br>
[CallMeNowQueueConnectedGosub]<br>
exten =&gt;s,1,NoOp(<u></u>CallMeNowQueueConnectedGosub)<br>
  same =&gt;n,Set(CALLERID(num)=${<u></u>OUTBOUND_CALLERID_NUM})<br>
  same =&gt;n,Set(CALLERID(name)=${<u></u>OUTBOUND_CALLERID_NAME})<br>
  same =&gt;n,Verbose(2,end of gosub)<br>
  same =&gt;n,Return()<br>
<br>
[macro-<u></u>CallMeNowQueueConnected]<br>
; this runs on the agent/member&#39;s channel<br>
exten =&gt;s,1,NoOp(<u></u>CallMeNowQueueConnected)<br>
  same =&gt;n,Set(CALLERID(num)=${<u></u>OUTBOUND_CALLERID_NUM})<br>
  same =&gt;n,Set(CALLERID(name)=${<u></u>OUTBOUND_CALLERID_NAME})<br>
  same =&gt;n,Playback(custom/callmenow-<u></u>announce)<br>
  same =&gt;n,Verbose(2,end of macro)<div class="im"><br>
<br>
<br>
<br>
<br>
<br>
Mitch<br>
<br>
On 10/04/2012 02:30 PM, Ioan Indreias wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hello Mitch,<br>
<br>
Hoping that the Queue application is not automatically Answering the<br>
line (till an agent will do this) my suggestion is to switch between<br>
&quot;who have to answer&quot; in order to progress to the second call leg. This<br>
means that the Queue will be called through a Local Channel and the call<br>
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<br>
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></div>
Modulo Consulting // <a href="http://www.modulo.ro" target="_blank">www.modulo.ro</a> &lt;<a href="http://www.modulo.ro" target="_blank">http://www.modulo.ro</a>&gt;<br>
</blockquote><div class="HOEnZb"><div class="h5">
<br>
--<br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
              <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
  <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</div></div></blockquote></div><br></div>