asnCtiSetForward

Set simple call forwards.

Set a call forward on a line (optionally with conditions). Default is a unconditional forward from one line to another.

To set multiple forwards on a line (if it is supported by the PBX system), call this function again on the same line.

ArgumentType: AsnCtiSetForwardArgument

AsnCtiSetForwardArgument is an Object

Name Type Optional Comment
u8sPhoneNumberFrom string Number of the line to forward from. Format should be like '+49815136856177' or it can be a line URI.

u8sPhoneNumberTo string Number of the line to forward to. Format must be long format, like '+49815136856177'.

optionalParams AsnOptionalParameters yes Additional parameter added for backward compatibility here.

(Linked Type: AsnForwardMode)

ResultType: AsnCtiSetForwardResult

AsnCtiSetForwardResult is an Object

Name Type Optional Comment
bSuccess boolean true/1 if the forward is set, false/0 otherwise.

bExistingForwardingChanged boolean true/1 if this is the very first forward or if your PBX does not support multiple forwards. A preexisting forward was replaced in this case. false/0 if your forward is added to the list of forwards.

optionalParams AsnOptionalParameters yes

ErrorType: AsnRequestError

AsnRequestError is an Object

Name Type Optional Comment
iErrorDetail number A number representing the error

u8sErrorString string A string representing the error

optionalParams AsnOptionalParameters yes No optional params yet

Version 7