<div dir="ltr"><div><div><div><div><div>Hi, All!<br><br></div>I have a problem with limiting number of calls to fifo consumer. I have next dialplan to apply limits:<br><br> &lt;extension name=&quot;call-limit&quot; continue=&quot;true&quot;&gt;<br>     &lt;condition field=&quot;${caller_id_number}&quot; expression=&quot;^(\d{3})$&quot;&gt;<br>         &lt;action application=&quot;set&quot; data=&quot;auto_hunt=true&quot;/&gt;<br>         &lt;action application=&quot;limit&quot; data=&quot;hash 192.168.1.44-lines $1 1&quot;/&gt;<br>      &lt;/condition&gt;<br>  &lt;/extension&gt;<br><br> &lt;extension name=&quot;call-limit&quot; continue=&quot;true&quot;&gt;<br>     &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{3})$&quot;&gt;<br>         &lt;action application=&quot;set&quot; data=&quot;auto_hunt=true&quot;/&gt;<br>         &lt;action application=&quot;limit&quot; data=&quot;hash 192.168.1.44-lines $1 1&quot;/&gt;<br>      &lt;/condition&gt;<br>  &lt;/extension&gt;<br><br>  &lt;extension name=&quot;limit_exceeded&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^limit_exceeded$&quot;&gt;<br>          &lt;action application=&quot;hangup&quot; data=&quot;USER_BUSY&quot;/&gt;<br>      &lt;/condition&gt;<br>  &lt;/extension&gt;<br><br></div>and next dialplan to register in fifo queue:<br><br> &lt;extension name=&quot;Agent Login&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^551$&quot;&gt;<br>          &lt;action application=&quot;answer&quot;/&gt;<br>          &lt;action application=&quot;set&quot; data=&quot;result=${fifo_member(add operators {fifo_member_wait=nowait,fifo_consumer_exit_key=none}loopback/${user_name} 1 10)}&quot;/&gt;<br>          &lt;action application=&quot;log&quot; data=&quot;INFO Add FIFO agent result: ${result}&quot;/&gt;<br>          &lt;action application=&quot;log&quot; data=&quot;INFO User Login:${user_name}&quot;/&gt;<br>          &lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;<br>          &lt;action application=&quot;hangup&quot;/&gt;<br>      &lt;/condition&gt;<br>  &lt;/extension&gt;<br><br></div>In this situation limit is zeroed when loopback channel is hangup (after successful bridge). I trying next variant:<br><br> &lt;extension name=&quot;Agent Login&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^551$&quot;&gt;<br>          &lt;action application=&quot;answer&quot;/&gt;<br>         
 &lt;action application=&quot;set&quot; data=&quot;result=${fifo_member(add operators 
{fifo_member_wait=nowait,fifo_consumer_exit_key=none}user/${user_name}
 1 10)}&quot;/&gt;<br>          &lt;action application=&quot;log&quot; data=&quot;INFO Add FIFO agent result: ${result}&quot;/&gt;<br>          &lt;action application=&quot;log&quot; data=&quot;INFO User Login:${user_name}&quot;/&gt;<br>          &lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;<br>          &lt;action application=&quot;hangup&quot;/&gt;<br>      &lt;/condition&gt;<br>  &lt;/extension&gt;

<br><br></div>But in this variant limit is not checked and if operator make a outbound call, he received incoming call when talking.<br><br></div>How can I limit number of calls on fifo operator line?<br></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif;line-height:19.5px">--</div><div style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif;line-height:19.5px">С уважением,</div><div style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif;line-height:19.5px">Борисов Дмитрий</div><div style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif;line-height:19.5px">Отдел облачных технологий 1С-Рарус</div><div style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif;line-height:19.5px">Тел. +7 (495) 231-20-02 доб.: 15-94</div><div style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif;line-height:19.5px">--</div><div style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif;line-height:19.5px">with best regards,</div><div style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif;line-height:19.5px">Dmitriy Borisov</div><div style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif;line-height:19.5px">1C-Rarus Cloud Services</div><div style="font-family:&quot;helvetica neue&quot;,helvetica,arial,sans-serif;line-height:19.5px">tel.: <span style="font-size:12.8px">+7 (495) 231-20-02 add.: 15-94</span></div></div></div>