Feedback

  • Contents
 

ConferenceObject.create Method

Definition

Creates a conference call. This method has 1 or 2 input parameters, depending upon whether the script will run in Scripter .NET or Interaction Connect. To create a conference in an Interaction Connect script, two interaction id's must be passed to this method. Scripter .NET requires a single interaction ID to be passed.

Creating a conference in Interaction Connect scripts

Syntax

conferenceObject.create(callid1, callid2);

Input Parameters

callid1

Interaction ID of the first party in the conference call.

callid2

Interaction ID of the second party in the conference call.

Example

This example assumes the agent is currently on a dialer interaction, and would like to initiate a conference with their Accounting department by selecting the "Conference Accounting" button.

<input type="button" onclick="conferenceAccounting()">Conference Accounting</input>
<script>
var callObj1 = scripter.createCallObject();
var callObj2 = scripter.createCallObject();
var confObj = scripter.createConferenceObject();
function conferenceAccounting() {
     // Assign the current dialer interaction to callObj1
     callObj1.id = IS_Attr_CallID.value;
     // Specify a callback to be triggered once the call has successfully been placed to the Accounting department.
     callObj2.callObjectInitializedHandler = startConference;
     // Place the call to Accounting
     callObj2.dial("1234");
}
function startConference() {
     // Start the conference between the customer and accounting by providing the interaction id for each of the calls.
     confObj.create(callObj1.id, callObj2.id);
}
</script>

Creating a conference in Scripter .NET scripts

Syntax

ConferenceObject.create(CallObject);

Prototype

ConferenceObject.create(
  [in] CallObject CallObject
)

Input Parameters

CallObject

The call object to create the conference around. If the call object's id is –1, then an empty conference will be created.

Return Values

None.

Example

function CreateConference()
{
  scripter.callObject.dial("5007", false);
  alert("Click OK to dial second number");
  scripter.conferenceObject.create(scripter.callobject);
  var objCall2 = scripter.createCallObject();
  objCall2.dial("555-1212", false);
  alert("Click OK to join conference.");
  scripter.conferenceObject.add(objCall2);
}