Knowledgebase

 
 
Knowledgebase Article
Knowledgebase > Unified Communications > SmartNode > SmartMedia > SN10K


SN10k - called number routing based on SIP Request URI (RURI)
Article Id #: 443

By default SN10k uses the SIP From: Header value in :called routing script variable. In most cases this is the standard way SIP Soft Switches handle called number routing. From time to time however the requirement is to use data provided in the user-info part of Request URI Header (RURI). Here is how to achieve this.

* Assumption is, you are using SmartMedia 2.7 or 2.8 branch
** Another assumpton is that you have no custom modifications introduced to the routing process. If this isn't true you would need to ensure the directives in point 5 are deployed in the right order

1. Go to:
'Menu -> Gateway -> Routes -> Routing Script'
- if you haven't created any Scripts yet please go ahead and create a new Routing Script

2. Enter the newly created Routing Script (or the previously used one):
'Menu -> Gateway -> Routes -> Routing Script -> /your script/'

(In case you have already configured the gateway application to use this Routing Sctript, you will be automatically redirected to "Editing script" view)

3. You should find youself in the "Editing script" screen
- locate the "Editing script file" context
- in the "Scripts" table locate the script called "simple_routing" and open it for edition
- ensure that the "Load on startup" parameter is checked 
- press "Save" on the bottom of the screen

4. Next after getting back to the "Editing script file"
- browse the "Example Scripts" list 
- locate script "called_pre_remap_and_ruri.rb"
- open the script for edition and check:
* line 9 contains: "module CalledPreRemapAndRuri"
* line 17 contains: "def called_pre_remap_and_ruri params"

5. Get back to the "simple_routing" script
- implement following changes (line numbers are absolute - they don't contain currently implemented changes)
* between lines 8 and 9 insert: "require 'called_pre_remap_and_ruri'"
* between lines 30 nd 31 insert: "include CalledPreRemapAndRuri"
* after above insert: "before_filter :method => :called_pre_remap_and_ruri"
- press "Save on the bottom of the screen

6. Go to 'Menu -> Gateway'
- make sure that parameter "Use script" is using the name of the Routing Script in which you have been just modyfing "simple_routing" file

 

From now on call[:called] variable will be populated from RURI user-info header.

 

Example script can be found here

User Rating
This answer was helpful This answer was not helpful (8778 vote(s)) 
User Comments  Add a Comment )

 
 
Products
Unified Communications
> VoIP Adapters
> Fax Adapters
> VoIP Gateways
> VoIP Routers
> VoIP IADs - Integrated Access Devices
> Enterprise Session Border Controllers
> Media Gateways
> SS7 Gateways
> Secure End Points (SIP Phones)
> VoIP Public Address & Mass Notification
Software and Cloud
> Virtual SBC | Virtualized SBC
> Virtual Access Router
> VPN Server
> IPv6 IPv4 Converter
> Intelligent Edge Orchestration
> NFV & SDN
Networking & Access
> Ethernet Extenders
> Industrial Switches
> Industrial Ethernet
> Unmanaged Industrial Ethernet Switches
> Managed Industrial Ethernet Switches
> Industrial PoE Switches
> PoE Extenders
> Industrial Network Solutions
> xDSL Products | DSL Modems, DSL VoIP, DSL Router Modems
> Routers
> Dial-Up Access

Sunset Products
 
Datacom Industrial Connectivity
> Industrial PoE Products
> Ethernet Over Fiber
> Line Drivers / Short Range Modems
> Wireline Analog Modems
> Pro AV Live & Media Broadcast Systems
> Fiber Serial DataCom (RS-232/422/530/188C)
> Fiber Telecom (T1/E1/PRI, Analog & ISDN)
> Multiplexers & Sharing Devices
> SFP (Small Form Pluggable) Modules and Kits
> Fiber Alarming, Notification, Relay & Control
> Other Network Extenders
> Defense/Security Fiber Communications
> Baluns
> Surge Protectors & Opto-Isolators
> DataTaps, Testers, Adapters, Rack Kits
> Interface Converters
> Fiber Rack & Enclosure Systems
> Fiber Repeaters & Wavelength Division Multiplexers (WDM)
> Waveguide RF Filters
Media Transport
> Artel Racks & Chassis Infrastructure
> Video Over IP Transport
> Video Over Fiber Transport
> Video, Audio & Data Over Fiber Transport
> Video & Audio Over Fiber Transport
> Ethernet Over Fiber Transport
> Serial DataComm Over Fiber Transport
> Video, Fiber Testers & Splitters
> Wave Division Multiplexers
> Ethernet Switches
> SFP Modules and Kits
 
Sales: [email protected] / +1 301 975 1000
Support: [email protected] / +1 301 975 1007
Join Our Email List
Have Us Contact You
or
Login Connect With Us
X Linkedin Facebook Youtube
 
     Patton LLC Copyright © 2022 All Rights Reserved.

|  Sitemap  |   Legal  |   Privacy Policy  |   Disclaimer  |    X  Facebook  YouTube  LinkedIn  RSS