We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77b3657 commit ce81bb6Copy full SHA for ce81bb6
pjsip/src/pjsua-lib/pjsua_acc.c
@@ -1470,8 +1470,8 @@ PJ_DEF(pj_status_t) pjsua_acc_modify( pjsua_acc_id acc_id,
1470
acc->cfg.call_hold_type = cfg->call_hold_type;
1471
1472
/* Unregister first */
1473
- if (unreg_first && !cfg->disable_reg_on_modify) {
1474
- if (acc->regc) {
+ if (unreg_first) {
+ if (acc->regc && !cfg->disable_reg_on_modify) {
1475
status = pjsua_acc_set_registration(acc->index, PJ_FALSE);
1476
if (status != PJ_SUCCESS) {
1477
pjsua_perror(THIS_FILE, "Ignored failure in unregistering the "
0 commit comments