[ASTPPCOM-135] LCR ignore duplicate trunk Created: 20/Oct/16  Updated: 01/Apr/21  Resolved: 01/Apr/21

Status: Done
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature
Reporter: Neurotec Tecnologia S.A.S (Inactive) Assignee: Samir Doshi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

If i have multiple outbound route for the same trunk, it duplicate the bridge

example
PATTERN|TRUNK
^5742._|1
^574._|1
when i call this generate a two bridges for the same trunk, this generate a big delay before get the next valid gateway.
this must be ignore and build one bridge for trunk within the least cost



 Comments   
Comment by Samir Doshi [ 24/Oct/16 ]

Thanks for important contribution and its true it will reduce the delay. I checked your patch code and found you are executing one additional look to ignore duplicate trunk but I would suggest you to do that in astpp/scripts/astpp.dialplan.lua where its executing for loop for termination rates.

Code : for termination_key,termination_value in pairs(termination_rates) do
Line : 344

You will get all require variables in termination_rates variable and based on that you can put the condition.

This way you can avoid additional for loop which can impact on performance and logic will be implemented.

Generated at Sat Feb 10 07:14:27 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.