Polycom 7000 User Manual

Page of 437
 
Call Server Configuration
Polycom, Inc. 
273
 
See also: 
Sample Registration Policy Scripts
A registration policy script is an executable script, written in the Javascript language, that defines the criteria 
to be applied to registration requests in order to determine what to do with them. For each request 
evaluated, the script must return COMPLIANT or NONCOMPLIANT. See 
 for more 
information. 
The following sample scripts illustrate some of the ways in which registration requests can be evaluated. 
You can use them as templates or starting points for your scripts. 
///////////////////////////////
// Reject endpoints with the specified problem software version and all  
// SIP registrations. Record an appropriate exception for each case. 
// 
var result = COMPLIANT;
if (EP_VERSION == "1.2.3.4")
{
   EP_EXCEPTION += "Problem version 1.2.3.4 is not allowed\n";
   result = NONCOMPLIANT;
}
if (!EP_REG_IS_H323)
{
   EP_EXCEPTION += "SIP is not allowed\n";
   result = NONCOMPLIANT;
}
return result;
///////////////////////////////
// Reject registration attempts by the SIPVicious SIP auditing tool
// (NOTE: typically this is used when DMA has public internet connectivity
//  or in conjunction with the DMA Guest Port feature)
//
var result = COMPLIANT;
if (EP_REG_IS_SIP && EP_MODEL != null && EP_MODEL.toLowerCase() == "friendly-scanner") 
{  
   EP_EXCEPTION += "SIPVicious is not allowed."; 
   result = NONCOMPLIANT; 

return result;
///////////////////////////////