Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

An interaction error occurs when web server returns status other than 200 OK, or some error prevents access to web server. Actions taken depending on restOnError field of restClientConfig object and method type, described below:

restOnError

| -
Connect

Direct invocations

II -

Events

III -

Incoming calls

FAIL

  • Decline

  • Return FAIL to a client

  • Log the error
  • Break execution
  • Deliver error to a client in corresponding event
  • Log the error
  • Continue execution
  • Deliver error to a client in special event ErrorEvent
  • Log the error
  • Break execution
  • Response to caller with status 403 FORBIDDEN
  • Deliver error to client in corresponding event

LOG

  • Log the error
  • Continue execution
  • Log the error
  • Continue execution
  • Log the error
  • Continue execution

Actions taken when other error is occured

When SIP status 4xx, 5xx, 6xx is received, or other error not concerning to REST is occured, an appropriate event will be initiated with FAILED status and error description in 'info' field. This event will be delivered to web server and then to client according to the rules defined in restClientConfig.

For example, if SIP server returns 403 FORBIDDEN on outgoing call then CallStatusEvent event with status='FAILED', info='SIP 403 FORBIDDEN' and sipMessageRaw='the original SIP message' will be sent to the web server and to the client.

...