<div>Limit application does that work - <a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+Limit">https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+Limit</a></div><div>max_calls is just a variable, it does not limit by itself.</div><div>If you want to limit, you should use the limit application. Correct if wrong please.</div><div> </div><div>04.04.2018, 20:10, "Vlad Toma" <vldtoma@gmail.com>:</div><blockquote type="cite"><div>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> </div><div>Kind regards, </div><div>Vlad </div></div> <div>On Wed, Apr 4, 2018, 6:15 PM <<a href="mailto:royj@yandex.ru">royj@yandex.ru</a>> wrote:</div><blockquote style="margin:0 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 target="_blank" href="mailto:vldtoma@gmail.com">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>,<p>_________________________________________________________________________<br />Professional FreeSWITCH Consulting Services:<br /><a target="_blank" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br /><a target="_blank" href="http://www.freeswitchsolutions.com/">http://www.freeswitchsolutions.com</a><br /><br />Official FreeSWITCH Sites<br /><a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br /><a target="_blank" href="http://confluence.freeswitch.org/">http://confluence.freeswitch.org</a><br /><a target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com</a><br /><br />FreeSWITCH-users mailing list<br /><a target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br /><a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br />UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /><a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a></p></div></blockquote>_________________________________________________________________________<br />Professional FreeSWITCH Consulting Services:<br /><a target="_blank" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br /><a target="_blank" href="http://www.freeswitchsolutions.com/">http://www.freeswitchsolutions.com</a><br /><br />Official FreeSWITCH Sites<br /><a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br /><a target="_blank" href="http://confluence.freeswitch.org/">http://confluence.freeswitch.org</a><br /><a target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com</a><br /><br />FreeSWITCH-users mailing list<br /><a target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br /><a target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br />UNSUBSCRIBE:<a target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /><a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a></blockquote>,<p>_________________________________________________________________________<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></p></blockquote>