Skip to main content
Version: v4 (Stable)

COMPLETETRANSFER

COMPLETETRANSFER(nTimeout As Integer[, bAccept As Boolean]) As Integer

With this function, a call transfer can be completed or refused. Only available for telephony transfer.

When the transfer is done, the port and the script are disconnected.

The <nTimeout> parameter in milliseconds sets the time to wait before the transfer is completed.

The parameter <bAccept> (TRUE by default) is used to accept or refuse the transfer. When refused (<bAccept> set to FALSE), the script remains active and the port is connected.

If the transfer fails, the function returns 0 and the script is still active. When the transfer is refused, the function returns 1 and the script is active.

If the port is disconnected, the function returns -1. If the transfer is not started (the second call is not answered), the function returns 2. Before calling this function, you must use the GETTRANSFERSTATUS one.