forwardToNumber

abstract suspend fun forwardToNumber(number: String?, internal: Boolean, type: ForwardType): RainbowResult<Unit>

Activate automatic call forwarding to the given number and depending on the given ForwardType (BUSY or NO_ANSWER are only for Cloud PBX).

Return

RainbowResult callback onSuccess or onFailure

Parameters

number

String the number to forward to

internal

boolean the specify if the number is internal or external. Only used for Cloud PBX.

type

ForwardType the type of forward (IMMEDIATE, BUSY or NO_ANSWER)