Programming Guide |
Returns the Tuxedo identifier for a service call
int sm_tp_get_tux_callid(char *callid);
callid
- Tuxedo service call identifier, which is set in the
tp_return
property immediately after the service request is made.
Tuxedo
- · Tuxedo identifier of the specified service call.
- ·
NULL
:callid
is invalid or there is no active service request.
sm_tp_get_tux_callid
gets the Tuxedo identifier for the specified service call. Use this identifier in order to make direct calls to Tuxedo API functions.
char *callid;
int tux_id;
callid = sm_prop_get_str(sm_prop_id("@app"),\
PR_TP_THIS_CALL);
if ((callid != NULL) && (strlen(callid) > 0))
{
tux_id = sm_tp_get_tux_callid(callid);
/* Make call to TUXEDO API using tux_id... */
...
}