Module: sip-router
Branch: master
Commit: ed6838004eef2734a1a9667bbe56526de1463bf2
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ed68380…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Jul 6 12:36:22 2009 +0200
tm: t_reply() first param. can be any var. type
Switched first param. fixup to fixup_var_int_12(), thus allowing
it to be a pvar.
---
modules/tm/tm.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/modules/tm/tm.c b/modules/tm/tm.c
index e769b75..034b8c7 100644
--- a/modules/tm/tm.c
+++ b/modules/tm/tm.c
@@ -508,12 +508,8 @@ static int fixup_routes(char* r_type, struct route_list* rt, void**
param)
static int fixup_t_reply(void** param, int param_no)
{
- int ret;
-
if (param_no == 1) {
- ret = fix_param(FPARAM_AVP, param);
- if (ret <= 0) return ret;
- if (fix_param(FPARAM_INT, param) != 0) return -1;
+ if (fixup_var_int_12(param, 1) != 0) return -1;
} else if (param_no == 2) {
return fixup_var_str_12(param, 2);
}