Module: kamailio
Branch: 5.3
Commit: 9dff6197dcae5c4051194753382f95c5edaa379e
URL:
https://github.com/kamailio/kamailio/commit/9dff6197dcae5c4051194753382f95c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-06-19T15:15:38+02:00
pv: use SIP_REQUEST/SIP_REPLY for value of $mt
(cherry picked from commit 7e402da261e1ced56019037d3dce9e72b5b2b0ea)
---
Modified: src/modules/pv/pv_core.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9dff6197dcae5c4051194753382f95c…
Patch:
https://github.com/kamailio/kamailio/commit/9dff6197dcae5c4051194753382f95c…
---
diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c
index 9087fe01bf..d4ae29bc9e 100644
--- a/src/modules/pv/pv_core.c
+++ b/src/modules/pv/pv_core.c
@@ -188,9 +188,9 @@ int pv_get_msgtype(struct sip_msg *msg, pv_param_t *param,
return -1;
if(msg->first_line.type == SIP_REQUEST)
- type = 1;
+ type = SIP_REQUEST; /* 1 */
else if(msg->first_line.type == SIP_REPLY)
- type = 2;
+ type = SIP_REPLY; /* 2 */
return pv_get_uintval(msg, param, res, type);
}