Ignore:
Timestamp:
Dec 2, 2006 7:25:29 AM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #36: pjsip_regc_unregister() SHOULD NOT unregister all contacts but rather only contact that was previously sent in the registration. In addition, added function pjsip_regc_unregister_all() to unregister all contacts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip-ua/sip_regc.h

    r799 r843  
    231231 
    232232/** 
    233  * Create REGISTER request to unregister all contacts from server records. 
     233 * Create REGISTER request to unregister the contacts that were previously 
     234 * registered by this client registration. 
    234235 * 
    235236 * @param regc      The client registration structure. 
     
    240241PJ_DECL(pj_status_t) pjsip_regc_unregister(pjsip_regc *regc, 
    241242                                           pjsip_tx_data **p_tdata); 
     243 
     244/** 
     245 * Create REGISTER request to unregister all contacts from server records. 
     246 * Note that this will unregister all registered contact for the AOR 
     247 * including contacts registered by other user agents. To only unregister 
     248 * contact registered by this client registration instance, use 
     249 * #pjsip_regc_unregister() instead. 
     250 * 
     251 * @param regc      The client registration structure. 
     252 * @param p_tdata   Pointer to receive the REGISTER request. 
     253 * 
     254 * @return          PJ_SUCCESS on success. 
     255 */ 
     256PJ_DECL(pj_status_t) pjsip_regc_unregister_all(pjsip_regc *regc, 
     257                                               pjsip_tx_data **p_tdata); 
    242258 
    243259/** 
Note: See TracChangeset for help on using the changeset viewer.