LCR Priority Routing
Page 1 of 1
LCR Priority Routing
Hello,
Can you provide all of the documentation in setting a Least Cost Routing, please?
I actually found this https://docs.telcobridges.com/tbwiki/Tmedia_Routing
Can you provide all of the documentation in setting a Least Cost Routing, please?
I actually found this https://docs.telcobridges.com/tbwiki/Tmedia_Routing
Guest- Guest
Re: LCR Priority Routing
Hi,
The link below is correct,
https://docs.telcobridges.com/tbwiki/Tmedia_Routing
further, you can find the routing script, least_cost_routing.rb,
under the ‘main script’ section at web portal -> routing scripts, with comments, and script to do it.
The link below is correct,
https://docs.telcobridges.com/tbwiki/Tmedia_Routing
further, you can find the routing script, least_cost_routing.rb,
under the ‘main script’ section at web portal -> routing scripts, with comments, and script to do it.
Guest- Guest
Re: LCR Priority Routing
Hello,
Thanks for your response.
I did look at the simple lease cost routing script in the main script. I also see this
Least Cost Routing (least_cost_routing.rb): This script routes calls according to the cost values (which may depend on the time) of the routes. This is useful for cases when a route's popularity (cost) depends on the time of the day. This is done by adding different columns to the static routing tables (for example [:cost_0_6]) and filling them up with values for each route.
Not 100% sure what I need to do to use that script. Do you have detailed instruction?
thanks
Thanks for your response.
I did look at the simple lease cost routing script in the main script. I also see this
Least Cost Routing (least_cost_routing.rb): This script routes calls according to the cost values (which may depend on the time) of the routes. This is useful for cases when a route's popularity (cost) depends on the time of the day. This is done by adding different columns to the static routing tables (for example [:cost_0_6]) and filling them up with values for each route.
Not 100% sure what I need to do to use that script. Do you have detailed instruction?
thanks
Guest- Guest
Re: LCR Priority Routing
Hi,
From here,
# A sorting method for route cost. It will order routes giving priority to routes
# who's cost is lower. Three dynamic route attributes are required:
#
# * <tt>cost_0_6</tt>: Cost of the route between 0-6 o'clock.
# * <tt>cost_7_9</tt>: Cost of the route between 7-9 o'clock.
# * <tt>cost</tt>: Cost of the route for all other time.
#
def order_by_cost( routes, nap_list )
sorted_routes = routes.sort do | route_a, route_b |
case Time.now.hour
when 0..6
route_a[:cost_0_6].to_i <=> route_b[:cost_0_6].to_i
when 7..9
route_a[:cost_7_9].to_i <=> route_b[:cost_7_9].to_i
else
route_a[:cost].to_i <=> route_b[:cost].to_i
end
end
it will give priority to routes based on the time of the day when routing taking place.
So, three dynamic routes should contain values and comparing the values, and prioritize after...
0 – 6 hr, 7-9 hr, and the reset of hr.
From here,
# A sorting method for route cost. It will order routes giving priority to routes
# who's cost is lower. Three dynamic route attributes are required:
#
# * <tt>cost_0_6</tt>: Cost of the route between 0-6 o'clock.
# * <tt>cost_7_9</tt>: Cost of the route between 7-9 o'clock.
# * <tt>cost</tt>: Cost of the route for all other time.
#
def order_by_cost( routes, nap_list )
sorted_routes = routes.sort do | route_a, route_b |
case Time.now.hour
when 0..6
route_a[:cost_0_6].to_i <=> route_b[:cost_0_6].to_i
when 7..9
route_a[:cost_7_9].to_i <=> route_b[:cost_7_9].to_i
else
route_a[:cost].to_i <=> route_b[:cost].to_i
end
end
it will give priority to routes based on the time of the day when routing taking place.
So, three dynamic routes should contain values and comparing the values, and prioritize after...
0 – 6 hr, 7-9 hr, and the reset of hr.
Guest- Guest
Re: LCR Priority Routing
Hello,
So this LCR is defined using time of day?
We have a rate deck and I’d like to use the rate deck to determine the route for a particular call.
Would that be a professional service?
So this LCR is defined using time of day?
We have a rate deck and I’d like to use the rate deck to determine the route for a particular call.
Would that be a professional service?
Guest- Guest
Re: LCR Priority Routing
Hi,
LCR is giving priority to the routes based on the cost associated with the routes, at a certain time of the day, when using the routes.
After, the system will know which route to use first when seeing priority.
For routing script development, normally, it is a professional service.
Perhaps, if you could provide more details of the requirement, and we can see the scope, and whether we have some sample scripts, and you could modify and adjust at your side.
LCR is giving priority to the routes based on the cost associated with the routes, at a certain time of the day, when using the routes.
After, the system will know which route to use first when seeing priority.
For routing script development, normally, it is a professional service.
Perhaps, if you could provide more details of the requirement, and we can see the scope, and whether we have some sample scripts, and you could modify and adjust at your side.
Guest- Guest
Re: LCR Priority Routing
Hello,
So basically the requirement is this.
I have a CSV deck rate for each Carrier(NAPS). So based on the cost of the called number, I want the system to refer to the deck rate and determine the route.
Based on my understanding of your implementation, the cost is associated based on what?
So basically the requirement is this.
I have a CSV deck rate for each Carrier(NAPS). So based on the cost of the called number, I want the system to refer to the deck rate and determine the route.
Based on my understanding of your implementation, the cost is associated based on what?
Guest- Guest
Re: LCR Priority Routing
Hi,
From that sample script, the cost is based on the time of the day as seen in the script.
With your requirement, professional service would be required, for routing script development and we can help to work on this development with you. Would you be considering this?
From that sample script, the cost is based on the time of the day as seen in the script.
With your requirement, professional service would be required, for routing script development and we can help to work on this development with you. Would you be considering this?
Guest- Guest
Similar topics
» Question about route priority and failover
» MS Teams Routing
» SIP - Domain Routing
» Internal 3cx to 3cx routing
» IP routing question
» MS Teams Routing
» SIP - Domain Routing
» Internal 3cx to 3cx routing
» IP routing question
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum