<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=IT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>YES!!! It WORKS!!<br>Thank you soooo much!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>F<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> <b>On Behalf Of </b>Shaun Stokes<br><b>Sent:</b> mercoledì 9 maggio 2018 10:18<br><b>To:</b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><br><b>Subject:</b> Re: [Freeswitch-users] eavesdrop<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p><span style='font-size:12.0pt;color:black'>I've just tested this myself, using the command:<o:p></o:p></span></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:black'>api originate {sip_secure_media=true}user/$ext &eavesdrop($uid)</span><span style='font-size:12.0pt;color:black'><o:p></o:p></span></p></div><p><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p><p><span style='font-size:12.0pt;color:black'>Eavesdrop is by default in silent mode, so neither the caller or callee can hear the microphone of the person listening in.<o:p></o:p></span></p><p><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p><p><span style='font-size:12.0pt;color:black'>It should actually be w0@500 (not @ext) which I've tested and does work but you will need to adjust your command as follows:<o:p></o:p></span></p><p><span style='font-size:12.0pt;color:black'>api originate {sip_secure_media=true}user/$ext 'queue_dtmf:w0@500,eavesdrop:$uid inline<o:p></o:p></span></p><p><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p><p><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p><div><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;color:#212121'><hr size=2 width="98%" align=center></span></div><div id=divRplyFwdMsg><p class=MsoNormal><b><span style='color:black'>From:</span></b><span style='color:black'> FreeSWITCH-users <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>> on behalf of Francesco Facco de Lagarda <<a href="mailto:francesco@delagarda.com">francesco@delagarda.com</a>><br><b>Sent:</b> 08 May 2018 16:57<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] eavesdrop</span><span style='font-size:12.0pt;color:#212121'> <o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'> <o:p></o:p></span></p></div></div><div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'>Thanks for very interesting answer! <o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'>I’m initiating the eavesdrop with a command sent via php to the control port<o:p></o:p></span></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;color:#212121'>Where do I put the parameter you’re saying?<o:p></o:p></span></p><div id=AppleMailSignature><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'>Francesco Facco de Lagarda <o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'><o:p> </o:p></span></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;color:#212121'><br>On 8 May 2018, at 16:30, Shaun Stokes <<a href="mailto:shaun.stokes@itec-support.co.uk">shaun.stokes@itec-support.co.uk</a>> wrote:<o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p><span style='font-size:12.0pt;color:#212121'>We use a LUA script for Eavesdrop and never had this issue.<o:p></o:p></span></p><p><span style='font-size:12.0pt;color:#212121'><o:p> </o:p></span></p><p><span style='font-size:12.0pt;color:#212121'>Looking at the FS documentation, you can use ​w1@ext to speak with the callee or w2@ext to speak with the caller.<o:p></o:p></span></p><p><span style='font-size:12.0pt;color:#212121'><o:p> </o:p></span></p><p><span style='font-size:12.0pt;color:#212121'>Here are the DTMF signals during eavesdrop<o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'>2 to speak with the uuid<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'>1 to speak with the other half<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'>3 to engage a three way<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'>0 to restore eavesdrop.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'>* to next channel.<o:p></o:p></span></p></div><p><span style='font-size:12.0pt;color:#212121'><o:p> </o:p></span></p><p><span style='font-size:12.0pt;color:#212121'>Is it possible you pressed any DTMF key during the call? If not, you could perhaps you could try w0@ext ?<o:p></o:p></span></p><p><span style='font-size:12.0pt;color:#212121'><o:p> </o:p></span></p><div><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;color:#212121'><hr size=2 width="98%" align=center></span></div><div id=divRplyFwdMsg><p class=MsoNormal><b><span style='color:black'>From:</span></b><span style='color:black'> FreeSWITCH-users <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>> on behalf of Francesco Facco de Lagarda <<a href="mailto:francesco@delagarda.com">francesco@delagarda.com</a>><br><b>Sent:</b> 08 May 2018 13:46<br><b>To:</b> 'FreeSWITCH Users Help'<br><b>Subject:</b> [Freeswitch-users] eavesdrop</span><span style='font-size:12.0pt;color:#212121'> <o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'> <o:p></o:p></span></p></div></div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'>I need to enable client to eavesdrop on certain calls. The fs is in a penitentiary institute and certain types of criminals (i..e mafia related) must be listened.</span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'> </span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'>I am trying to implement eavesdropping like so:</span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'> </span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'>api originate {sip_secure_media=true}user/$ext &eavesdrop($uid)</span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'> </span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'>(where, I hope, $ext and $uid are self-explicatory)</span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'>Is there ANY way to mute the microphone of the eavesdropper? It’s a bit of a give-away if the criminal can hear the background noise</span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'> </span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'>Thanks </span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'> </span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'>Francesco</span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'> </span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'> </span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'> </span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:12.0pt;color:#212121'> </span><span style='font-size:12.0pt;color:#212121'><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'><br>______________________________________________________________________<br>This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<br>______________________________________________________________________<o:p></o:p></span></p></div></div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'><br>______________________________________________________________________<br>This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<br>______________________________________________________________________<o:p></o:p></span></p></div></blockquote><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br><a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br><a href="http://www.cluecon.com">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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></span></p></div></blockquote></div><p class=MsoNormal><span style='font-size:12.0pt;color:#212121'><br>______________________________________________________________________<br>This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<br>______________________________________________________________________<o:p></o:p></span></p></div></div><p class=MsoNormal><span style='font-size:12.0pt;color:black'><br>______________________________________________________________________<br>This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<br>______________________________________________________________________<o:p></o:p></span></p></div></body></html>