Call Server Configuration

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;

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

//Reject aliases that aren't the right length; otherwise accept.

//IF REG_SITE_COUNTRY_CODE = 1

//AND IF REG_SITE_AREA_CODE = 303

//AND IF REG_SITE_DIGITS = 4

//AND IF EP_H323_DIALEDDIGITS_ALIAS[0].length()!= 8

//return NONCOMPLIANT;

//

var CCAndAC = REG_SITE_COUNTRY_CODE + REG_SITE_AREA_CODE; var DDlength = EP_H323_DIALEDDIGITS_ALIAS[0].length() ;

var SumDigits = parseInt(CCAndAC.length) + parseInt(REG_SITE_DIGITS);

Polycom, Inc.

269

Page 269
Image 269
Polycom 3725-76302-001O manual If EPH323DIALEDDIGITSALIAS0.length!= Return Noncompliant