Ignore:
Timestamp:
Jun 22, 2011 8:00:20 AM (13 years ago)
Author:
bennylp
Message:

Closed #1313 (Account option to disable registration when account is added) and closed #1314 (New callback to notify application when registration or unregistration has been initiated). Thanks Tony Jago Million for the patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_acc.c

    r3591 r3594  
    453453 
    454454    /* If accounts has registration enabled, start registration */ 
    455     if (pjsua_var.acc[id].cfg.reg_uri.slen) 
    456         pjsua_acc_set_registration(id, PJ_TRUE); 
    457     else { 
     455    if (pjsua_var.acc[id].cfg.reg_uri.slen) { 
     456        if (pjsua_var.acc[id].cfg.register_on_acc_add) 
     457            pjsua_acc_set_registration(id, PJ_TRUE); 
     458    } else { 
    458459        /* Otherwise subscribe to MWI, if it's enabled */ 
    459460        if (pjsua_var.acc[id].cfg.mwi_enabled) 
     
    20102011        pjsip_regc_get_info(pjsua_var.acc[acc_id].regc, &reg_info); 
    20112012        pjsua_var.acc[acc_id].auto_rereg.reg_tp = reg_info.transport; 
     2013         
     2014        if (pjsua_var.ua_cfg.cb.on_reg_started) { 
     2015            (*pjsua_var.ua_cfg.cb.on_reg_started)(acc_id, renew); 
     2016        } 
    20122017    } 
    20132018 
Note: See TracChangeset for help on using the changeset viewer.