[sr-dev] git:rbetancor/drouting: drouting:

Raul Alexis Betancor Santana rabs at dimension-virtual.com
Thu Jul 2 19:51:59 CEST 2009


Module: sip-router
Branch: rbetancor/drouting
Commit: 854020b243c1c608324c41621da583ca5ad30a7b
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=854020b243c1c608324c41621da583ca5ad30a7b

Author: Raul Alexis Betancor Santana <rabs at dimension-virtual.com>
Committer: Raul Alexis Betancor Santana <rabs at dimension-virtual.com>
Date:   Thu Jul  2 16:29:58 2009 +0100

drouting:

- fixed do_action calls

---

 modules_k/drouting/drouting.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/modules_k/drouting/drouting.c b/modules_k/drouting/drouting.c
index 6c76f21..a5bb756 100644
--- a/modules_k/drouting/drouting.c
+++ b/modules_k/drouting/drouting.c
@@ -632,7 +632,7 @@ static int use_next_gw(struct sip_msg* msg)
 
 	if (!avp) return -1;
 
-	if (rewrite_ruri(msg, &val.s.s)==-1) {
+	if (rewrite_ruri(msg, &val)==-1) {
 		LM_ERR("failed to rewite RURI\n");
 		return -1;
 	}
@@ -975,13 +975,15 @@ static int fixup_from_gw( void** param, int param_no)
 static int strip_username(struct sip_msg* msg, int strip)
 {
 	struct action act;
+   struct run_act_ctx ra_ctx;
  
 	act.type = STRIP_T;
-	act.elem[0].type = NUMBER_ST;
-	act.elem[0].u.number = strip;
+	act.val[0].type = NUMBER_ST;
+	act.val[0].u.number = strip;
 	act.next = 0;
 
-	if (do_action(&act, msg) < 0)
+   init_run_actions_ctx(&ra_ctx);
+   if (do_action(&ra_ctx, &act, msg) < 0)
 	{
 		LM_ERR( "Error in do_action\n");
 		return -1;




More information about the sr-dev mailing list