asnCtiRedirectCall

Redirect an incoming call to another line.

To redirect an incoming, ringing call (call state OFFERING) to another line, execute this operation.
This operation works also for lines, where the user has corresponding access rights to.

Additionally this operation can be executed on a contact of the favorite list where the caller has the access rights to control the lines of the contact.

Remark: If you want to pickup a call (picking an offering call to an own line), use asnCtiPickupCall.

ArgumentType: AsnCtiRedirectCallArgument

AsnCtiRedirectCallArgument is an Object

Name Type Optional Comment
u8sContactID string ContactID of the contact to redirect a call from his line. Leave it empty if you just want to redirect a call by its identifier.

u8sConnectionID string Connection identifier of the call to redirect.

u8sPhoneNumber string The line number to redirect to. This number can be in short or long format if you set iNumberFormat to 1.

iNumberFormat number The u8sPhoneNumber is the number to redirect to and normally the server would reformat the number into a dialable form. This behavior can be altered:

  • 0: Server should not format the number for redirecting, it shall use it like it is.
  • Other values: Server should format the number (set prefix and area code etc.).
    Hint: If you are not sure, the number should always be formatted (-> use '1')
(Linked Type: AsnETAPIDialNumberFormat)
optionalParams AsnOptionalParameters yes

ResultType: AsnCtiRedirectCallResult

AsnCtiRedirectCallResult is an Object

Name Type Optional Comment
bSuccess boolean true/1 if the call was redirectd, false/0 otherwise.

optionalParams AsnOptionalParameters yes

ErrorType: AsnRequestError

AsnRequestError is an Object

Name Type Optional Comment
iErrorDetail number
u8sErrorString string
optionalParams AsnOptionalParameters yes

Version 6.1