Module: sip-router Branch: sr_3.0 Commit: 610cb930bee937c744468c6781aeed8b17b4b7d0 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=610cb930...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Wed Oct 28 15:50:45 2009 +0100
tm: fix/support changing r-uris and path in branch routes
- changing the r-uri in a branch route is now safe and the change will propagate to branches created due to dns failover. - changing path in a branch route is now allowed and it will propagate to possible dns failover branches. - optimize the no branch route & no callback case. - build the branch buffer directly into shm mem. - s/prepare_uac_request/prepare_new_uac/ - prepare_new_uac() takes care now also of setting the branch retr. buffer, uri and path (functionality moved from add_uac())
---
modules/tm/t_fwd.c | 417 +++++++++++++++++++++++++++++++--------------------- 1 files changed, 247 insertions(+), 170 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=610c...
Unfortunately the changes are much bigger then I would have wanted and I didn't have enough time to test everything (e.g. I haven't tested at all CANCELs which might also be affected).
It needs a lot of testing, especially with lots of branches, dns failover and the following 2 non-default config options:
modparam("tm", "reparse_on_dns_failover", 0) modparam("tm", "reparse_invite", 0)
For dns failover make sure you have enabled: use_dns_failover=on dns_srv_lb=yes # optional dns_try_naptr=yes # optional
Andrei
On Oct 28, 2009 at 16:11, Andrei Pelinescu-Onciul andrei@iptel.org wrote:
Module: sip-router Branch: sr_3.0 Commit: 610cb930bee937c744468c6781aeed8b17b4b7d0 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=610cb930...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Wed Oct 28 15:50:45 2009 +0100
tm: fix/support changing r-uris and path in branch routes
- changing the r-uri in a branch route is now safe and the change will propagate to branches created due to dns failover.
- changing path in a branch route is now allowed and it will propagate to possible dns failover branches.
- optimize the no branch route & no callback case.
- build the branch buffer directly into shm mem.
- s/prepare_uac_request/prepare_new_uac/
- prepare_new_uac() takes care now also of setting the branch retr. buffer, uri and path (functionality moved from add_uac())
modules/tm/t_fwd.c | 417 +++++++++++++++++++++++++++++++--------------------- 1 files changed, 247 insertions(+), 170 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=610c...
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev