HP-UX C SIP Stack Programmer's Guide (Novembery 2007)

80 HP-UX C SIP Stack Programmers Guide
Call-leg Transactions
/*===========================================================*/
RvStatus AppSendInfo(IN RvSipCallLegHandle hCallLeg)
{
RvStatus rv;
RvSipTranscHandle hNewTransc;
rv = RvSipCallLegTranscCreate(hCallLeg,NULL,&hNewTransc);
if(rv != RV_OK)
{
printf("failed to create a new call-leg transaction\n");
return rv;
}
rv = RvSipCallLegTranscRequest(hCallLeg,"INFO",&hNewTransc);
if(rv != RV_OK)
{
printf("failed to send INFO\n");
return rv;
}
return RV_OK;
}
/*===========================================================*/
Sample Code
The following sample code demonstrates the application implementation of the
RvSipCallLegTranscCreatedEv() callback. In this implementation, the
application specifies that it wishes to handle only INFO requests and instructs
the SIP Stack to handle all other requests. The application does not exchange
handles with the Stack.