<div dir="ltr">you can either spy on the call based on the uuid of the a leg (save it in hash or db) or if you want to spy based on a specific user you can try something execute_on_answer to sabe the call to the users hash</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 29, 2016 at 11:03 AM, Ahmed habiba <span dir="ltr">&lt;<a href="mailto:ahabiba@gmail.com" target="_blank">ahabiba@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I want to spy on the user as the incoming call may be coming from SIP trunk or could be coming from PSTN<div><br></div><div><br></div><div><br></div><div><div style="margin:0px"><span style="font-family:-webkit-system-font,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;color:rgb(127,127,127)"><b>From: </b></span><span style="font-family:-webkit-system-font,&#39;Helvetica Neue&#39;,Helvetica,sans-serif">Abaci B &lt;<a style="color:purple" href="mailto:abaci64@gmail.com" target="_blank">abaci64@gmail.com</a>&gt;<br></span></div><div style="margin:0px"><span style="font-family:-webkit-system-font,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;color:rgb(127,127,127)"><b>Subject: </b></span><span style="font-family:-webkit-system-font,&#39;Helvetica Neue&#39;,Helvetica,sans-serif"><b>Re: [Freeswitch-users] Spy a call</b><br></span></div><div style="margin:0px"><span style="font-family:-webkit-system-font,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;color:rgb(127,127,127)"><b>Date: </b></span><span style="font-family:-webkit-system-font,&#39;Helvetica Neue&#39;,Helvetica,sans-serif">March 29, 2016 at 5:40:43 PM GMT+3<br></span></div><div style="margin:0px"><span style="font-family:-webkit-system-font,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;color:rgb(127,127,127)"><b>To: </b></span><span style="font-family:-webkit-system-font,&#39;Helvetica Neue&#39;,Helvetica,sans-serif">FreeSWITCH Users Help &lt;<a style="color:purple" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br></span></div><div style="margin:0px"><span style="font-family:-webkit-system-font,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;color:rgb(127,127,127)"><b>Reply-To: </b></span><span style="font-family:-webkit-system-font,&#39;Helvetica Neue&#39;,Helvetica,sans-serif">FreeSWITCH Users Help &lt;<a style="color:purple" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br></span></div><div><div class="h5"><br><br><div dir="ltr">why don&#39;t you spy based on the uuid of the aleg?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 29, 2016 at 10:15 AM, Ahmed habiba <span dir="ltr">&lt;<a style="color:purple" href="mailto:ahabiba@gmail.com" target="_blank">ahabiba@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p dir="ltr">Hi,</p><p dir="ltr">I have an issue where I want to spy on a call to agent considering that the call was not direct to the agent it is to a short code which then try to bridge to a hunt group any of them can catch the call</p><p dir="ltr">I.e a call to 5005 in extension definition it try to bridge to user/1000,user/2000,user/3000</p><p dir="ltr">Any of the agents can catch the call and because eavesdrop depend on uuid stored in some hash map it is not working as in my scenario I don&#39;t know before issuing the bridge who will catch the call and accordingly I can not use it as a hash key for the uuid</p><p dir="ltr">I used userspy but it work only if I was spying before the call start</p><p dir="ltr">Any idea will be appreciated.</p><p dir="ltr">Thanks,</p><p dir="ltr">Ahmed Habiba.</p><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a style="color:purple" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a style="color:purple" href="http://www.freeswitchsolutions.com" target="_blank" rel="noreferrer">http://www.freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a style="color:purple" href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a><br><a style="color:purple" href="http://confluence.freeswitch.org" target="_blank" rel="noreferrer">http://confluence.freeswitch.org</a><br><a style="color:purple" href="http://www.cluecon.com" target="_blank" rel="noreferrer">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a style="color:purple" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a style="color:purple" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a style="color:purple" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a style="color:purple" href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a><br></blockquote></div><br></div></div></div></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" rel="noreferrer">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank" rel="noreferrer">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank" rel="noreferrer">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" rel="noreferrer">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" rel="noreferrer">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank" rel="noreferrer">http://www.freeswitch.org</a><br></blockquote></div><br></div>