Polycom DMA 7000 System Microscope & Magnifier User Manual


 
DMA Operations Guide Sample Preliminary and Postliminary Scripts
236 Polycom, Inc.
See also:
“Dial Rules” on page 225
“External Gatekeeper” on page 91
“External SIP Peer” on page 96
“External SBC” on page 114
“Sample Preliminary and Postliminary Scripts” on page 236
Sample Preliminary and Postliminary Scripts
A preliminary is an executable script, written in the Javascript language, that
defines processing actions (filtering or transformation) to be applied to a dial
string before the dial rule’s action is performed.
A postliminary is an executable script, written in the Javascript language, that
defines dial string transformations to be applied before querying an external
device (gatekeeper, SIP peer, or SBC).
Table 10-10 Script Debugging dialog box
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.
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.