DMA Operations Guide

Registration Policy Scripting

 

 

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

//Reject SIP Registrations

if (!EP_REG_IS_H323) return NONCOMPLIANT;

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

//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);

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;

274

Polycom, Inc.

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