<div dir="ltr">New problem with this solution: on real B-leg (not loopback) I don`t see RING event :( Why?<br></div><br><div class="gmail_quote"><div dir="ltr">вт, 7 февр. 2017 г. в 16:06, Борисов, Дмитрий / Dmitriy Borisov <<a href="mailto:bordmi@rarus.ru">bordmi@rarus.ru</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg">In second variant limit is not checked because it don`t move throw dialplan, it described at <a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+Limit#mod_dptools:Limit-UsingLimitWithPer-GatewayorPer-UserChannelLimits" class="gmail_msg" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+Limit#mod_dptools:Limit-UsingLimitWithPer-GatewayorPer-UserChannelLimits</a> we working with leg-B.<br class="gmail_msg"><br class="gmail_msg"></div>I do it by setting "loopback_bowout=true", but after that I have 4 legs on each call picked up from queue<br class="gmail_msg"></div><br class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">вт, 7 февр. 2017 г. в 15:34, Igor Olhovskiy <<a href="mailto:igorolhovskiy@gmail.com" class="gmail_msg" target="_blank">igorolhovskiy@gmail.com</a>>:<br class="gmail_msg"></div></div><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_msg">
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif" class="gmail_msg">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" class="gmail_msg"><br class="gmail_msg">
Regards, Igor</div>
<div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif" class="gmail_msg"></div></div><div class="gmail_msg"><div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif" class="gmail_msg"><br class="gmail_msg">
On 7 февр. 2017 г., 12:29 +0200, Борисов, Дмитрий / Dmitriy Borisov <<a href="mailto:bordmi@rarus.ru" class="gmail_msg" target="_blank">bordmi@rarus.ru</a>>, wrote:<br class="gmail_msg">
</div></div><div class="gmail_msg"><div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif" class="gmail_msg"><blockquote type="cite" style="margin:5px 5px;padding-left:10px;border-left:thin solid #1abc9c" class="gmail_msg">
<div dir="ltr" class="gmail_msg">
<div class="gmail_msg">
<div class="gmail_msg">
<div class="gmail_msg">
<div class="gmail_msg">
<div class="gmail_msg">Hi, All!<br class="gmail_msg">
<br class="gmail_msg"></div>
I have a problem with limiting number of calls to fifo consumer. I have next dialplan to apply limits:<br class="gmail_msg">
<br class="gmail_msg">
<extension name="call-limit" continue="true"><br class="gmail_msg">
<condition field="${caller_id_number}" expression="^(\d{3})$"><br class="gmail_msg">
<action application="set" data="auto_hunt=true"/><br class="gmail_msg">
<action application="limit" data="hash 192.168.1.44-lines $1 1"/><br class="gmail_msg">
</condition><br class="gmail_msg">
</extension><br class="gmail_msg">
<br class="gmail_msg">
<extension name="call-limit" continue="true"><br class="gmail_msg">
<condition field="destination_number" expression="^(\d{3})$"><br class="gmail_msg">
<action application="set" data="auto_hunt=true"/><br class="gmail_msg">
<action application="limit" data="hash 192.168.1.44-lines $1 1"/><br class="gmail_msg">
</condition><br class="gmail_msg">
</extension><br class="gmail_msg">
<br class="gmail_msg">
<extension name="limit_exceeded"><br class="gmail_msg">
<condition field="destination_number" expression="^limit_exceeded$"><br class="gmail_msg">
<action application="hangup" data="USER_BUSY"/><br class="gmail_msg">
</condition><br class="gmail_msg">
</extension><br class="gmail_msg">
<br class="gmail_msg"></div>
and next dialplan to register in fifo queue:<br class="gmail_msg">
<br class="gmail_msg">
<extension name="Agent Login"><br class="gmail_msg">
<condition field="destination_number" expression="^551$"><br class="gmail_msg">
<action application="answer"/><br class="gmail_msg">
<action application="set" data="result=${fifo_member(add operators {fifo_member_wait=nowait,fifo_consumer_exit_key=none}loopback/${user_name} 1 10)}"/><br class="gmail_msg">
<action application="log" data="INFO Add FIFO agent result: ${result}"/><br class="gmail_msg">
<action application="log" data="INFO User Login:${user_name}"/><br class="gmail_msg">
<action application="sleep" data="1000"/><br class="gmail_msg">
<action application="hangup"/><br class="gmail_msg">
</condition><br class="gmail_msg">
</extension><br class="gmail_msg">
<br class="gmail_msg"></div>
In this situation limit is zeroed when loopback channel is hangup (after successful bridge). I trying next variant:<br class="gmail_msg">
<br class="gmail_msg">
<extension name="Agent Login"><br class="gmail_msg">
<condition field="destination_number" expression="^551$"><br class="gmail_msg">
<action application="answer"/><br class="gmail_msg">
<action application="set" data="result=${fifo_member(add operators {fifo_member_wait=nowait,fifo_consumer_exit_key=none}user/${user_name} 1 10)}"/><br class="gmail_msg">
<action application="log" data="INFO Add FIFO agent result: ${result}"/><br class="gmail_msg">
<action application="log" data="INFO User Login:${user_name}"/><br class="gmail_msg">
<action application="sleep" data="1000"/><br class="gmail_msg">
<action application="hangup"/><br class="gmail_msg">
</condition><br class="gmail_msg">
</extension><br class="gmail_msg">
<br class="gmail_msg"></div>
But in this variant limit is not checked and if operator make a outbound call, he received incoming call when talking.<br class="gmail_msg">
<br class="gmail_msg"></div>
How can I limit number of calls on fifo operator line?<br class="gmail_msg"></div>
<div dir="ltr" class="gmail_msg">--<br class="gmail_msg"></div>
<div data-smartmail="gmail_signature" class="gmail_msg">
<div dir="ltr" class="gmail_msg">
<div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">--</div>
<div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">С уважением,</div>
<div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">Борисов Дмитрий</div>
<div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">Отдел облачных технологий 1С-Рарус</div>
<div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">Тел. <a href="tel:+7%20495%20231-20-02" value="+74952312002" class="gmail_msg" target="_blank">+7 (495) 231-20-02</a> доб.: 15-94</div>
<div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">--</div>
<div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">with best regards,</div>
<div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">Dmitriy Borisov</div>
<div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">1C-Rarus Cloud Services</div>
<div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">tel.: <span style="font-size:12.8px" class="gmail_msg"><a href="tel:+7%20495%20231-20-02" value="+74952312002" class="gmail_msg" target="_blank">+7 (495) 231-20-02</a> add.: 15-94</span></div>
</div>
</div></blockquote></div></div><div class="gmail_msg"><div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif" class="gmail_msg"><blockquote type="cite" style="margin:5px 5px;padding-left:10px;border-left:thin solid #1abc9c" class="gmail_msg">
_________________________________________________________________________<br class="gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
<a href="http://www.freeswitchsolutions.com" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
<br class="gmail_msg">
Official FreeSWITCH Sites<br class="gmail_msg">
<a href="http://www.freeswitch.org" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<a href="http://confluence.freeswitch.org" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg">
<a href="http://www.cluecon.com" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
<br class="gmail_msg">
FreeSWITCH-users mailing list<br class="gmail_msg">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg">
<a href="http://www.freeswitch.org" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg"></blockquote>
</div>
</div>
_________________________________________________________________________<br class="gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
<br class="gmail_msg">
Official FreeSWITCH Sites<br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<a href="http://confluence.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg">
<a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
<br class="gmail_msg">
FreeSWITCH-users mailing list<br class="gmail_msg">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a></blockquote></div><div dir="ltr" class="gmail_msg">-- <br class="gmail_msg"></div><div data-smartmail="gmail_signature" class="gmail_msg"><div dir="ltr" class="gmail_msg"><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">--</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">С уважением,</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">Борисов Дмитрий</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">Отдел облачных технологий 1С-Рарус</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">Тел. <a href="tel:+7%20495%20231-20-02" value="+74952312002" class="gmail_msg" target="_blank">+7 (495) 231-20-02</a> доб.: 15-94</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">--</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">with best regards,</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">Dmitriy Borisov</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">1C-Rarus Cloud Services</div><div style="font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:19.5px" class="gmail_msg">tel.: <span style="font-size:12.8px" class="gmail_msg"><a href="tel:+7%20495%20231-20-02" value="+74952312002" class="gmail_msg" target="_blank">+7 (495) 231-20-02</a> add.: 15-94</span></div></div></div></blockquote></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>