[SR-Dev] git:ser_modules: lcr: updated to the route_mode changes

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Apr 15 20:57:27 CEST 2009


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

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Wed Apr 15 19:39:36 2009 +0200

lcr: updated to the route_mode changes

- instead of the obsoleted tm route_mode use core's route.h
  is_route_type(REQUEST_ROUTE).

---

 modules_s/lcr/lcr_mod.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules_s/lcr/lcr_mod.c b/modules_s/lcr/lcr_mod.c
index 861c940..9a1ddae 100644
--- a/modules_s/lcr/lcr_mod.c
+++ b/modules_s/lcr/lcr_mod.c
@@ -55,6 +55,7 @@
 #include "../../dset.h"
 #include "../../ip_addr.h"
 #include "../../config.h"
+#include "../../route.h"
 #include "lcr_rpc.h"
 #include "lcr_mod.h"
 
@@ -737,7 +738,7 @@ int next_gw(struct sip_msg* _m, char* _s1, char* _s2)
 	
     memset(&act, 0, sizeof(act));
 	init_run_actions_ctx(&ra_ctx);
-    if (*(tmb.route_mode) == MODE_REQUEST) {
+    if (is_route_type(REQUEST_ROUTE)) {
 		
 		act.type = SET_URI_T;
 		act.val[0].type = STRING_ST;
@@ -1001,7 +1002,7 @@ int next_contacts(struct sip_msg* msg, char* key, char* value)
     int rval;
 	struct run_act_ctx ra_ctx;
 
-    if (*(tmb.route_mode) == MODE_REQUEST) {
+    if (is_route_type(REQUEST_ROUTE)) {
 		
 		/* Find first lcr_contact_avp value */
 		avp = search_first_avp(contact_avp_name_str, contact_name, &val, &st);




More information about the sr-dev mailing list