<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 &lt;bordmi@rarus.ru&gt;, 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 />
&#160;&lt;extension name="call-limit" continue="true"&gt;<br />
&#160;&#160;&#160;&#160; &lt;condition field="${caller_id_number}" expression="^(\d{3})$"&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="set" data="auto_hunt=true"/&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="limit" data="hash 192.168.1.44-lines $1 1"/&gt;<br />
&#160;&#160;&#160;&#160;&#160; &lt;/condition&gt;<br />
&#160; &lt;/extension&gt;<br />
<br />
&#160;&lt;extension name="call-limit" continue="true"&gt;<br />
&#160;&#160;&#160;&#160; &lt;condition field="destination_number" expression="^(\d{3})$"&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="set" data="auto_hunt=true"/&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="limit" data="hash 192.168.1.44-lines $1 1"/&gt;<br />
&#160;&#160;&#160;&#160;&#160; &lt;/condition&gt;<br />
&#160; &lt;/extension&gt;<br />
<br />
&#160; &lt;extension name="limit_exceeded"&gt;<br />
&#160;&#160;&#160;&#160;&#160; &lt;condition field="destination_number" expression="^limit_exceeded$"&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="hangup" data="USER_BUSY"/&gt;<br />
&#160;&#160;&#160;&#160;&#160; &lt;/condition&gt;<br />
&#160; &lt;/extension&gt;<br />
<br /></div>
and next dialplan to register in fifo queue:<br />
<br />
&#160;&lt;extension name="Agent Login"&gt;<br />
&#160;&#160;&#160;&#160;&#160; &lt;condition field="destination_number" expression="^551$"&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="answer"/&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="set" data="result=${fifo_member(add operators {fifo_member_wait=nowait,fifo_consumer_exit_key=none}loopback/${user_name} 1 10)}"/&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="log" data="INFO Add FIFO agent result: ${result}"/&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="log" data="INFO User Login:${user_name}"/&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="sleep" data="1000"/&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="hangup"/&gt;<br />
&#160;&#160;&#160;&#160;&#160; &lt;/condition&gt;<br />
&#160; &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 />
&#160;&lt;extension name="Agent Login"&gt;<br />
&#160;&#160;&#160;&#160;&#160; &lt;condition field="destination_number" expression="^551$"&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="answer"/&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="set" data="result=${fifo_member(add operators {fifo_member_wait=nowait,fifo_consumer_exit_key=none}user/${user_name} 1 10)}"/&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="log" data="INFO Add FIFO agent result: ${result}"/&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="log" data="INFO User Login:${user_name}"/&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="sleep" data="1000"/&gt;<br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action application="hangup"/&gt;<br />
&#160;&#160;&#160;&#160;&#160; &lt;/condition&gt;<br />
&#160; &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.:&#160;<span style="font-size:12.8px">+7 (495) 231-20-02&#160;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>