Feedback

  • Contents
 

CallObject.consultTransfer Method

Definition

Use this method to perform a consult transfer if you need to speak with the recipient before transferring the call. If the intended recipient does not answer the phone, you can resume your conversation with the caller, transfer the call to the intended recipient's voice mail, or transfer the call to another person.

Syntax

CallObject.consultTransfer(pVal)

Prototype

CallObject.consultTransfer(

  [in] String WithCallID

)

Input Parameters

WithCallID

The Call ID to transfer this call to.

Return Values

None.


Example

//* @param remoteNumber is the number to dial for the third party
function ConsultTransfer() {
    // call the remote number
    var CallObject2 = scripter.CreateCallObject();
    scripter.callObject.id = IS_Attr_CallId.value;
    CallObject2.dial(RemoteNumber, false);
    var doConnect = window.confirm("Transfer call?");
    if (doConnect) //the agent selected "OK" in the confirmation box
    {
        // make the transfer
        scripter.callObject.consultTransfer(CallObject2.id);
        scripter.callObject.id = -1; //release the callObject
        location.href = "inboundindex.htm";
    }
}