REQFLOWTOFLOWTRANSFER
REQFLOWTOFLOWTRANSFER(nUserid AS INTEGER [, nNumberIndex AS INTEGER [, sRecordFile As String[, sCallerNum As String]]]) AS BOOLEAN
Initiates a call transfer to the user designated by <nUserid>.
This transfer type needs 2 available ports in ALERT: one for the current call and a second for a new outgoing call.
If <nNumberIndex> is not set or null, the new outgoing will use the first vocal call number for the user. Else Alert will use the specified number index (if vocal). This call number must be associated to an outgoing vocal script. With this script, the transfer can be accepted.
The transfer can be accepted (in the outgoing script) with the ACCEPTTRANSFER function. When the transfer is accepted, the 2 port audio flows are connected. The call can be recorded in a file if the optional parameter <sRecordFile> is set (using a full path).
The caller number can be forced, if it is allowed by the PBX. To do that, set the <sCallerNum> parameter with a phone number or a SIP uri, depending on the connection type. When the parameter is set and empty, the outgoing call is an anonymous call.
The function returns TRUE if the call transfer has been initiated.