Changeset 4955 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
- Timestamp:
- Oct 27, 2014 7:36:08 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r4947 r4955 1334 1334 /* Unregister first */ 1335 1335 if (unreg_first) { 1336 pjsua_acc_set_registration(acc->index, PJ_FALSE); 1336 status = pjsua_acc_set_registration(acc->index, PJ_FALSE); 1337 if (status != PJ_SUCCESS) { 1338 pjsua_perror(THIS_FILE, "Ignored failure in unregistering the " 1339 "old account setting in modifying account", status); 1340 /* Not really sure if we should return error */ 1341 status = PJ_SUCCESS; 1342 } 1337 1343 if (acc->regc != NULL) { 1338 1344 pjsip_regc_destroy(acc->regc); … … 1351 1357 if (update_reg) { 1352 1358 /* If accounts has registration enabled, start registration */ 1353 if (acc->cfg.reg_uri.slen) 1354 pjsua_acc_set_registration(acc->index, PJ_TRUE); 1359 if (acc->cfg.reg_uri.slen) { 1360 status = pjsua_acc_set_registration(acc->index, PJ_TRUE); 1361 if (status != PJ_SUCCESS) { 1362 pjsua_perror(THIS_FILE, "Failed to register with new account " 1363 "setting in modifying account", status); 1364 goto on_return; 1365 } 1366 } 1355 1367 } 1356 1368 1357 1369 /* Update MWI subscription */ 1358 1370 if (update_mwi) { 1359 pjsua_start_mwi(acc_id, PJ_TRUE); 1371 status = pjsua_start_mwi(acc_id, PJ_TRUE); 1372 if (status != PJ_SUCCESS) { 1373 pjsua_perror(THIS_FILE, "Failed in starting MWI subscription for " 1374 "new account setting in modifying account", status); 1375 } 1360 1376 } 1361 1377
Note: See TracChangeset
for help on using the changeset viewer.