Toolpack:Enable Lawful Interception in Routing Script B
From TBwiki
(Difference between revisions)
(New 2.8 article) |
|||
(5 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{DISPLAYTITLE:Enabling Lawful Interception in a Routing Script}} | {{DISPLAYTITLE:Enabling Lawful Interception in a Routing Script}} | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | |rowspan="3"|This article applies to: | ||
+ | |'''Product''' | ||
+ | |'''Version''' | ||
+ | |- | ||
+ | |Tmedia | ||
+ | |2.8, 2.9, 2.10, 3.0, 3.2 | ||
+ | |- | ||
+ | |SBC | ||
+ | |3.0, 3.1 | ||
+ | |} | ||
1- Click '''Routing script''' in the navigation panel. | 1- Click '''Routing script''' in the navigation panel. | ||
Line 11: | Line 22: | ||
[[Image:ImportRoutingScript_0.png]] | [[Image:ImportRoutingScript_0.png]] | ||
− | 3- The Lawful Intercept filter is activated | + | 3- The Lawful Intercept filter is activated as follows: |
− | * | + | * Include the 'Lawful intercept' module in your routing script: '''''require 'base_routing'''''' |
* Include the LawfulIntercept class: '''''include LawfulIntercept''''' | * Include the LawfulIntercept class: '''''include LawfulIntercept''''' | ||
− | * | + | * Add the Lawful Intercept "after_filter" to your script: '''''after_filter :method => :enable_lawful_intercept''''' |
==== Script example ==== | ==== Script example ==== |
Latest revision as of 14:19, 10 December 2020
This article applies to: | Product | Version |
Tmedia | 2.8, 2.9, 2.10, 3.0, 3.2 | |
SBC | 3.0, 3.1 |
1- Click Routing script in the navigation panel.
2- Edit your main script
3- The Lawful Intercept filter is activated as follows:
- Include the 'Lawful intercept' module in your routing script: require 'base_routing'
- Include the LawfulIntercept class: include LawfulIntercept
- Add the Lawful Intercept "after_filter" to your script: after_filter :method => :enable_lawful_intercept
Script example
require 'base_routing' require 'lawful_intercept' # <- Add this line here class SimpleRouting < BaseRouting include LawfulIntercept # <- Add this line here route_match :call_field_name => :called route_match :call_field_name => :calling route_match :call_field_name => :nap route_remap :call_field_name => :called, :route_field_name => :remapped_called route_remap :call_field_name => :calling, :route_field_name => :remapped_calling route_remap :call_field_name => :nap, :route_field_name => :remapped_nap after_filter :method => :enable_lawful_intercept # <- Add this line here end @@routing = SimpleRouting.new def init_routes( routes ) @@routing.init routes end def route( call, nap_list ) @@routing.route call, nap_list end