<div dir="auto">First of all thank you for the reply, but I am using verto communicator and it doesn't have call waiting. I have to limit the number of calls from the server, the max_calls option works for bridging but if I originate the call from a conference using conference dial user/XXX@domain the max_calls doesn't work anymore.<div dir="auto"><br></div><div dir="auto">Kind regards, </div><div dir="auto">Vlad </div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Apr 4, 2018, 6:15 PM  <<a href="mailto:royj@yandex.ru">royj@yandex.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Another approach is to disable "call waiting" feature on the phone.</div><div> </div><div>03.04.2018, 19:09, "Vlad Toma" <<a href="mailto:vldtoma@gmail.com" target="_blank" rel="noreferrer">vldtoma@gmail.com</a>>:</div><blockquote type="cite"><div lang="EN-US" link="blue" vlink="#954F72"><div><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Hello,</p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">I want to restrict the number of incoming calls to my internal extensions to 1 per extension, because I don’t want to receive another call to an extension that is already in a call.</p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">I tried setting the max_calls variable to 1 and adding this to the dialplan</p><div><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt"> </span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt"><extension</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">name="limit_exceeded"></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt">  <condition</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">field="destination_number"</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">expression="^limit_exceeded$"></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt">    <action</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">application="playback"</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">data="/sounds/overthelimit.wav"/></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt">    <action</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">application="hangup"/></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt">  </condition></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt"></extension></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt"><extension</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">name="limit"</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">continue="true"></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt">  <condition></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt">    <!-- You can set ${max_calls} per user in directory.conf and remove the line below --></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt">    <action</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">application="set"</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">data="max_calls=1"</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">inline="true"/></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt">    <action</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">application="limit"</span></code><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span><code><span style="color:#333333;font-size:10pt">data="db $${domain} ${sip_auth_username} ${max_calls}"/></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt">  </condition></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><code><span style="color:#333333;font-size:10pt"></extension></span></code></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span style="color:#333333;font-family:consolas;font-size:10.5pt"> </span></p></div><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Also I tried adding this to my dialplan where the condition matches my internal extensions</p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><action application="limit_execute" data="hash outbound carrier1 1 bridge {ignore_early_media=true}user/${dialed_extension}@${domain_name}" /></p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">It works if I dial normally but if I do a conference conf dial {ignore_early_media=true,conference_member_flags=moderator}user/XXX@${domain_name} it always calls even if that user is already in a call.  </p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">How can I fix this? Thank you.</p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Kind regards,</p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p><p style="margin:0in;margin-bottom:0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Vlad Toma</p></div></div>,<p>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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></p></blockquote>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank" rel="noreferrer">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" rel="noreferrer">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div>