You are here: SwitchKit® Development Environment Programmer’s Guide > 6 Handler Functions > 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().
int sk_setDefaultTCAPHandler( void *aTag, HandlerFunc* aHandlerFunc);
int skts_setDefaultTCAPHandler( void *aTag, HandlerFunc* aHandlerFunc);
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. |
Possible return values for this function:
OK |
TCAP handler functionality was successfully set. |
SK_BAD_LICENSE |
TCAP handler functionality was not successfully unlocked. |