[sr-dev] git:5.0:9e006026: tm: Add fixup for PVS in fixup_t_check_status

Hugh Waite hughw273 at gmail.com
Wed Jan 9 11:22:29 CET 2019


Module: kamailio
Branch: 5.0
Commit: 9e00602623107ccba54a3a2ddf189c0e40432fc0
URL: https://github.com/kamailio/kamailio/commit/9e00602623107ccba54a3a2ddf189c0e40432fc0

Author: Hugh Waite <hughw273 at gmail.com>
Committer: Hugh Waite <hughw273 at gmail.com>
Date: 2019-01-09T10:19:59Z

tm: Add fixup for PVS in fixup_t_check_status
- Allows PVs including $avp(...) to be passed to t_check_status

---

Modified: src/modules/tm/tm.c

---

Diff:  https://github.com/kamailio/kamailio/commit/9e00602623107ccba54a3a2ddf189c0e40432fc0.diff
Patch: https://github.com/kamailio/kamailio/commit/9e00602623107ccba54a3a2ddf189c0e40432fc0.patch

---

diff --git a/src/modules/tm/tm.c b/src/modules/tm/tm.c
index 6c493a9860..e4874108d0 100644
--- a/src/modules/tm/tm.c
+++ b/src/modules/tm/tm.c
@@ -667,6 +667,9 @@ static int fixup_t_check_status(void** param, int param_no)
 {
 	int ret;
 
+	ret = fix_param(FPARAM_PVS, param);
+	if (ret <= 0) return ret;
+
 	ret = fix_param(FPARAM_AVP, param);
 	if (ret <= 0) return ret;
 




More information about the sr-dev mailing list