You are here: SwitchKit® Development Environment Programmer’s Guide > 6 Handler Functions > sk_setDefaultTCAPHandler()

sk_setDefaultTCAPHandler()

Description

Use the sk_setDefaultTCAPHandler() function to install aHandlerFunc as the default TCAP handler. If there is currently a stack of default TCAP handler functions, it is cleared first.. This function is also available as skts_setDefaultTCAPHandler().

Syntax

int sk_setDefaultTCAPHandler( void *aTag, HandlerFunc* aHandlerFunc);

Threadsafe Syntax

int skts_setDefaultTCAPHandler( void *aTag, HandlerFunc* aHandlerFunc);

Parameters

The function parameters are shown in the table below.

Argument | Description
--- | ---
aTag | An application defined pointer which will be returned to the application when a handler is invoked.
aHandlerFunc | A pointer to a function that is designed to handle messages.

Return Values

Possible return values for this function:

OK | TCAP handler functionality was successfully set.
SK_BAD_LICENSE | TCAP handler functionality was not successfully unlocked.

See Transaction Capability Application Part.