- Contents
Interaction Scripter Developer's Guide
Conference Call Process JavaScript
// Global flag to indicate whether this is a new or existing conference var CreatedConference = 0; function AddToConference(p_RemoteNum) {
// If this is a new conference if (CreatedConference == 0) {
// Assign the Dialer call to the scripter call object scripter.callObject.id = IS_Attr_CallID.value;
// Reset any existing conference object scripter.conferenceObject.id = -1
// Create the conference with the Dialer call scripter.conferenceObject.create(scripter.callObject);
// Set flag to indicate conference created CreatedConference = 1; } // Reset the scripter call object scripter.callObject.id = -1;
// Dial the third party scripter.callObject.dial(p_RemoteNum, false);
// Prompt to transfer var doConnect = window.confirm("Add party to conference?");
// If no then disconnect third party and end function if (!doConnect) { alert("Disconnecting"); scripter.callObject.disconnect(); return;
// Add third party to conference call} scripter.conferenceObject.add(scripter.callObject); } }