Polycom 7000 manual Script Debugging Dialog for Preliminaries/Postliminaries

Models: 7000

1 437
Download 437 pages 17.13 Kb
Page 258
Image 258

Call Server Configuration

See also:

Dial Rules

External Gatekeeper

External SIP Peer

External H.323 SBC

Add MCU Dialog

Script Debugging Dialog for Preliminaries/Postliminaries

Sample Preliminary and Postliminary Scripts

Script Debugging Dialog for Preliminaries/Postliminaries

The Script Debugging dialog lets you test a Javascript executable script that you’ve added as a preliminary to a dial rule or a postliminary for an external gatekeeper, SIP peer, SBC, or MCU. It lets you specify parameters of a call and the dial string, and see what effect the script has on the dial string.

The following table describes the fields in the Script Debugging dialog.

Field

Description

 

 

Dial string

This is the DIAL_STRING variable in the script, which is initially set to the dial

 

string being evaluated. Enter a dial string to test. Alternatively, provide the

 

entire SIP INVITE message. Then click Execute Script.

 

Note: For SIP, the script should always specify the schema prefix (sip or sips).

 

For instance:

 

DIAL_STRING = "sip:xxx@10.33.120.58"

Caller site

Select a site in order to set the first four caller variables.

 

 

Caller variables

Lists variables that can be used in the script to represent caller alias values.

 

Enter an alias value to test for that variable.

 

 

VMR/Lync Conf ID

This field specifies the return value of the function

 

getConferenceRoomOrID().

 

See Preliminary/Postliminary Scripting for a description of the

 

getConferenceRoomOrID() function.

 

If the script simulates a call to a VMR or Lync conference ID or a dial-in call,

 

this field is blank.

 

 

Final result

Displays the outcome of running the script.

 

For a dial rule preliminary, if the script rejected the dial string (skipping the dial

 

rule action and passing it on to the next dial rule), a message tells you so.

 

Otherwise, the transformed dial string is displayed.

 

 

Script output

Displays any output produced by the script (e.g., println statements).

Output SIP headers

For an external SIP peer’s postliminary, displays the headers produced by the

 

script.

 

 

Polycom, Inc.

258

Page 258
Image 258
Polycom 7000 manual Script Debugging Dialog for Preliminaries/Postliminaries