TRANSFERTELEPHONYTOPORT
TRANSFERTELEPHONYTOPORT(nPortId As Integer, nTimeoutMs As Integer) As Integer
Transfer the current call to a call placed on hold.
The transfer is done by the telephony equipment. The on hold ports can be listed by the ENUMONHOLDPORT function.
When the transfer is done, the port and the script are disconnected.
The <nPortId> parameter gives the transfer destination port identifier.
The parameter <nTimeoutMs> sets the maximum delay before port and script disconnection.
The function returns -1 if the port is disconnected before transfer, 1 for a successful transfer, 0 if the transfer fails. If the transfer fails, the function returns 0 after the timeout.