- Contents
Interaction Scripter Developer's Guide
Create Conference Call and add parties
The JavaScript below demonstrates how to create a conference call and add parties to the conference call.
<html> <head> <title>Conference Example</title> <script type="text/javascript" defer> function AddToConference(RemoteNumber) { // contact the specified party // this will automatically put current call on hold scripter.callObject.id = -1; scripter.callObject.dial(RemoteNumber, false); var doConnect = window.confirm("Add party to conference?"); if (doConnect != "yes") { // do not add the party to the conference scripter.callObject.disconnect(); return; } // create or add to a conference if (scripter.conferenceObject.id == 0xffffffff) { scripter.conferenceObject.create(scripter.callObject); } else { scripter.conferenceObject.add(scripter.callObject); } } </script> </head>
<body> <p><input type=button value="Add to Conference" onclick=AddToConference(RemNum.value)> <input id=RemNum></p> </body> </html>