diff options
author | Benny Prijono <bennylp@teluu.com> | 2013-06-26 08:07:14 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2013-06-26 08:07:14 +0000 |
commit | 5f38a6edfb8fc1824b133f9bda6d080b73663ea3 (patch) | |
tree | 1bd0cfc878231081a1dedf31c426333e02af8113 /pjsip/src | |
parent | 05a973e035c3ae531118c8b53f9528f290880a82 (diff) |
Re #1630: fixed bug with via_rewrite feature. The via address is not updated on second IP change
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4545 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_acc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_acc.c b/pjsip/src/pjsua-lib/pjsua_acc.c index 6a37c41b..bcebe355 100644 --- a/pjsip/src/pjsua-lib/pjsua_acc.c +++ b/pjsip/src/pjsua-lib/pjsua_acc.c @@ -1454,7 +1454,7 @@ static pj_bool_t acc_check_nat_addr(pjsua_acc *acc, * from the response. */ if (acc->cfg.allow_via_rewrite && - (acc->via_addr.host.slen == 0 || acc->via_tp != tp)) + (pj_strcmp(&acc->via_addr.host, via_addr) || acc->via_tp != tp)) { if (pj_strcmp(&acc->via_addr.host, via_addr)) pj_strdup(acc->pool, &acc->via_addr.host, via_addr); |