|
@@ -517,7 +517,8 @@ static inline int avp2timer(unsigned int* timer, int type, int_str name)
|
|
|
} else {
|
|
|
*timer = val_istr.n;
|
|
|
}
|
|
|
-
|
|
|
+#if 0
|
|
|
+ /* value of AVP is expected to be sec, not milisec lile mod params */
|
|
|
if(sr_cfg_compat==SR_COMPAT_KAMAILIO) {
|
|
|
if(*timer>0 && *timer<=120) {
|
|
|
LM_WARN("too small given timer value: %ums (using T*1000)\n",
|
|
@@ -525,6 +526,7 @@ static inline int avp2timer(unsigned int* timer, int type, int_str name)
|
|
|
*timer *= 1000;
|
|
|
}
|
|
|
}
|
|
|
+#endif
|
|
|
return *timer==0; /* 1 if 0 (use default), 0 if !=0 (use *timer) */
|
|
|
}
|
|
|
|