summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2011-10-27 09:02:36 +0000
committerLiong Sauw Ming <ming@teluu.com>2011-10-27 09:02:36 +0000
commit2ac559ed65e2000c4994ee5406a871dc27e02159 (patch)
tree9186753aa7a856af9dc015eaa458d18a12f60d3a
parent106f6429ecac6cc1c20ad0d9e776a6a1f5bdf25d (diff)
Fixed #1341: Handle pjsua_acc_config's newly added fields in pjsua_acc_modify()
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3867 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsua-lib/pjsua_acc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_acc.c b/pjsip/src/pjsua-lib/pjsua_acc.c
index 4091d7e8..12b31f0a 100644
--- a/pjsip/src/pjsua-lib/pjsua_acc.c
+++ b/pjsip/src/pjsua-lib/pjsua_acc.c
@@ -852,6 +852,12 @@ PJ_DEF(pj_status_t) pjsua_acc_modify( pjsua_acc_id acc_id,
acc->cfg.use_stream_ka = cfg->use_stream_ka;
#endif
+ /* Use of proxy */
+ if (acc->cfg.reg_use_proxy != cfg->reg_use_proxy) {
+ acc->cfg.reg_use_proxy = cfg->reg_use_proxy;
+ update_reg = PJ_TRUE;
+ }
+
/* Global outbound proxy */
if (global_route_crc != acc->global_route_crc) {
unsigned i, rcnt;
@@ -962,6 +968,7 @@ PJ_DEF(pj_status_t) pjsua_acc_modify( pjsua_acc_id acc_id,
acc->cfg.reg_retry_interval = cfg->reg_retry_interval;
acc->cfg.reg_first_retry_interval = cfg->reg_first_retry_interval;
acc->cfg.drop_calls_on_reg_fail = cfg->drop_calls_on_reg_fail;
+ acc->cfg.register_on_acc_add = cfg->register_on_acc_add;
if (acc->cfg.reg_delay_before_refresh != cfg->reg_delay_before_refresh) {
acc->cfg.reg_delay_before_refresh = cfg->reg_delay_before_refresh;
pjsip_regc_set_delay_before_refresh(acc->regc,
@@ -1014,6 +1021,9 @@ PJ_DEF(pj_status_t) pjsua_acc_modify( pjsua_acc_id acc_id,
}
}
+ /* Call hold type */
+ acc->cfg.call_hold_type = cfg->call_hold_type;
+
on_return:
PJSUA_UNLOCK();
return status;