GETTRANSFERSTATUS
GETTRANSFERSTATUS(time AS INTEGER) AS INTEGER
The function usage depends on the type of transfer:
For the REQFLOWTOFLOWTRANSFER function
Waits for completion of call transfer initiated during the maximum time <time> in milliseconds. If the called user cannot be reached or denied the transfer, the function returns 0. If the transfer is always in progress, the function returns 1. If the called user accepted the transfer (function ACCEPTTRANSFER), the function returns 2. If the line has been hung up, the function returns -1.
For the REQTELEPHONYTRANSFER function
Waits for current call hold completion and answer of the second call during the maximum time <time> in milliseconds. If the called user cannot be reached, the function returns 0. If the transfer is always in progress, the function returns 1. If the called user has answered, the function returns 2. If the line has been hung up, the function returns -1. When the user has answered the second call, the script is connected to this new call. If the transfer is not an automatic one, it is possible to play message on the new call. Then the COMPLETETRANSFER should be called to proceed with the transfer.
If the transfer failed (the function has returned 0 or 1) the transfer must be stopped with CANCELTRANSFER to be able to play a message again.