Changeset 4172 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
- Timestamp:
- Jun 19, 2012 2:35:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r4155 r4172 470 470 /* Otherwise subscribe to MWI, if it's enabled */ 471 471 if (pjsua_var.acc[id].cfg.mwi_enabled) 472 pjsua_start_mwi( &pjsua_var.acc[id]);472 pjsua_start_mwi(id, PJ_TRUE); 473 473 } 474 474 … … 680 680 pj_bool_t update_reg = PJ_FALSE; 681 681 pj_bool_t unreg_first = PJ_FALSE; 682 pj_bool_t update_mwi = PJ_FALSE; 682 683 pj_status_t status = PJ_SUCCESS; 683 684 … … 839 840 840 841 /* MWI */ 841 acc->cfg.mwi_enabled = cfg->mwi_enabled; 842 if (acc->cfg.mwi_enabled != cfg->mwi_enabled) { 843 acc->cfg.mwi_enabled = cfg->mwi_enabled; 844 update_mwi = PJ_TRUE; 845 } 846 if (acc->cfg.mwi_expires != cfg->mwi_expires && cfg->mwi_expires > 0) { 847 acc->cfg.mwi_expires = cfg->mwi_expires; 848 update_mwi = PJ_TRUE; 849 } 842 850 843 851 /* PIDF tuple ID */ … … 1133 1141 if (acc->cfg.reg_uri.slen) 1134 1142 pjsua_acc_set_registration(acc->index, PJ_TRUE); 1135 else { 1136 /* Otherwise subscribe to MWI, if it's enabled */ 1137 if (acc->cfg.mwi_enabled) 1138 pjsua_start_mwi(acc); 1139 }1143 } 1144 1145 /* Update MWI subscription */ 1146 if (update_mwi) { 1147 pjsua_start_mwi(acc_id, PJ_TRUE); 1140 1148 } 1141 1149 … … 1876 1884 /* Subscribe to MWI, if it's enabled */ 1877 1885 if (acc->cfg.mwi_enabled) 1878 pjsua_start_mwi(acc );1886 pjsua_start_mwi(acc->index, PJ_FALSE); 1879 1887 } 1880 1888
Note: See TracChangeset
for help on using the changeset viewer.