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

Step

Command

Purpose

 

 

 

 

 

1

node(ctx-cs)[switch]#mapping-

Creates a mapping table that examines the called-party

 

table called-e164 to called-uri

number and sets the called-party URI (To-URI).

 

name

 

 

 

 

2

node(map-tab)[name]#map (.+) to

If the called-party number exists (at least one digit) the

 

sip:user_\1@example.com

called-party URI is set to user_<called-e164>@exam-

 

 

ple.com

 

 

 

3

node(map-tab)[name]#map

If the called-party number does not exist (calls that don’t

 

default to

match to the rule of step 2), the called-party URI is set to

 

sip:anonymous@example.com

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

Purpose

 

 

 

 

 

1

node(ctx-cs)[switch]#mapping-

Creates a mapping table that examines the called-party

 

table called-e164 to called-name

number and sets the called-party name.

 

name

 

 

 

 

2

node(map-tab)[name]#map (.%) to

Copies the whole called-party number to the called-

 

\1

party name.

 

 

 

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

488

Page 488
Image 488
Patton electronic SmartNode 4110 Series manual Custom SIP URIs from called-/calling-e164 properties, Other mapping tables