Patton electronic SmartNode 4110 Series ユーザーズマニュアル

ページ / 664
Call router configuration task list
488
SmartWare Software Configuration Guide 
40 • Call router configuration
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
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
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
Step
Command
Purpose
1
node(ctx-cs)[switch]#mapping-
table called-e164 to called-uri 
name
Creates a mapping table that examines the called-party 
number and sets the called-party URI (To-URI).
2
node(map-tab)[name]#map (.+) to 
sip:user_\1@example.com
If the called-party number exists (at least one digit) the 
called-party URI is set to user_<called-e164>@exam-
ple.com
3
node(map-tab)[name]#map 
default to 
sip:anonymous@example.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
Step
Command
Purpose
1
node(ctx-cs)[switch]#mapping-
table called-e164 to called-name 
name
Creates a mapping table that examines the called-party 
number and sets the called-party name.
2
node(map-tab)[name]#map (.%) to 
\1
Copies the whole called-party number to the called-
party name.