Changeset 3594 for pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_acc.c
- Timestamp:
- Jun 22, 2011 8:00:20 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_acc.c
r3591 r3594 453 453 454 454 /* 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 { 458 459 /* Otherwise subscribe to MWI, if it's enabled */ 459 460 if (pjsua_var.acc[id].cfg.mwi_enabled) … … 2010 2011 pjsip_regc_get_info(pjsua_var.acc[acc_id].regc, ®_info); 2011 2012 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 } 2012 2017 } 2013 2018
Note: See TracChangeset
for help on using the changeset viewer.