diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-11-03 09:29:52 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-11-03 09:29:52 +0000 |
commit | fcb74bbee530c9da1b86465e921c5a65e9fd1a69 (patch) | |
tree | 6ab9238ff83a18d495908c547455b430f564c3d3 | |
parent | aca5f737fe2433dc2651962ca87f60c05ff5bac9 (diff) |
Changed Service-Route processing to append S-R to existing route set rather than overwriting them
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1542 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_acc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_acc.c b/pjsip/src/pjsua-lib/pjsua_acc.c index a935300e..4262d410 100644 --- a/pjsip/src/pjsua-lib/pjsua_acc.c +++ b/pjsip/src/pjsua-lib/pjsua_acc.c @@ -610,8 +610,9 @@ void update_service_route(pjsua_acc *acc, pjsip_rx_data *rdata) /* First remove all routes which are not the outbound proxies */ rcnt = pj_list_size(&acc->route_set); - if (rcnt != pjsua_var.ua_cfg.outbound_proxy_cnt) { - for (i=pjsua_var.ua_cfg.outbound_proxy_cnt, hr=acc->route_set.prev; + if (rcnt != pjsua_var.ua_cfg.outbound_proxy_cnt + acc->cfg.proxy_cnt) { + for (i=pjsua_var.ua_cfg.outbound_proxy_cnt + acc->cfg.proxy_cnt, + hr=acc->route_set.prev; i<rcnt; ++i) { |