Adding ENUM Query for LNP to Routing Script
Applies to: SBC 3.0, 3.1
This article describes how to integrate a routing script filter that sends ENUM queries for Local Number Portability, and enables ENUM name resolution support on ProSBC.
ProSBC Configuration
This section provides ProSBC configuration for the solution.
Install dnsruby gem
1. Automatic Installation
gem install dnsruby -v1.54 tbtoolpack stop tbtoolpack start
2. Manual Installation
Download the gem from https://rubygems.org/downloads/dnsruby-1.54.gem
Upload to SBC with sFTP
gem install --force --local dnsruby -v1.54 tbtoolpack stop tbtoolpack start
Configure Routing Script
1. Enable routing script
Gateway->Use script
2. Load routing scripts
Gateway->Routes->Routing Script->Import Script File
File->naptr_called_replacement.rb
ScriptType->Filter
Load on startup->checked
3. Adding ENUM script to main script
Gateway->Routes->Routing Script->simple_routing_sbc.rb [Edit]
Three things need to be added.
At the start of the script:
In the main class:
Click here to download naptr_called_replacement.rb Routing Script
Modifying ENUM Script
To set ENUM server IP in the script modify the following script parameter in the naptr_called_replacement.rb:
To set the Domain Name for ENUM queries, change the following parameter in the naptr_called_replacement.rb:
3. In the answer check the Service and update the script. Service can be returned in the following and other formats; Service: E2U+SIP, Service: E2U+sip, Service: SIP+E2U, Service: sip+E2U and others
In the answer, ENUM server can return "." or "@" or any other character in the regex after the number; if it is "." params[:call][:called] = tb_naptr_query("#{naptr_called}.#{$domain}", params)
if it is "@" params[:call][:called] = tb_naptr_query("#{naptr_called}@#{$domain}", params)
Last updated
Was this helpful?

