You mean so that only he can dial 666?<br><br>There&#39;re a few ways. You can create a 2nd context, set it in the user&#39;s directory config and only place eavesdrop in that context.<br><br>You can also add a 2nd &lt;condition&gt; to the extension that checks either the username or a variable set in the user&#39;s directory config.<br>
<br>-Steve<br><br><br><br><div class="gmail_quote">On 21 January 2011 08:36, Sam <span dir="ltr">&lt;<a href="mailto:u2nsam@gmail.com">u2nsam@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>Is there a method to make a evesdrop master such that only he can use the aplication and no one else ?</div>
<div> </div>
<div>Regds</div>
<div>Sam<font color="#888888"><br><br></font></div><div><div></div><div class="h5">
<div class="gmail_quote">On Fri, Jan 21, 2011 at 1:24 PM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div bgcolor="#FFFFFF">
<div>Eavesdropping on a call requires transcoding. If you&#39;re using g729 you&#39;ll need a licensed version.<br><br>Steve on iPhone</div>
<div>
<div></div>
<div>
<div><br>On 21 Jan 2011, at 06:46, Sam &lt;<a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>&gt; wrote:<br><br></div>
<div></div>
<blockquote type="cite">
<div>
<div>But i gives error for g729 codec !</div>
<div> </div>
<div>2011-01-21 12:04:44.817605 [ERR] mod_g729.c:102 This codec is only usable in passthrough mode!<br>2011-01-21 12:04:44.817605 [ERR] switch_core_io.c:1042 Codec RAW Signed Linear (16 bit) encoder error!<br>2011-01-21 12:04:44.838101 [ERR] mod_g729.c:102 This codec is only usable in passthrough mode!<br>

2011-01-21 12:04:44.838101 [ERR] switch_core_io.c:1042 Codec RAW Signed Linear (16 bit) encoder error!<br>2011-01-21 12:04:44.858131 [ERR] mod_g729.c:145 This codec is only usable in passthrough mode!<br>2011-01-21 12:04:44.858131 [ERR] switch_core_io.c:433 Codec RAW Signed Linear (16 bit) decoder error!</div>


<div> </div>
<div>Regds</div>
<div>Sam<br><br></div>
<div class="gmail_quote">On Fri, Jan 21, 2011 at 10:37 AM, Sam <span dir="ltr">&lt;<a href="mailto:u2nsam@gmail.com" target="_blank"></a><a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>&gt;</span> wrote:<br>


<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">kool, it works.<br><br>Regds<br><font color="#888888">Sam<br></font>
<div>
<div></div>
<div><br>On 1/20/11, Steven Ayre &lt;<a href="mailto:steveayre@gmail.com" target="_blank"></a><a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt; wrote:<br>&gt; Yes, that will work. You can set the group either within the extension or in<br>

&gt; the user config.<br>&gt;<br>&gt; For example:<br>&gt;<br>&gt;  &lt;extension name=&quot;bridge&quot;&gt;<br>&gt;      &lt;condition field=&quot;destination_number&quot; expression=&quot;^9(\d+)$&quot;&gt;<br>&gt;        &lt;action application=&quot;set&quot; data=&quot;eavesdrop_group=spy1&quot;/&gt;<br>

&gt;        &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/gw1/$1&quot;/&gt;<br>&gt;      &lt;/condition&gt;<br>&gt;    &lt;/extension&gt;<br>&gt;   &lt;extension name=&quot;eavesdrop&quot;&gt;<br>&gt;      &lt;condition field=&quot;destination_number&quot; expression=&quot;^666$&quot;&gt;<br>

&gt;        &lt;action application=&quot;answer&quot;/&gt;<br>&gt;        &lt;action application=&quot;set&quot; data=&quot;eavesdrop_require_group=spy1&quot;/&gt;<br>&gt;        &lt;action application=&quot;eavesdrop&quot; data=&quot;all&quot;/&gt;<br>

&gt;      &lt;/condition&gt;<br>&gt;    &lt;/extension&gt;<br>&gt;<br>&gt;<br>&gt; -Steve<br>&gt;<br>&gt;<br>&gt; On 20 January 2011 10:11, Sam &lt;<a href="mailto:u2nsam@gmail.com" target="_blank"></a><a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>&gt; wrote:<br>

&gt;<br>&gt;&gt; If i use<br>&gt;&gt;<br>&gt;&gt; &lt;variable name=&quot;eavesdrop_group&quot; value=&quot;spy1&quot;/&gt;<br>&gt;&gt;<br>&gt;&gt; at the user config, will the  dialplan barge the above extension where the<br>

&gt;&gt; statement is stated ?<br>&gt;&gt;<br>&gt;&gt; &lt;extension name=&quot;eavesdrop&quot;&gt;<br>&gt;&gt;      &lt;condition field=&quot;destination_number&quot; expression=&quot;^779$&quot;&gt;<br>&gt;&gt;        &lt;action application=&quot;answer&quot;/&gt;<br>

&gt;&gt;        &lt;action application=&quot;set&quot;<br>&gt;&gt; data=&quot;eavesdrop_require_group=sales_call_eavesdrop&quot;/&gt;<br>&gt;&gt;<br>&gt;&gt;        &lt;action application=&quot;eavesdrop&quot; data=&quot;all&quot;/&gt;<br>

&gt;&gt;      &lt;/condition&gt;<br>&gt;&gt;    &lt;/extension&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Regds<br>&gt;&gt; Sam<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>

&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On Thu, Jan 20, 2011 at 3:13 PM, Sam &lt;<a href="mailto:u2nsam@gmail.com" target="_blank"></a><a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>&gt; wrote:<br>

&gt;&gt;<br>&gt;&gt;&gt; hello ,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I am using,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; &lt;extension name=&quot;global&quot; continue=&quot;true&quot;&gt;<br>&gt;&gt;&gt;      &lt;condition&gt;<br>&gt;&gt;&gt;        &lt;action application=&quot;info&quot;/&gt;<br>

&gt;&gt;&gt;        &lt;action application=&quot;db&quot;<br>&gt;&gt;&gt; data=&quot;insert/spymap/${caller_id_number}/${uuid}&quot;/&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;        &lt;action application=&quot;db&quot;<br>

&gt;&gt;&gt; data=&quot;insert/last_dial/${caller_id_number}/${destination_number}&quot;/&gt;<br>&gt;&gt;&gt;        &lt;action application=&quot;db&quot; data=&quot;insert/last_dial/global/${uuid}&quot;/&gt;<br>&gt;&gt;&gt;<br>

&gt;&gt;&gt;<br>&gt;&gt;&gt;      &lt;/condition&gt;<br>&gt;&gt;&gt;    &lt;/extension&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;    &lt;extension name=&quot;eavesdrop&quot;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;      &lt;condition field=&quot;destination_number&quot;<br>

&gt;&gt;&gt; expression=&quot;^88(.*)$|^\*0(.*)$&quot;&gt;<br>&gt;&gt;&gt;        &lt;action application=&quot;answer&quot;/&gt;<br>&gt;&gt;&gt;        &lt;action application=&quot;eavesdrop&quot; data=&quot;${db(select/spymap/$1)}&quot;/&gt;<br>

&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;      &lt;/condition&gt;<br>&gt;&gt;&gt;    &lt;/extension&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; i am getting the below error:-<br>&gt;&gt;&gt;<br>

&gt;&gt;&gt; 2011-01-20 14:54:01.581151 [NOTICE] mod_dptools.c:920 Channel<br>&gt;&gt;&gt; [sofia/internal/<a href="mailto:7006@192.168.2.190" target="_blank"></a><a href="mailto:7006@192.168.2.190" target="_blank">7006@192.168.2.190</a>] has been answered<br>

&gt;&gt;&gt; 2011-01-20 14:54:01.581151 [DEBUG] sofia.c:4646 Channel sofia/internal/<br>&gt;&gt;&gt; <a href="mailto:7006@192.168.2.190" target="_blank"></a><a href="mailto:7006@192.168.2.190" target="_blank">7006@192.168.2.190</a> entering state [completed][200]<br>

&gt;&gt;&gt; EXECUTE sofia/internal/<a href="mailto:7006@192.168.2.190" target="_blank"></a><a href="mailto:7006@192.168.2.190" target="_blank">7006@192.168.2.190</a> eavesdrop()<br>&gt;&gt;&gt; 2011-01-20 14:54:01.582119 [ERR] mod_dptools.c:529 Usage: [all | &lt;uuid&gt;]<br>

&gt;&gt;&gt; 2011-01-20 14:54:01.582119 [NOTICE] switch_core_state_machine.c:189<br>&gt;&gt;&gt; sofia/internal/<a href="mailto:7006@192.168.2.190" target="_blank"></a><a href="mailto:7006@192.168.2.190" target="_blank">7006@192.168.2.190</a> has executed the last dialplan<br>

&gt;&gt;&gt; instruction, hanging up.<br>&gt;&gt;&gt; 2011-01-20 14:54:01.582119 [DEBUG] switch_channel.c:2535 (sofia/internal/<br>&gt;&gt;&gt; <a href="mailto:7006@192.168.2.190" target="_blank"></a><a href="mailto:7006@192.168.2.190" target="_blank">7006@192.168.2.190</a>) Callstate Change ACTIVE -&gt; HANGUP<br>

&gt;&gt;&gt; 2011-01-20 14:54:01.582119 [NOTICE] switch_core_state_machine.c:191<br>&gt;&gt;&gt; Hangup<br>&gt;&gt;&gt; sofia/internal/<a href="mailto:7006@192.168.2.190" target="_blank"></a><a href="mailto:7006@192.168.2.190" target="_blank">7006@192.168.2.190</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>

&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; <a href="http://pastebin.freeswitch.org/15076" target="_blank"></a><a href="http://pastebin.freeswitch.org/15076" target="_blank">http://pastebin.freeswitch.org/15076</a><br>&gt;&gt;&gt;<br>

&gt;&gt;&gt;<br>&gt;&gt;&gt; Regds<br>&gt;&gt;&gt; Sam<br>&gt;&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; FreeSWITCH-users mailing list<br>&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank"></a><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>

&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank"></a><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>

&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank"></a><a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>

&gt;&gt; <a href="http://www.freeswitch.org/" target="_blank"></a><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br></div></div></blockquote></div><br></div>

</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br>

<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>

<span><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></span><br></div></blockquote></div></div></div><br>_______________________________________________<br>FreeSWITCH-users mailing list<br>

<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>

<br></blockquote></div><br>
</div></div><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>
<br></blockquote></div><br>