Polycom RealPresence DMA 7000 System Operation Manual page 262

Table of Contents

Advertisement

// Assumes that all endpoints are registered with their full alias, including
// country and area code.
// sip:5551212@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 == (
{
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;
////////////////////////////////
// A sample script that routes all dial-out calls from a
// whitelist of VMRs to a SIP peer with prefix 11.
// calls will be routed to a SIP peer with prefix 22.
// The getConferenceRoomOrID() function returns a value only when
// the call is a dial-out from a VMR or Lync scheduled conference
// to an endpoint.
var whitelist_vmrs = [
"1000",
"2000",
"3000",
];
var prefix = "22";
Polycom, Inc.
--> sip:14045551212@example.com
parseInt(CALLER_SITE_AREA_CODE.length,10)
+ parseInt(CALLER_SITE_DIGITS,10)))
// Specify list of VMRs; add or remove VMRs from this list.
// Make sure you use the syntax "<vmr number>"<comma>
Call Server Configuration
All other dial-out
262

Advertisement

Table of Contents
loading

Table of Contents