Call Server Configuration

if (DDlength > 0)

{

if (DDlength != SumDigits) return NONCOMPLIANT;

}

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

//Reject aliases that don't start with CC and AC (country code and area code);

//otherwise accept.

//

var CCAndAC = REG_SITE_COUNTRY_CODE + REG_SITE_AREA_CODE;

var DD_CCAndAC = EP_H323_DIALEDDIGITS_ALIAS[0].substring(0,CCAndAC.length);

if (DD_CCAndAC != CCAndAC) return NONCOMPLIANT;

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

//Reject aliases that don't start with AC (area code).

var AC = REG_SITE_AREA_CODE;

var DD_AC = EP_H323_DIALEDDIGITS_ALIAS[0].substring(0,AC.length); var SIP_URI_AC = EP_SIP_TEL_URI_ALIAS.substring(0,AC.length);

if (DD_AC != AC) return NONCOMPLIANT;

if (SIP_URI_AC != AC) return NONCOMPLIANT;

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

//A sample script that implements a whitelist of IP addresses for endpoints

//that can register.

//*** Note this does not take into account IPv6 addressing ***

//

var nparts; var IPstring;

whitelist = new Array(

"10.20.30.40",

// specify exact match IP address using quotes

/192.168.3.*/,

// specify regular expression to match using slashes

"192.168.174.233"

 

);

 

if (EP_IS_IPV4)

 

{

 

nparts = 4;

 

}

 

for (i = 0; i<nparts; i++)

{

if (i == 0)

{

Polycom, Inc.

270

Page 270
Image 270
Polycom 3725-76302-001O manual Polycom, Inc 270