Telcobridges - Session Border Controllers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Script to route the call by otg from the calling parameters

Go down

Script to route the call by otg from the calling parameters Empty Script to route the call by otg from the calling parameters

Post by NicoleTan Tue Dec 19, 2023 12:01 am

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.


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

Back to top Go down

Script to route the call by otg from the calling parameters Empty The filter script

Post by NicoleTan Tue Dec 19, 2023 12:02 am

The filter script
Attachments
Script to route the call by otg from the calling parameters Attachment
route_by_otg.zip route_by_otgYou don't have permission to download attachments.(1 Kb) Downloaded 8 times

NicoleTan

Number of Messages : 18
Point : 38
Registration Date : 2017-11-27

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum