Call Server Configuration

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

//SITE BASED NUMERIC NICKNAMES (SIP)

//Allow caller to omit country and area code when calling locally.

//Assumes that country and area codes are set in site topology.

//Assumes that all endpoints are registered with their full alias, including

//country and area code.

//sip:5551212@example.com --> sip:14045551212@example.com

if (DIAL_STRING.toLowerCase().match(/^sip:[^@]*@example\.com/))

{

user = DIAL_STRING.replace(/^sip:([^@]*)@.*/i,"$1"); if (user.length == CALLER_SITE_DIGITS)

{

user = CALLER_SITE_COUNTRY_CODE + CALLER_SITE_AREA_CODE + user;

}

else if (user.length == ( parseInt(CALLER_SITE_AREA_CODE.length,10) + parseInt(CALLER_SITE_DIGITS,10)))

{

user = CALLER_SITE_COUNTRY_CODE + user;

}

DIAL_STRING = "sip:" + user + "@example.com";

}

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

//Limiting calls to a certain numeric dial range.

//(like the range specified Conference Settings screen)

var minGeneratedRoomId = 1000; var maxGeneratedRoomId = 9999;

var number = parseInt(DIAL_STRING.replace(/^sip:([^@]*)@?(.*)/i,"$1"));

if (NaN != number && number > minGeneratedRoomId && number < maxGeneratedRoomId)

{

return;

}

return NEXT_RULE;

See also:

Preliminary/Postliminary Scripting on page 251

Script Debugging Dialog Box for Preliminaries/Postliminaries on page 254

Hunt Groups

A hunt group is a set of endpoints that share an alias or aliases. Hunt groups can be used to define a dial string shared by a group of people, such as a technical support number. When the Polycom RealPresence DMA system Call Server resolves a dial string to the hunt group’s alias, it selects a member of the group and tries to terminate the call to that member.

Polycom, Inc.

258

Page 258
Image 258
Polycom 3725-76302-001O manual Hunt Groups, Site Based Numeric Nicknames SIP