Module: kamailio
Branch: master
Commit: b5cf0da2fbae5ed0b887b0323b8bf8a44e29d80d
URL:
https://github.com/kamailio/kamailio/commit/b5cf0da2fbae5ed0b887b0323b8bf8a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-10-04T09:46:37+02:00
pv: return via variable oc value as it is
---
Modified: src/modules/pv/pv_core.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b5cf0da2fbae5ed0b887b0323b8bf8a…
Patch:
https://github.com/kamailio/kamailio/commit/b5cf0da2fbae5ed0b887b0323b8bf8a…
---
diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c
index 50e1abbd485..cb70b70ae41 100644
--- a/src/modules/pv/pv_core.c
+++ b/src/modules/pv/pv_core.c
@@ -4622,11 +4622,7 @@ int pv_get_via_attr(
if(parse_via_oc(msg, vb, &ocv) < 0) {
return pv_get_null(msg, param, res);
}
- if(ocv.oc == 1) {
- return pv_get_sintval(msg, param, res, 1);
- } else {
- return pv_get_sintval(msg, param, res, 2);
- }
+ return pv_get_sintval(msg, param, res, ocv.oc);
break;
case 10: /* oc-algo */
if(parse_via_oc(msg, vb, &ocv) < 0) {