Script to route the call by otg from the calling parameters
Page 1 of 1
Script to route the call by otg from the calling parameters
This script is to take the value from uri_param of From header
Use this value as an otg value to match the configured routes table.
Found the matched Routes and prioritize them
To use these filters:
Added New Route Columns --> In Routes -> Create New Route Column:
otg:
Type attributes: string, Default: blank
Add the following lines to the main script (default main script :simple_routing.rb)
require 'route_by_otg' unless defined?(RoutebyOTG)
include RoutebyOTG
before_filter :method => :route_by_otg
Note: Place the above before_filter line at the top of all filters.
Use this value as an otg value to match the configured routes table.
Found the matched Routes and prioritize them
To use these filters:
Added New Route Columns --> In Routes -> Create New Route Column:
otg:
Type attributes: string, Default: blank
Add the following lines to the main script (default main script :simple_routing.rb)
require 'route_by_otg' unless defined?(RoutebyOTG)
include RoutebyOTG
before_filter :method => :route_by_otg
Note: Place the above before_filter line at the top of all filters.
Last edited by NicoleTan on Tue Dec 19, 2023 12:48 pm; edited 1 time in total
NicoleTan- Number of Messages : 18
Point : 38
Registration Date : 2017-11-27
The filter script
The filter script
- Attachments
NicoleTan- Number of Messages : 18
Point : 38
Registration Date : 2017-11-27
Similar topics
» Route on TGRP with stir shaken and pass all original parameters
» Routing Script to disable route retry
» Script to route on TGRP integrated with C15 and ClearIP
» Script to Set TNS (Transit Network Selection) by Route
» Script - Manipulate called number in the Registered User Route
» Routing Script to disable route retry
» Script to route on TGRP integrated with C15 and ClearIP
» Script to Set TNS (Transit Network Selection) by Route
» Script - Manipulate called number in the Registered User Route
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum