Changeset 892 for pjproject/trunk


Ignore:
Timestamp:
Jan 21, 2007 4:23:56 PM (18 years ago)
Author:
bennylp
Message:

Fixed ticket #68: pjsua account is not completely invalidated

Location:
pjproject/trunk/pjsip/src/pjsua-lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r881 r892  
    361361 
    362362    /* Delete registration */ 
    363     if (pjsua_var.acc[acc_id].regc != NULL)  
     363    if (pjsua_var.acc[acc_id].regc != NULL) { 
    364364        pjsua_acc_set_registration(acc_id, PJ_FALSE); 
     365        pjsip_regc_destroy(pjsua_var.acc[acc_id].regc); 
     366        pjsua_var.acc[acc_id].regc = NULL; 
     367    } 
    365368 
    366369    /* Delete server presence subscription */ 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r881 r892  
    733733    uapres = pjsua_var.acc[acc_id].pres_srv_list.next; 
    734734 
     735    /* Notify all subscribers that we're no longer available */ 
    735736    while (uapres != &acc->pres_srv_list) { 
    736737         
     
    754755    } 
    755756 
     757    /* Clear server presence subscription list because account might be reused 
     758     * later. */ 
     759    pj_list_init(&acc->pres_srv_list); 
     760 
     761    /* Terminate presence publication, if any */ 
    756762    if (acc->publish_sess) { 
    757763        acc->online_status = PJ_FALSE; 
Note: See TracChangeset for help on using the changeset viewer.