[Freeswitch-users] mod_fifo && limit usage

Борисов, Дмитрий / Dmitriy Borisov bordmi at rarus.ru
Wed Feb 8 12:29:47 MSK 2017


New problem with this solution: on real B-leg (not loopback) I don`t see
RING event :( Why?

вт, 7 февр. 2017 г. в 16:06, Борисов, Дмитрий / Dmitriy Borisov <
bordmi at rarus.ru>:

> In second variant limit is not checked because it don`t move throw
> dialplan, it described at
> https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+Limit#mod_dptools:Limit-UsingLimitWithPer-GatewayorPer-UserChannelLimits
> we working with leg-B.
>
> I do it by setting "loopback_bowout=true", but after that I have 4 legs on
> each call picked up from queue
>
> вт, 7 февр. 2017 г. в 15:34, Igor Olhovskiy <igorolhovskiy at gmail.com>:
>
> 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?
>
> Regards, Igor
>
> On 7 февр. 2017 г., 12:29 +0200, Борисов, Дмитрий / Dmitriy Borisov <
> bordmi at rarus.ru>, wrote:
>
> Hi, All!
>
> I have a problem with limiting number of calls to fifo consumer. I have
> next dialplan to apply limits:
>
>  <extension name="call-limit" continue="true">
>      <condition field="${caller_id_number}" expression="^(\d{3})$">
>          <action application="set" data="auto_hunt=true"/>
>          <action application="limit" data="hash 192.168.1.44-lines $1 1"/>
>       </condition>
>   </extension>
>
>  <extension name="call-limit" continue="true">
>      <condition field="destination_number" expression="^(\d{3})$">
>          <action application="set" data="auto_hunt=true"/>
>          <action application="limit" data="hash 192.168.1.44-lines $1 1"/>
>       </condition>
>   </extension>
>
>   <extension name="limit_exceeded">
>       <condition field="destination_number" expression="^limit_exceeded$">
>           <action application="hangup" data="USER_BUSY"/>
>       </condition>
>   </extension>
>
> and next dialplan to register in fifo queue:
>
>  <extension name="Agent Login">
>       <condition field="destination_number" expression="^551$">
>           <action application="answer"/>
>           <action application="set" data="result=${fifo_member(add
> operators
> {fifo_member_wait=nowait,fifo_consumer_exit_key=none}loopback/${user_name}
> 1 10)}"/>
>           <action application="log" data="INFO Add FIFO agent result:
> ${result}"/>
>           <action application="log" data="INFO User Login:${user_name}"/>
>           <action application="sleep" data="1000"/>
>           <action application="hangup"/>
>       </condition>
>   </extension>
>
> In this situation limit is zeroed when loopback channel is hangup (after
> successful bridge). I trying next variant:
>
>  <extension name="Agent Login">
>       <condition field="destination_number" expression="^551$">
>           <action application="answer"/>
>           <action application="set" data="result=${fifo_member(add
> operators
> {fifo_member_wait=nowait,fifo_consumer_exit_key=none}user/${user_name} 1
> 10)}"/>
>           <action application="log" data="INFO Add FIFO agent result:
> ${result}"/>
>           <action application="log" data="INFO User Login:${user_name}"/>
>           <action application="sleep" data="1000"/>
>           <action application="hangup"/>
>       </condition>
>   </extension>
>
> But in this variant limit is not checked and if operator make a outbound
> call, he received incoming call when talking.
>
> How can I limit number of calls on fifo operator line?
> --
> --
> С уважением,
> Борисов Дмитрий
> Отдел облачных технологий 1С-Рарус
> Тел. +7 (495) 231-20-02 <+7%20495%20231-20-02> доб.: 15-94
> --
> with best regards,
> Dmitriy Borisov
> 1C-Rarus Cloud Services
> tel.: +7 (495) 231-20-02 <+7%20495%20231-20-02> add.: 15-94
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
> --
> --
> С уважением,
> Борисов Дмитрий
> Отдел облачных технологий 1С-Рарус
> Тел. +7 (495) 231-20-02 <+7%20495%20231-20-02> доб.: 15-94
> --
> with best regards,
> Dmitriy Borisov
> 1C-Rarus Cloud Services
> tel.: +7 (495) 231-20-02 <+7%20495%20231-20-02> add.: 15-94
>
-- 
--
С уважением,
Борисов Дмитрий
Отдел облачных технологий 1С-Рарус
Тел. +7 (495) 231-20-02 доб.: 15-94
--
with best regards,
Dmitriy Borisov
1C-Rarus Cloud Services
tel.: +7 (495) 231-20-02 add.: 15-94
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170208/b57b189a/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list