<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">You heed to debug why in second variant limit is not checked. And are you sure you call limit app on both inbound and outbound call?</div>
<div name="messageSignatureSection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
Regards, Igor</div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
On 7 февр. 2017 г., 12:29 +0200, Борисов, Дмитрий / Dmitriy Borisov <bordmi@rarus.ru>, wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<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>
_________________________________________________________________________<br />
Professional FreeSWITCH Consulting Services:<br />
consulting@freeswitch.org<br />
http://www.freeswitchsolutions.com<br />
<br />
Official FreeSWITCH Sites<br />
http://www.freeswitch.org<br />
http://confluence.freeswitch.org<br />
http://www.cluecon.com<br />
<br />
FreeSWITCH-users mailing list<br />
FreeSWITCH-users@lists.freeswitch.org<br />
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br />
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br />
http://www.freeswitch.org<br /></blockquote>
</div>
</body>
</html>