<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> <extension name="call-limit" continue="true"><br> <condition field="${caller_id_number}" expression="^(\d{3})$"><br> <action application="set" data="auto_hunt=true"/><br> <action application="limit" data="hash 192.168.1.44-lines $1 1"/><br> </condition><br> </extension><br><br> <extension name="call-limit" continue="true"><br> <condition field="destination_number" expression="^(\d{3})$"><br> <action application="set" data="auto_hunt=true"/><br> <action application="limit" data="hash 192.168.1.44-lines $1 1"/><br> </condition><br> </extension><br><br> <extension name="limit_exceeded"><br> <condition field="destination_number" expression="^limit_exceeded$"><br> <action application="hangup" data="USER_BUSY"/><br> </condition><br> </extension><br><br></div>and next dialplan to register in fifo queue:<br><br> <extension name="Agent Login"><br> <condition field="destination_number" expression="^551$"><br> <action application="answer"/><br> <action application="set" data="result=${fifo_member(add operators {fifo_member_wait=nowait,fifo_consumer_exit_key=none}loopback/${user_name} 1 10)}"/><br> <action application="log" data="INFO Add FIFO agent result: ${result}"/><br> <action application="log" data="INFO User Login:${user_name}"/><br> <action application="sleep" data="1000"/><br> <action application="hangup"/><br> </condition><br> </extension><br><br></div>In this situation limit is zeroed when loopback channel is hangup (after successful bridge). I trying next variant:<br><br> <extension name="Agent Login"><br> <condition field="destination_number" expression="^551$"><br> <action application="answer"/><br>
<action application="set" data="result=${fifo_member(add operators
{fifo_member_wait=nowait,fifo_consumer_exit_key=none}user/${user_name}
1 10)}"/><br> <action application="log" data="INFO Add FIFO agent result: ${result}"/><br> <action application="log" data="INFO User Login:${user_name}"/><br> <action application="sleep" data="1000"/><br> <action application="hangup"/><br> </condition><br> </extension>
<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:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px">--</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px">С уважением,</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px">Борисов Дмитрий</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px">Отдел облачных технологий 1С-Рарус</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px">Тел. +7 (495) 231-20-02 доб.: 15-94</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px">--</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px">with best regards,</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px">Dmitriy Borisov</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px">1C-Rarus Cloud Services</div><div style="font-family:"helvetica neue",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>