<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(32,18,77)">Allan-</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(32,18,77)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(32,18,77)">this example below allows you to call to an extension and when finished eavesdropping on one channel press * to move to another- the extension will ask again what extension to monitor (you can uncomment the lines if you want to read back to the caller what extension they entered):</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(32,18,77)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(32,18,77)"><div class="gmail_default">&lt;extension name=&quot;custom-eavesdrop&quot;&gt;</div><div class="gmail_default">  &lt;condition field=&quot;destination_number&quot; expression=&quot;^\*8(\d{4})$&quot;&gt;</div><div class="gmail_default">    &lt;action application=&quot;answer&quot;/&gt;</div><div class="gmail_default">    &lt;!-- &lt;action application=&quot;playback&quot; data=&quot;$${base_dir}/sounds/en/us/callie/ivr/8000/ivr-you_entered.wav&quot;/&gt; --&gt;</div><div class="gmail_default">    &lt;!-- spell out called number, like &quot;one-two-three-four-five&quot; --&gt;</div><div class="gmail_default">    &lt;!-- &lt;action application=&quot;say&quot; data=&quot;en name_spelled iterated $1&quot;/&gt; --&gt;</div><div class="gmail_default">    &lt;action application=&quot;set&quot; data=&quot;eavesdrop_enable_dtmf=true&quot;/&gt;</div><div class="gmail_default">    &lt;action application=&quot;eavesdrop&quot; data=&quot;${hash(select/${domain_name}-spymap/$1$2)}&quot;/&gt;</div><div class="gmail_default">    </div><div class="gmail_default">    &lt;!--&lt;action application=&quot;sleep&quot; data=&quot;500&quot;/&gt;--&gt;</div><div class="gmail_default">    &lt;action application=&quot;play_and_get_digits&quot; data=&quot;4 4 3 5000 # $${base_dir}/sounds/en/us/callie/ivr/8000/ivr-enter_ext.wav $${base_dir}/sounds/en/us/callie/ivr/8000/ivr-invalid_extension_try_again.wav my_digits \d+&quot;/&gt;</div><div class="gmail_default">    &lt;action application=&#39;transfer&#39; data=&#39;*8${my_digits} XML default&#39;/&gt;</div><div class="gmail_default">    &lt;action application=&quot;say&quot; data=&quot;en name_spelled iterated $1&quot;/&gt;</div><div class="gmail_default">    &lt;action application=&quot;playback&quot; data=&quot;$${base_dir}/sounds/en/us/callie/voicemail/8000/vm-not_available.wav&quot;/&gt;</div><div class="gmail_default">  &lt;/condition&gt;</div><div class="gmail_default">&lt;/extension&gt;</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 3, 2015 at 6:21 AM, Allan Kristensen <span dir="ltr">&lt;<a href="mailto:ak@hejdu.dk" target="_blank">ak@hejdu.dk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello All,<div><br></div><div>Can anyone tell me if it&#39;s possible to eavesdrop from an existing channel instead of using &quot;originate &lt;dialstr&gt; &amp;eavesdrop(uuid)&quot; method?<br><br></div><div>Let&#39;s say I have 20 agents talking to our clients and as I supervisor I want to listen to these calls and perhaps coach agents by activating the &quot;speak with uuid&quot; feature available in eavesdrop.</div><div><br></div><div>Today I need to make a new call (originate) if I want to start eavesdropping, so supervisor has to disconnect phone and make another call to jump to next agent (using the &quot;*&quot; DTMF is not possible and I also want to control this using ESL).</div><div><br></div><div>What i&#39;m doing today using the ESL:</div><div><br></div><div>&gt; originate &lt;agent dial string&gt; &amp;park</div><div>&gt; originate &lt;client dial string&gt; &amp;park<br></div><div>&gt; uuid_bridge &lt;agent_chan_uuid&gt; &lt;client_chan_uuid&gt;</div><div><br></div><div>...&quot;Agent and client talks&quot;...</div><div><br></div><div>Now supervisor/coach wants to give agents some tips:</div><div><br></div><div>&gt; originate &lt;supervisor dial string&gt; &amp;eavesdrop(&lt;agent_chan_uuid&gt;)</div><div><br></div><div>&quot;Supervisor can now listen and talk to agent by pressing the &quot;2&quot; DTMF</div><div><br></div><div>If supervisor needs to help another agent, he/she now needs to disconnect call and do another originate, which is quite tedious.</div><div>If it was somehow possible, I rather do this:<br></div><div><br></div><div>&gt; originate &lt;supervisor dial str&gt; &amp;park</div><div>&gt; &quot;send api cmd to api that eavesdrop &lt;client_chan_uuid&gt; from &lt;supervisor_chan_uuid&gt;&quot; </div><div><br></div><div>...and when done, quickly move to another client by issusing another command without disconnecting the call, perhaps even use the same &lt;supervisor_chan_uuid&gt; to listen to a recorded call.</div><div><br></div><div>Does it makes sense? :)<br></div><div><br></div><div>What approach would you recommend ?</div><div><br></div><div>Thank you...</div><div><br></div><div>Best Regards,</div><div>  Allan</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><a name="UNIQUE_ID_SafeHtmlFilter__MailAutoSig"><span><font size="3" face="verdana, sans-serif">Tony
Bourdeaux</font></span></a></p><p style="margin:0in 0in 0pt"><a name="UNIQUE_ID_SafeHtmlFilter__MailAutoSig"><span><font face="verdana, sans-serif" size="1" color="#0000ff"><b>Intelecenter, LLC</b></font></span></a></p><font size="3" face="verdana, sans-serif">

</font><p style="margin:0in 0in 0pt"><span><span><font face="verdana, sans-serif" size="1">ph: 805-428-3031<span></span><span></span></font></span></span></p><font face="verdana, sans-serif" size="1">

</font><p style="margin:0in 0in 0pt"><span><span><font face="verdana, sans-serif" size="1">Skype: tony.bourdeaux</font></span></span></p><font size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span><span><font size="3" face="Calibri"> </font></span></span></p><font size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span><span><font size="3"><font face="Calibri">
 
 
  
  
  
  
  
  
  
  
  
  
  
  
 
 
 
</font></font><font size="3"><font face="Calibri">
 
</font></font></span></span></p><font size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span><span><font size="3" face="Calibri"> </font></span></span></p><font size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span><span><font size="3"><font face="Calibri">&quot;This message and any attachments are solely for the
intended recipient and may contain confidential or privileged information. If
you are not the intended recipient, any disclosure, copying, use, or
distribution of the information included in this message and any attachments is
prohibited. If you have received this communication in error, please notify me
by reply e-mail and immediately and permanently delete this message and any
attachments.&quot;</font></font></span></span></p><font size="3" face="Times New Roman">

</font><p style="margin:0in 0in 0pt"><span><span><font size="3" face="Calibri"> </font></span></span></p><font size="3" face="Times New Roman">

</font></div></div>
</div>