You are here: SwitchKit® Development Environment Programmer’s Guide > 6 Handler Functions > sk_pushDefaultTCAPHandler()
Description
Use the sk_pushDefaultTCAPHandler() function to push aHandlerFunc onto the stack of default TCAP handler functions. It is called before any existing handler functions on the stack. If no other handler functions apply, then the next highest function on the stack is called. This function is also available as skts_pushDefaultTCAPHandler().
int sk_pushDefaultTCAPHandler( void *aTag, HandlerFunc* aHandlerFunc);
int skts_pushDefaultTCAPHandler( 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 pushed. |
SK_BAD_LICENSE |
TCAP handler functionality was not successfully unlocked. |