HP-UX C SIP Stack Programmer's Guide (Novembery 2007)
Working with Call-legs (Dialogs) 59
Call-Leg Manager API
MSG-SEND-FAILURE
S
TATE MACHINE
Figure 6-4 Msg-Send-Failure State Machine
CALL-LEG
M
ANAGER API
The Call-legMgr controls the SIP Stack collection of call-legs. You use the
Call-Leg Manager API to register application callbacks with the SIP Stack and
to create new call-legs.
RvSipCallLegMgrCreateCallLeg()
You can use RvSipCallLegMgrCreateCallLeg() to create a new call-leg.
RvSipCallLegMgrSetEvHandlers()
You use RvSipCallLegMgrSetEvHandlers() to set your event handler (callback
function) pointers in the SIP Stack.
The Call-leg API declares prototypes for all call-leg callback functions. For
example:
/*==========================================================================*/
typedef void
(RVCALLCONV * RvSipCallLegStateChangedEv)(
IN RvSipCallLegHandle hCallLeg,
IN RvSipAppCallLegHandle hAppCallLeg,
IN RvSipCallLegState eState,
IN RvSipCallLegStateChangeReason eReason);
/*==========================================================================*/
INVITING/
PROCEEDING
DISCONNECTING
MSG SEND
FAILURE
TERMINATE
Failed to send INVITE
Continue
DNS()
Give Up() Terminate()
MSG SEND
FAILURE
TERMINATE
Failed to send BYE
Terminate()
Continue DNS()
Give
Up()
Returns to the state
before the
disconnecting state