Module: sip-router
Branch: master
Commit: bd56a4728de187a871885f8d645cfaefee292875
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bd56a47…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Apr 19 21:21:01 2010 +0200
tm: print deprecated warning for timer APVs
- t_set_fr() is better for setting dynamic timeouts for transactions
- print deprecated warning when initalizing AVP parameter names
---
modules/tm/t_funcs.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/tm/t_funcs.c b/modules/tm/t_funcs.c
index e19ceab..76bd6d8 100644
--- a/modules/tm/t_funcs.c
+++ b/modules/tm/t_funcs.c
@@ -406,6 +406,8 @@ int init_avp_params(char *fr_timer_param, char *fr_inv_timer_param,
if (fr_timer_param && *fr_timer_param) {
fr_timer_str.s = fr_timer_param;
fr_timer_str.len = strlen(fr_timer_str.s);
+ LM_WARN("using AVP for TM fr_timer is deprecated,"
+ " use t_set_fr(...) instead\n");
if(fr_timer_str.s[0]==PV_MARKER) {
if (pv_parse_spec(&fr_timer_str, &avp_spec)==0
@@ -434,6 +436,8 @@ int init_avp_params(char *fr_timer_param, char *fr_inv_timer_param,
if (fr_inv_timer_param && *fr_inv_timer_param) {
fr_inv_timer_str.s = fr_inv_timer_param;
fr_inv_timer_str.len = strlen(fr_inv_timer_str.s);
+ LM_WARN("using AVP for TM fr_inv_timer is deprecated,"
+ " use t_set_fr(...) instead\n");
if(fr_inv_timer_str.s[0]==PV_MARKER) {
if (pv_parse_spec(&fr_inv_timer_str, &avp_spec)==0