Conference Manager Configuration

Sample Virtual Entry Queue Script

Virtual Entry Queue (VEQ) scripts are scripts written in the Javascript language that have access to the DTMF digits entered by callers. The system executes these scripts during VEQ processing, and can change and reject the DTMF digits callers enter. You can use this functionality to strip prefixes entered by a caller or to authorize participants dialing in to VEQs.

VEQ scripts have access to the DTMF_STRING variable.

The sample script below shows how to use the scripting feature to restrict participants calling a specific VEQ to a whitelist of VMRs.

////////////////////////////////

//A sample script that implements a whitelist of VMRs for a VEQ.

//VMRs 1000, 2000, 3000, and any VMR starting with 44 or 76 will

//be allowed.

var whitelist_vmrs = [

"1000", // Specify list of VMRs; add or remove VMRs from this list. "2000", // Make sure you use the syntax "<vmr number>"<comma> "3000",

];

 

 

 

 

var whitelist_patterns =

[

match at the beginning of the string.

"^44",

//

The ^ causes the pattern

"^76"

//

So 441000

will match but

100044 will not.

];

 

 

 

 

////////////////////////////////

//Match against individual VMRs. ACCEPT if any of them matches.

if (0 <= whitelist_vmrs.indexOf(DTMF_STRING))

{

return ACCEPT;

}

////////////////////////////////

//Match against patterns. ACCEPT if any of them matches.

for (i=0; i<whitelist_patterns.length; i++)

{

if (DTMF_STRING.match(whitelist_patterns[i]))

{

return ACCEPT;

}

}

return REJECT;

Polycom, Inc.

225

Page 225
Image 225
Polycom 7000 manual Sample Virtual Entry Queue Script