For the complete documentation index, see llms.txt. This page is also available as Markdown.

Adding NAP Grouping Script

Applies to: Tmedia 2.9, 2.10, 3.0, 3.1

This article describe how to add NAP Grouping script to any Routing scripts.

Script description

This filter is used to dynamically generate routes from a Regex. The trick is to use the NAP names to identify which NAPs are in the same group. The example in the file provides information about "SIP_. "Use instead "/GROUPA_./".

For example:

  • GROUPA_SIP_NAP_10_10_10_10

  • GROUPA_SIP_NAP_10_10_10_11

  • GROUPA_SIP_NAP_10_10_10_12

  • GROUPB_SIP_NAP_10_10_20_20

  • GROUPB_SIP_NAP_10_10_20_21

  • GROUPC_SIP_NAP_10_10_30_30

Then, in your routes, you can use the Route Column "additional_naps" to put /GROUPA_.*/

Add NAP Grouping Scripts in the system

Download this file

Setting up NAP Grouping Scripts

To set up a Filter, the main script needs to be modified. The main script can be either simple_routing.rb, simple_routing_sbc.rb, or any other script.

Go to the routing script section of the Web portal

Three things need to be added. At the start of the script:

In the main class:

The final script will look like this:

Adding New Custom Variable

You must add a custom column to use this script.

Name: additional_naps Type attributes: text '''

Last updated

Was this helpful?