Module: kamailio Branch: master Commit: 7e402da261e1ced56019037d3dce9e72b5b2b0ea URL: https://github.com/kamailio/kamailio/commit/7e402da261e1ced56019037d3dce9e72...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-06-18T10:31:38+02:00
pv: use SIP_REQUEST/SIP_REPLY for value of $mt
---
Modified: src/modules/pv/pv_core.c
---
Diff: https://github.com/kamailio/kamailio/commit/7e402da261e1ced56019037d3dce9e72... Patch: https://github.com/kamailio/kamailio/commit/7e402da261e1ced56019037d3dce9e72...
---
diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c index 7b28fb966e..f7af431341 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); }