Error Handling

When you call RFC functions in the SPS tester, errors can occur in the following places:

  • On the RFC-API when allocating, deallocating, setting or reading data

When you call the RFC functions, a return code is returned. The meaning of the code is described in the table.

  • When the CTI System or the telephony gateway is executed or addressed

In this case, the RFC return code is zero, but an error number is returned when data is read from the reserved memory areas. This return code is transmitted with the corresponding error text by the relevant system (CTI or gateway). If the error code is less than 1000, the error occurred in the telephony gateway. If the error code is greater than 1000, the error occurred in the CTI System.

The return codes for the RFC functions are described in the following table:

Error code


Type


Description

0

RFC_OK

OK

1

RFC_FAILURE

error occurred

2

RFC_EXCEPTION

exception raised

3

RFC_SYS_EXCEPTION

system exception raised, connection closed

4

RFC_CALL

call received

5

RFC_INTERNAL_COM

internal communication, repeat

6

RFC_CLOSED

connection closed by the other side

7

RFC_RETRY

no data yet

8

RFC_NO_TID

no transaction ID available

9

RFC_EXECUTED

function already executed

10

RFC_SYNCHRONIZE

synchronous call in progress

11

RFC_MEMORY_INSUFFICIENT

memory insufficient

12

RFC_VERSION_MISMATCH

version mismatch

13

RFC_NOT_FOUND

function not found

14

RFC_CALL_NOT_SUPPORTED

call is not supported on windows