Good point! Thanks for the tip.<br>-MC<br><br><div class="gmail_quote">On Sun, Jun 3, 2012 at 4:47 PM, Dave R. Kompel <span dir="ltr">&lt;<a href="mailto:drk@drkngs.net" target="_blank">drk@drkngs.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

<div>
<div>Change that to &quot;execute_on_originate&quot;. On answer will blow the call off if it&#39;s over limits when the user answers.</div>
<div> </div>
<div>--Dave</div><br>
<blockquote style="BORDER-LEFT:#0000ff 2px solid;PADDING-LEFT:5px;MARGIN-LEFT:5px;MARGIN-RIGHT:0px">
<hr>
<b>From:</b> Michael Collins [mailto:<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>]<br><b>To:</b> FreeSWITCH Users Help [mailto:<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>]<br>
<b>Sent:</b> Sun, 03 Jun 2012 13:54:08 -0700<br><b>Subject:</b> Re: [Freeswitch-users] limit app problem with loopback channels<br><br>You can solve this issue by avoiding loopback. Don&#39;t use loopback unless there is absolutely no other alternative. Try replacing the loopback calls in the group definition to &quot;user/xxx&quot; instead:<br>
<br>   &lt;extension name=&quot;group_dial_sales&quot;&gt;<br>     &lt;condition field=&quot;destination_number&quot; expression=&quot;^2000$&quot;&gt;<br>       &lt;action application=&quot;bridge&quot;<br>data=&quot;[execute_on_answer=&#39;limit hash callwaiting 1000 1&#39;]user/1000, [execute_on_answer=&#39;limit hash callwaiting<br>
1001 1&#39;]user/1001&quot;/&gt;<br>     &lt;/condition&gt;<br>   &lt;/extension&gt;<br>
<div> </div>This is just off the top of my head, so please do the usual testing and tinkering before you report back that it does not work. :)<br><br>-MC<br><br>
<div class="gmail_quote">On Sun, Jun 3, 2012 at 8:47 AM, Jose Fco. Irles Durá <span>&lt;<a href="mailto:josefu@gmail.com" target="_blank">josefu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Hello,<br><br>I&#39;m trying to limit calls to one user with limit application, all<br>works fine when a user dials to the number user (the caller is<br>
transfered to limit_exceeded extension)<br><br>But when a caller dials to the 2000 extensions (a &quot;ring group&quot; to<br>loopback channels) and one of the users (for example 1001) answer the<br>call, the limit app removes the limit count for this channel when the<br>
loopback channel disappears (when the direct bridge occurs between the<br>caller channel and callee channel).<br><br>Where is the problem? How can I avoid that the limit app removes the<br>limit for this loopback channel?<br>
<br>There is the fragmet of my dialplan (is the vainilla dialplan from git<br>with the limit action added)<br>&lt;context name=&quot;default&quot;&gt;<br>...<br> &lt;extension name=&quot;Local_Extension&quot;&gt;<br>     &lt;condition field=&quot;destination_number&quot; expression=&quot;^(10[01][0-9])$&quot;&gt;<br>
       &lt;action application=&quot;export&quot; data=&quot;dialed_extension=$1&quot;/&gt;<br>       &lt;action application=&quot;set&quot; data=&quot;ringback=${us-ring}&quot;/&gt;<br>       &lt;action application=&quot;set&quot; data=&quot;transfer_ringback=$${hold_music}&quot;/&gt;<br>
       &lt;action application=&quot;set&quot; data=&quot;call_timeout=30&quot;/&gt;<br>       &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>       &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br>
      &lt;action application=&quot;limit&quot; data=&quot;hash callwaiting<br>${dialed_extension} 1&quot;/&gt;<br>       &lt;action application=&quot;bridge&quot;<br>data=&quot;user/${dialed_extension}@${domain_name}&quot;/&gt;<br>
       &lt;action application=&quot;answer&quot;/&gt;<br>       &lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;<br>       &lt;action application=&quot;bridge&quot;<br>data=&quot;loopback/app=voicemail:default ${domain_name}<br>
${dialed_extension}&quot;/&gt;<br>     &lt;/condition&gt;<br>   &lt;/extension&gt;<br><br>   &lt;extension name=&quot;group_dial_sales&quot;&gt;<br>     &lt;condition field=&quot;destination_number&quot; expression=&quot;^2000$&quot;&gt;<br>
       &lt;action application=&quot;bridge&quot;<br>data=&quot;loopback/1000/default,loopback/1001/default&quot;/&gt;<br>     &lt;/condition&gt;<br>   &lt;/extension&gt;<br><br>...<br>&lt;/context&gt;<span class="HOEnZb"><font color="#888888"><br>
<br>--<br>Jose Fco. Irles Durá<br><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote>


<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">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<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>