Detecting call loops while not relying on the hop counter
Hello, I have a scenario where FS routes hundreds of calls and loop detection is needed. Adding to that, I can't rely on hop counter being decremented by other network elements. I can use limit in the following fashion: <action application="limit" data="hash loop_test ${caller_id_number}${destination_number} 10 !NORMAL_CIRCUIT_CONGESTION"/> So, whenever I have 10 calls with the same calling and called party number combination, limit will kick-in and break the loop. *Question*: Is this efficient from the perspective of how "limit" and hash back-end work? Once I have a few thousand calls, all having unique "resource" will this become resource hungry? My main concern is that it will create hundreds of hash entries all having the same realm but unique resource. Anyone knows a better solution? Thank you, Victor
A better way to do this is limit this during a period of time, say 5 per second, when calls loop they tend to loop up very quickly On 4/10/13 9:23 PM, "Victor Chukalovskiy" <victor.chukalovskiy@gmail.com> wrote:
Hello,
I have a scenario where FS routes hundreds of calls and loop detection is needed. Adding to that, I can't rely on hop counter being decremented by other network elements. I can use limit in the following fashion:
<action application="limit" data="hash loop_test ${caller_id_number}${destination_number} 10 !NORMAL_CIRCUIT_CONGESTION"/>
So, whenever I have 10 calls with the same calling and called party number combination, limit will kick-in and break the loop.
Question: Is this efficient from the perspective of how "limit" and hash back-end work? Once I have a few thousand calls, all having unique "resource" will this become resource hungry? My main concern is that it will create hundreds of hash entries all having the same realm but unique resource.
Anyone knows a better solution?
Thank you, Victor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch
Yep, makes sense for sure....and how to accomplish that? On 04/10/2013 10:28 PM, Ken Rice wrote:
Re: [Freeswitch-users] Detecting call loops while not relying on the hop counter A better way to do this is limit this during a period of time, say 5 per second, when calls loop they tend to loop up very quickly
On 4/10/13 9:23 PM, "Victor Chukalovskiy" <victor.chukalovskiy@gmail.com> wrote:
Hello,
I have a scenario where FS routes hundreds of calls and loop detection is needed. Adding to that, I can't rely on hop counter being decremented by other network elements. I can use limit in the following fashion:
<action application="limit" data="hash loop_test ${caller_id_number}${destination_number} 10 !NORMAL_CIRCUIT_CONGESTION"/>
So, whenever I have 10 calls with the same calling and called party number combination, limit will kick-in and break the loop.
*Question*: Is this efficient from the perspective of how "limit" and hash back-end work? Once I have a few thousand calls, all having unique "resource" will this become resource hungry? My main concern is that it will create hundreds of hash entries all having the same realm but unique resource.
Anyone knows a better solution?
Thank you, Victor
------------------------------------------------------------------------ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken _http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org _irc.freenode.net #freeswitch
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Ken or anyone else, do you know how to set limit for 5 seconds only? Sorry for the double-post. On 13-04-10 10:28 PM, Ken Rice wrote:
Re: [Freeswitch-users] Detecting call loops while not relying on the hop counter A better way to do this is limit this during a period of time, say 5 per second, when calls loop they tend to loop up very quickly
On 4/10/13 9:23 PM, "Victor Chukalovskiy" <victor.chukalovskiy@gmail.com> wrote:
Hello,
I have a scenario where FS routes hundreds of calls and loop detection is needed. Adding to that, I can't rely on hop counter being decremented by other network elements. I can use limit in the following fashion:
<action application="limit" data="hash loop_test ${caller_id_number}${destination_number} 10 !NORMAL_CIRCUIT_CONGESTION"/>
So, whenever I have 10 calls with the same calling and called party number combination, limit will kick-in and break the loop.
*Question*: Is this efficient from the perspective of how "limit" and hash back-end work? Once I have a few thousand calls, all having unique "resource" will this become resource hungry? My main concern is that it will create hundreds of hash entries all having the same realm but unique resource.
Anyone knows a better solution?
Thank you, Victor
------------------------------------------------------------------------ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken _http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org _irc.freenode.net #freeswitch
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
example: http://wiki.freeswitch.org/wiki/Limit#Rate_Limiting_calls_.2F_Anti_SPIT -Avi Marcus BestFone On Thu, Apr 11, 2013 at 8:28 PM, Victor Chukalovskiy < victor.chukalovskiy@gmail.com> wrote:
Ken or anyone else, do you know how to set limit for 5 seconds only?
Sorry for the double-post.
On 13-04-10 10:28 PM, Ken Rice wrote:
A better way to do this is limit this during a period of time, say 5 per second, when calls loop they tend to loop up very quickly
On 4/10/13 9:23 PM, "Victor Chukalovskiy" <victor.chukalovskiy@gmail.com> wrote:
Hello,
I have a scenario where FS routes hundreds of calls and loop detection is needed. Adding to that, I can't rely on hop counter being decremented by other network elements. I can use limit in the following fashion:
<action application="limit" data="hash loop_test ${caller_id_number}${destination_number} 10 !NORMAL_CIRCUIT_CONGESTION"/>
So, whenever I have 10 calls with the same calling and called party number combination, limit will kick-in and break the loop.
*Question*: Is this efficient from the perspective of how "limit" and hash back-end work? Once I have a few thousand calls, all having unique "resource" will this become resource hungry? My main concern is that it will create hundreds of hash entries all having the same realm but unique resource.
Anyone knows a better solution?
Thank you, Victor
------------------------------ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken *http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org *irc.freenode.net #freeswitch
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Great, thanks...I missed that part of the WiKi Does it mean that after specified time interval FS will purge expired records from the hash table? On 13-04-11 02:30 PM, Avi Marcus wrote:
example:
http://wiki.freeswitch.org/wiki/Limit#Rate_Limiting_calls_.2F_Anti_SPIT
-Avi Marcus BestFone
On Thu, Apr 11, 2013 at 8:28 PM, Victor Chukalovskiy <victor.chukalovskiy@gmail.com <mailto:victor.chukalovskiy@gmail.com>> wrote:
Ken or anyone else, do you know how to set limit for 5 seconds only?
Sorry for the double-post.
On 13-04-10 10:28 PM, Ken Rice wrote:
A better way to do this is limit this during a period of time, say 5 per second, when calls loop they tend to loop up very quickly
On 4/10/13 9:23 PM, "Victor Chukalovskiy" <victor.chukalovskiy@gmail.com <http://victor.chukalovskiy@gmail.com>> wrote:
Hello,
I have a scenario where FS routes hundreds of calls and loop detection is needed. Adding to that, I can't rely on hop counter being decremented by other network elements. I can use limit in the following fashion:
<action application="limit" data="hash loop_test ${caller_id_number}${destination_number} 10 !NORMAL_CIRCUIT_CONGESTION"/>
So, whenever I have 10 calls with the same calling and called party number combination, limit will kick-in and break the loop.
*Question*: Is this efficient from the perspective of how "limit" and hash back-end work? Once I have a few thousand calls, all having unique "resource" will this become resource hungry? My main concern is that it will create hundreds of hash entries all having the same realm but unique resource.
Anyone knows a better solution?
Thank you, Victor
------------------------------------------------------------------------ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <http://consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <http://FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken _http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org _irc.freenode.net <http://irc.freenode.net> #freeswitch
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Avi Marcus
-
Ken Rice
-
Victor Chukalovskiy