- Contents
Interaction Scripter Developer's Guide
scripter.createConferenceObject Method
Definition
This method creates a new ConferenceObject. Once this object is created, you must call the Add method with Call Ids to add specific calls to the conference.
Syntax
var objConf = scripter.createConferenceObject();
Prototype
scripter.createConferenceObject([out,retval]
ConferenceObject);
Input Parameters
None.
Return Values
- ConferenceObject
-
The new ConferenceObject that was created.
Example
<html> <head> <script language="javascript"> function TestConference() {
// Create the callobject var CallObj2 = scripter.createCallObject();
// assign the id of the object to the current Campaign Call object CallObj2.id = IS_ATTR_CallID.value;
// Create the call object to dial out var CallObj1 = scripter.createCallObject()
// Dial third party number CallObj1.Dial("5551212", false);
var doConnect = window.confirm("Add party to conference?"); if (!doConnect) { // do not add the party to the conference CallObj1.Disconnect(); // pick up scripter call CallObj2.PickUp(); return; } // create conference object var ConfObj = scripter.createConferenceObject();
// once call is added, conference object is valid CallObj1.pickup(); ConfObj.Create(CallObj1);
// add second call object CallObj2.pickup(); ConfObj.add(CallObj2); } </script> </head>
<body> <table> <tr> <td><input type=button onclick="Conference();" value="Conference"></input></td> <td>Phone 1</td> <td><input name="Phone1" id="Phone1"></input></td>
</tr> </table> </body>
</html>