Ignore:
Timestamp:
Mar 5, 2006 11:53:36 AM (19 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/include/pjsip-ua/sip_inv.h

    r223 r283  
    170170    pj_pool_t           *pool;                      /**< Dialog's pool.     */ 
    171171    pjsip_inv_state      state;                     /**< Invite sess state. */ 
     172    pjsip_status_code    cause;                     /**< Disconnect cause.  */ 
     173    pj_bool_t            notify;                    /**< Internal.          */ 
    172174    pjsip_dialog        *dlg;                       /**< Underlying dialog. */ 
    173175    pjsip_role_e         role;                      /**< Invite role.       */ 
     
    331333                                          unsigned options, 
    332334                                          pjsip_inv_session **p_inv); 
     335 
     336 
     337/** 
     338 * Forcefully terminate and destroy INVITE session, regardless of 
     339 * the state of the session. Note that this function should only be used 
     340 * when there is failure in the INVITE session creation. After the 
     341 * invite session has been created and initialized, normally application 
     342 * SHOULD use #pjsip_inv_end_session() to end the INVITE session instead. 
     343 * 
     344 * Note also that this function may terminate the underlying dialog, if 
     345 * there are no other sessions in the dialog. 
     346 * 
     347 * @param inv           The invite session. 
     348 * @param st_code       Status code for the reason of the termination. 
     349 * @param notify        If set to non-zero, then on_state_changed()  
     350 *                      callback will be called. 
     351 * 
     352 * @return              PJ_SUCCESS if the INVITE session has been 
     353 *                      terminated. 
     354 */ 
     355PJ_DECL(pj_status_t) pjsip_inv_terminate( pjsip_inv_session *inv, 
     356                                          int st_code, 
     357                                          pj_bool_t notify ); 
    333358 
    334359 
Note: See TracChangeset for help on using the changeset viewer.