Script to Set TNS (Transit Network Selection) by Route
Page 1 of 1
Script to Set TNS (Transit Network Selection) by Route
This script is to set the TNS (Transit Network Selection ) related parameters with the values configured in the Routes.
To use these filters:
Added 2 New Route Columns -- In Routes -> Create New Route Column:
tns_value:
Type attributes: string, Default: blank
nid_plan:
Type attributes: string, Default: blank
Add the following lines to the main script (default main script :simple_routing.rb)
require 'set_tns_by_route' unless defined?(SETTNSBYROUTE)
include SETTNSBYROUTE
route_remap :method => :set_tns_by_route (Note: make it as a route_remap filter)
See more detail about Transit Network Selection here:
https://docs.telcobridges.com/Routing_script_tutorial:Mini_Development_Guide
To use these filters:
Added 2 New Route Columns -- In Routes -> Create New Route Column:
tns_value:
Type attributes: string, Default: blank
nid_plan:
Type attributes: string, Default: blank
Add the following lines to the main script (default main script :simple_routing.rb)
require 'set_tns_by_route' unless defined?(SETTNSBYROUTE)
include SETTNSBYROUTE
route_remap :method => :set_tns_by_route (Note: make it as a route_remap filter)
See more detail about Transit Network Selection here:
https://docs.telcobridges.com/Routing_script_tutorial:Mini_Development_Guide
- Attachments
Last edited by NicoleTan on Tue Dec 19, 2023 12:50 pm; edited 1 time in total
NicoleTan- Number of Messages : 18
Point : 38
Registration Date : 2017-11-27
NicoleTan- Number of Messages : 18
Point : 38
Registration Date : 2017-11-27
Similar topics
» Script to route on TGRP integrated with C15 and ClearIP
» Routing Script to disable route retry
» Script to route the call by otg from the calling parameters
» Script - Manipulate called number in the Registered User Route
» Need to remove the Route header on invite and register, but don't know how to implement the script.
» Routing Script to disable route retry
» Script to route the call by otg from the calling parameters
» Script - Manipulate called number in the Registered User Route
» Need to remove the Route header on invite and register, but don't know how to implement the script.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum