@transferTarget::getConnectionStatus
Returns the status of the transfer.
Syntax:
@transferTarget::getConnectionStatus()
Parameters:
None
Returns:
(String) transferResult: the status of the transfer. Possible values
are:
- SUCCESS: the connection was successful; the transfer
was connected to a voice or a machine.
- NO_LINE: the connection was unsuccessful; unable
to obtain the required appearances for the SIP transfer (out of capacity
based on licenses or Company quota)
- NOT_IMPLEMENT: the connection could not be implemented
(method is not available for PTSN lines)
- ERROR: unable to initiate the session to the target
via SIP due to session layer failures (e.g., one party does not support
REFER method)
- NO_ANSWER: the connection could not be established
as the target did not answer
- LINE_BUSY: connection could not be established
as the target returned a busy signal
Example:
@transferTarget = @phone::startAttendedTransfer("433")
$transferConnected = @transferTarget::getConnectionStatus()
IF ($transferConnected == "SUCCESS")
wait(10)
$result = @phone::endAttendedTransfer()
IF ($result == "SUCCESS")
exit
ELSE
@phone::play("phrase", "Sorry,
could not reach the other party")
ENDIF
ELSE
@phone::play("phrase", "Sorry, could
not reach the other party")
# Go back and replay menu options other than transfer
ENDIF