Call Server Configuration

Variable

Initial value

 

 

REG_SITE_AREA_CODE

Area code of the site where the endpoint is attempting to

 

register.

 

 

REG_SITE_COUNTRY_CODE

Country code of the site where the endpoint is attempting to

 

register.

 

 

REG_SITE_DIGITS

Number of digits in the subscriber number configured for the

 

site where the endpoint is attempting to register.

 

 

REG_SITE_NAME

Site where endpoint is attempting to register.

 

 

REG_SUBNET_IP_ADDRESS

IP address of the subnet where the endpoint is attempting to

 

register. Enter it here in normal dot or colon notation (such as

 

1.2.3.4 for IPv4).

 

In the script, this is represented as an array. If the IP address

 

is IPv4, there are 4 elements in the array. If the IP address is

 

IPv6, there are 8 elements in the array.

 

 

REG_SUBNET_MASK

IP mask of the subnet where the endpoint is attempting to

 

register. Enter it here in normal dot or colon notation (such as

 

1.2.3.4 for IPv4).

 

In the script, this is represented as an array. If the IP address

 

is IPv4, there are 4 elements in the array. If the IP address is

 

IPv6, there are 8 elements in the array.

 

 

See also:

Registration Policy

Script Debugging Dialog for Registration Policy Scripts

When you click Debug this script on the Registration Policy page, the Script Debugging dialog appears, in which you can test your script.

The dialog lets you enter or select test values for the predefined variables (see Registration Policy Scripting for a list of these). Select an Endpoint Site and Subnet to populate the site/subnet-related fields, which are read-only.

The Script Output box displays any output produced by the script when it runs (e.g., println statements and error messages). This output is recorded in the registration history.

The Script Result box displays the return value (COMPLIANT or NONCOMPLIANT) from running the script with the specified test values. If the script assigned a value to the EP_EXCEPTION variable, it also displays that.

Testing your script is an iterative process. Specify test values for the variables used in your script. Then click Run Script to see the results of applying the script using those variable values. Repeat as often as necessary, using different variable values.

If necessary, make changes to your script and then test some more, until you’re satisfied that the script accomplishes what you intended.

Polycom, Inc.

272

Page 272
Image 272
Polycom 7000 manual Script Debugging Dialog for Registration Policy Scripts, Regsitedigits