Ignore:
Timestamp:
Apr 11, 2012 9:41:25 AM (8 years ago)
Author:
bennylp
Message:

More re #1481: Destroying the regc may lead to dangling binding in the register, so instead of destroying the regc, instruct it to release the transport instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/include/pjsip-ua/sip_regc.h

    r3553 r4037  
    266266                                              const pjsip_tpselector *sel); 
    267267 
     268/** 
     269 * Release the reference to current transport being used by the regc, if any. 
     270 * The regc keeps the reference to the last transport being used in order 
     271 * to prevent it from being destroyed. In some situation however, such as 
     272 * when the transport is disconnected, it is necessary to instruct the 
     273 * regc to release this reference so that the transport can be destroyed. 
     274 * See https://trac.pjsip.org/repos/ticket/1481 for background info. 
     275 * 
     276 * @param regc      The client registration instance. 
     277 * 
     278 * @return          PJ_SUCCESS on success, or the appropriate error code. 
     279 */ 
     280PJ_DECL(pj_status_t) pjsip_regc_release_transport(pjsip_regc *regc); 
    268281 
    269282/** 
Note: See TracChangeset for help on using the changeset viewer.