<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#000066">Hi,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#000066"><br></div>
<div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#000066">Our queue members are Local channels, thus when dialing the agent, the dialplan will do several stuff including:</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#000066">
<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#000066">Set(CALLERID(name)=${CALLERID(name)}:Sales)</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#000066">
UserEvent(something,data: ${bunch-of-data-in-some-format})</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#000066">Dial(SIP/final-agent-phone,timeout,A(Sales))</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#000066">
<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#000066">The UserEvent will be picked up by our client-register-ticket-stuff software</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#000066">
<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#000066">The announcement A() will be heard by the agent upon answering the call like &quot;sales call&quot;</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 4 August 2013 02:59, 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">
We do something very similar.<br>
<br>
Use the gosub parameter of the Queue application to call a subroutine in the dial plan when the agent answers the call.<br>
<br>
same =&gt;n,Queue(sales,tc,,,,,,sub-<u></u>QueueConnected)<br>
<br>
[sub-QueueConnected]<br>
; this runs on the agent/member&#39;s channel<br>
exten =&gt;s,1,NoOp()<br>
  ; whatever you need to do here<br>
  same =&gt;n,Return()<br>
<br>
See <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Application_Queue" target="_blank">https://wiki.asterisk.org/<u></u>wiki/display/AST/Asterisk+11+<u></u>Application_Queue</a><span class="HOEnZb"><font color="#888888"><br>

<br>
<br>
Mitch</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On 08/03/2013 12:45 PM, Timothy Smith wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Folks,<br>
<br>
I am setting up a call center but we have few agents so one agent is<br>
able to handle calls of different languages and different queues. For<br>
the agent to identify the caller, I want a popup to appear as the<br>
phone starts to ring with the caller&#39;s number, language (selected in<br>
the IVR), Queue (sales, support etc) and any other information (e.g a<br>
URL with parameters)<br>
<br>
I can send this information either via netcat (to a client such as<br>
yac) to a Windows PC but the problem is I do not know when the caller<br>
is about to be connected to the agent, so that I run the command. If I<br>
wasn&#39;t using queues, it would be easy because  I would run the netcat<br>
command and then dial the user&#39;s extension.<br>
<br>
My Question is: Is there a way I can know when the caller is just<br>
about to be connected to an agent (when the agent&#39;s SIP extension<br>
starts ringing)?<br>
<br>
There are these settings setinterfacevar, setqueueentryvar,<br>
setqueuevar in queues.conf but when can I use them?<br>
<br>
Have you guys been in this situation before? Any alternative solutions<br>
(sending caller info to an agent)?<br>
<br>
I am using Asterisk 11 and Windows 7 PCs for agents.<br>
<br>
Thank you!<br>
<br>
Kind Regards,<br>
Wilson<br>
<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>
<br>
</blockquote>
<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>