Custom Sip Uris From Called-/Calling-E164 Properties; Other Mapping Tables - Patton electronics SmartNode Series Software Configuration Manual

Software for smartnode series
Hide thumbs Also See for SmartNode Series:
Table of Contents

Advertisement

SmartWare Software Configuration Guide
The input called party number 0778881111 matches the expression (.%) – any character repeated zero or
more times.
The first bracket encloses the last whole called party number: (.%) == (0778881111) -> \1 = 0778881111
The output (calling party number) is built from the first bracket \1.
The calling party number is set to 0778881111.

Custom SIP URIs from called-/calling-e164 properties

The regular expression engine used for mapping-tables and routing-tables in the Call Router can handle not
only handle digits, but whole strings. You can construct custom SIP URIs from call leg properties as called and
calling e.164. See the following examples.
Example 1: Use regular expressions to create mapping tables that map the called-party-e164 number to the
called-party-URI for SIP calls. The following example shows how to build a SIP To-URI from the called-
party number.
Mode: Context CS
Step
Command
1
node(ctx-cs)[switch]#mapping-
table called-e164 to called-uri
name
2
node(map-tab)[name]#map (.+) to
sip:user_\1@example.com
3
node(map-tab)[name]#map
default to
sip:anonymous@example.com
Example 2: Use a mapping table to set the display name field of To-URIs for outgoing SIP calls from the
called-party number of an incoming call. The following example shows how to set the called-party name based
on the called-party number.
Mode: Context CS
Step
Command
1
node(ctx-cs)[switch]#mapping-
table called-e164 to called-name
name
2
node(map-tab)[name]#map (.%) to
\1

Other mapping tables

Example: Mapping table to set the called party number type to international (unconditionally)
Input:called-e164 = 0041998882525; calling-type-of-number = unknown
Result:called-e164 = 0041998882525; calling-type-of-number = international
Call router configuration task list
Creates a mapping table that examines the called-party
number and sets the called-party URI (To-URI).
If the called-party number exists (at least one digit) the
called-party URI is set to user_<called-e164>@exam-
ple.com
If the called-party number does not exist (calls that don't
match to the rule of step 2), the called-party URI is set to
anonymous@example.com
Creates a mapping table that examines the called-party
number and sets the called-party name.
Copies the whole called-party number to the called-
party name.
40 • Call router configuration
Purpose
Purpose
483

Advertisement

Table of Contents
loading

This manual is also suitable for:

Smartware release 5.1

Table of Contents