[SR-Dev] git:master: Update tm module to use and set the global route_type variable.

Jan Janak jan at iptel.org
Sat Mar 7 01:51:45 CET 2009


Module: sip-router
Branch: master
Commit: 29e00cb942e122a8d0dc2b4e3adf4ef8e431c4b5
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=29e00cb942e122a8d0dc2b4e3adf4ef8e431c4b5

Author: Jan Janak <jan at iptel.org>
Committer: Jan Janak <jan at iptel.org>
Date:   Sat Mar  7 01:51:19 2009 +0100

Update tm module to use and set the global route_type variable.

This patch removes the rmode variable from tm module and replaces it
with the global variable route_type defined in route.h. In addition to
that we replaced MODE_* constants with *_ROUTE (also defined in
route.h).

A variable that was once defined in the tm module is now better moved
to the core, because just the core itself without the tm module loaded
can execute two types of routes, the request route and the global
onreply route (if used).

---

 modules/tm/t_fwd.c    |   16 +++++++++-------
 modules/tm/t_lookup.c |   26 +++++++++++++-------------
 modules/tm/t_reply.c  |   24 +++++++++++-------------
 modules/tm/t_reply.h  |    3 ---
 modules/tm/tm.c       |   28 ++++++++++++++--------------
 modules/tm/tm_load.c  |    1 -
 onsend.h              |    1 +
 receive.c             |    3 +++
 route.c               |    1 +
 9 files changed, 52 insertions(+), 51 deletions(-)

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



More information about the sr-dev mailing list