[sr-dev] git:sr_3.0: tm: support for changing dst_uri in branch routes

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Oct 28 16:11:42 CET 2009


Module: sip-router
Branch: sr_3.0
Commit: 44f7bf621476b18e5df5e45161305a3bce22d498
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=44f7bf621476b18e5df5e45161305a3bce22d498

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Wed Oct 28 08:36:47 2009 +0100

tm: support for changing dst_uri in branch routes

- dst_uri can now be changed in branch routes, if the branch
  route is not called during dns failover (which never happens,
  but might be enabled in the future).
- dst_uri can now be checked in branch routes. The
  dst_uri on branch route entry will be the branch next hop
  (initial next hop and not the dns resolved one) if a
  t_relay() based on uri was used, or empty if a destination was
  forced (e.g. t_relay_to_udp(127.0.0.1, 9)).
- s/print_uac_request/prepare_uac_request to better reflect what
  is actually doing
- prepare_uac_request() will now perform the DNS lookups and directly
  update the branch dst inside the transaction.
- add_uac() must now be called with a special flag during DNS
  failover (UAC_DNS_FAILOVER).

---

 modules/tm/t_fwd.c |  176 ++++++++++++++++++++++++++++++++++++----------------
 modules/tm/t_fwd.h |    2 +
 2 files changed, 125 insertions(+), 53 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=44f7bf621476b18e5df5e45161305a3bce22d498



More information about the sr-dev mailing list