[sr-dev] git:master: tmx: fixed mix-up between $T(id_index) and $T(id_label)

Daniel-Constantin Mierla miconda at gmail.com
Tue Aug 16 12:22:35 CEST 2011


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Aug 16 12:21:14 2011 +0200

tmx: fixed mix-up between $T(id_index) and $T(id_label)

- patch by Martin Hoffmann

---

 modules_k/tmx/t_var.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules_k/tmx/t_var.c b/modules_k/tmx/t_var.c
index ff78f45..366afe3 100644
--- a/modules_k/tmx/t_var.c
+++ b/modules_k/tmx/t_var.c
@@ -507,8 +507,8 @@ int pv_get_t(struct sip_msg *msg,  pv_param_t *param,
 	switch(param->pvn.u.isname.name.n)
 	{
 		case 1:
-			return pv_get_uintval(msg, param, res, t->label);
-		default:
 			return pv_get_uintval(msg, param, res, t->hash_index);
+		default:
+			return pv_get_uintval(msg, param, res, t->label);
 	}
 }




More information about the sr-dev mailing list