Failover Statuses

Failover Service statuses

The overall status of the Failover flow depends on the statuses of the channels you use in the flow.

There are 4 statuses for the Failover service:

  • Queued — The flow has been accepted and is queued for processing.
  • InProgress — The Failover message is being sent. This is the status until one of the channels reaches a final status.
  • Succeeded — At least one channel in the flow reached a successful outcome (e.g. Viber Delivered or SMS Delivered).
  • Failed — All attempted channels failed, or the flow failed (e.g. no next step, insufficient balance, server error).

When one of the channels reaches a final status, the Failover status becomes either Succeeded or Failed.

Examples:

  • You send Viber first; it is not delivered, but the failover to SMS is delivered → Failover status is Succeeded.
  • You send Viber and SMS; the Viber message is delivered → Failover status is Succeeded.
  • You send Viber and SMS; both are not delivered → Failover status is Failed.
VOICEVIBERSMSFAILOVER
CompletednonenoneSucceeded
BusyDeliverednoneSucceeded
BusyUNDELIVEREDDELIVEREDSucceeded
BusyUNDELIVEREDUNDELIVEREDFailed
BusyUNDELIVEREDFAILEDFailed
NoAnswerDELIVEREDnoneSucceeded
NoAnswerUNDELIVEREDDELIVEREDSucceeded
NoAnswerUNDELIVEREDUNDELIVEREDFailed
NoAnswerUNDELIVEREDFAILEDFailed
FailedDELIVEREDnoneSucceeded
FailedUNDELIVEREDDELIVEREDSucceeded
FailedUNDELIVEREDUNDELIVEREDFailed
FailedUNDELIVEREDFAILEDFailed
UnsentDELIVEREDnoneSucceeded
UnsentUNDELIVEREDDELIVEREDSucceeded
UnsentUNDELIVEREDUNDELIVEREDFailed
UnsentUNDELIVEREDFAILEDFailed
TerminatedDELIVEREDnoneSucceeded
TerminatedUNDELIVEREDDELIVEREDSucceeded
TerminatedUNDELIVEREDUNDELIVEREDFailed
TerminatedUNDELIVEREDFAILEDFailed

When the Failover status is Failed, the statusCode parameter gives more detail. It can be 0, 1, 2, or 3 (as a string in the API), depending on the reason:

statusCodeDescription
0Server error — check your authentication and request.
1Insufficient balance — top up your account.
2No next step — the flow had no next step configured.
3Not failover triggered — the status that arrived was not one of the statuses that trigger the next channel.

Viber Service statuses

Viber message statusDescription
QUEUEDMessage is being processed.
DELIVEREDMessage was successfully delivered.
SEENMessage was seen by the recipient on their device.
UNDELIVEREDMessage could not be delivered.
EXPIREDMessage expired (not delivered within the specified time).
FAILEDMessage failed (e.g. not accepted by the platform).
UNSENTMessage was not sent.

SMS statuses

SMS statusDescription
QueuedMessage has been queued and will be sent.
SentMessage was processed by the gateway (non-final status).
DeliveredThe SMS was sent and delivered to the recipient.
UndeliveredA delivery receipt indicated the message was not delivered (e.g. carrier filtering, handset unavailable).
FailedThe SMS was not sent because the gateway could not process it.
UnsentThe message was not sent (e.g. rejected due to low balance).

Voice statuses

Voice message statusDescription
CompletedThe Voice message was delivered and answered.
BusyThe Voice message was delivered; the destination was busy and did not answer.
NoAnswerThe Voice message was delivered; the destination did not answer the call.
FailedThe Voice message could not be sent due to an internal error.
UnsentThe Voice message could not be initiated due to insufficient balance.
TerminatedThe Voice message ended due to insufficient balance.