Ignore:
Timestamp:
Mar 5, 2006 11:53:36 AM (18 years ago)
Author:
bennylp
Message:

Added API to terminate dialog prematurely. Affect: dialog, invite sessions, evsub, and presence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_dialog.c

    r265 r283  
    614614 
    615615/* 
     616 * Forcefully terminate dialog. 
     617 */ 
     618PJ_DEF(pj_status_t) pjsip_dlg_terminate( pjsip_dialog *dlg ) 
     619{ 
     620    /* Number of sessions must be zero. */ 
     621    PJ_ASSERT_RETURN(dlg->sess_count==0, PJ_EINVALIDOP); 
     622 
     623    /* MUST not have pending transactions. */ 
     624    PJ_ASSERT_RETURN(dlg->tsx_count==0, PJ_EINVALIDOP); 
     625 
     626    return unregister_and_destroy_dialog(dlg); 
     627} 
     628 
     629 
     630/* 
    616631 * Set route_set 
    617632 */ 
Note: See TracChangeset for help on using the changeset viewer.