beautypg.com

Making decisions based on addresses, Address-switch – TANDBERG Gatekeeper User Manual

Page 54

background image

TANDBERG Gatekeeper User Guide

Page 54 of 105

13.2.

Making Decisions Based on Addresses

13.2.1.

address-switch

The

address-switch

node allows the script to run different actions based on the source or

destination aliases of the call. The

address-switch

specifies which fields to match and then a list of

address nodes contains the possible matches and their associated actions.

The supported attributes on an

address-switch

and their interpretation are as follows:

field

origin

Match against the source aliases

destination

Match against the destination aliases

original-destination

Match against the destination aliases

If the selected field contains multiple aliases then the Gatekeeper will attempt to match each address

node with all of the aliases before proceeding to the next address node i.e. an address node matches if

it matches any alias.

subfield

The following table gives the definition of subfields for each alias type. If a subfield is not specified for

the alias type being matched then the

not-present

action will be taken.

address-type

For all alias types the address-type subfield is the string

h323

user

For URI aliases this selects the username part. For H.323 IDs it is the entire ID

and for E.164 numbers it is the entire number.

host

For URI aliases this selects the domain name part. If the alias is an IP address

then this subfield is the complete address in dotted decimal form.

port

For IP addresses this is the port number in decimal.

tel

For E.164 numbers this selects the entire string of digits.

alias-type

Gives a string representation of the type of alias. The type is inferred from the

format of the alias. Possible types are:

Address Type

Result

URI

url-ID

H.323 ID

h323-ID

Dialed Digits

dialedDigits

display

Not defined for any alias types