Skip to content

Commit ce81bb6

Browse files
authored
If disable_reg_on_modify is enabled, destroy reg silently (#4509)
1 parent 77b3657 commit ce81bb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pjsip/src/pjsua-lib/pjsua_acc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,8 +1470,8 @@ PJ_DEF(pj_status_t) pjsua_acc_modify( pjsua_acc_id acc_id,
14701470
acc->cfg.call_hold_type = cfg->call_hold_type;
14711471

14721472
/* Unregister first */
1473-
if (unreg_first && !cfg->disable_reg_on_modify) {
1474-
if (acc->regc) {
1473+
if (unreg_first) {
1474+
if (acc->regc && !cfg->disable_reg_on_modify) {
14751475
status = pjsua_acc_set_registration(acc->index, PJ_FALSE);
14761476
if (status != PJ_SUCCESS) {
14771477
pjsua_perror(THIS_FILE, "Ignored failure in unregistering the "

0 commit comments

Comments
 (0)