Module: kamailio
Branch: 5.0
Commit: 5274a0f9e5a5b74bbc37a6d74504b517d9dbfebe
URL:
https://github.com/kamailio/kamailio/commit/5274a0f9e5a5b74bbc37a6d74504b51…
Author: Mikko Lehto <mslehto(a)iki.fi>
Committer: Ãyvind Kolbu <oyvind.kolbu(a)usit.uio.no>
Date: 2017-10-25T10:51:08+02:00
sipcapture: keep hep buffer unmodified while getting PV $hep(NNN)
- addition to GH PR #1191
(cherry picked from commit 2140d0141b5a7551ebbd072d801ce2339020dac0)
---
Modified: src/modules/sipcapture/hep.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5274a0f9e5a5b74bbc37a6d74504b51…
Patch:
https://github.com/kamailio/kamailio/commit/5274a0f9e5a5b74bbc37a6d74504b51…
---
diff --git a/src/modules/sipcapture/hep.c b/src/modules/sipcapture/hep.c
index cd3338317c..6eaf13ab2b 100644
--- a/src/modules/sipcapture/hep.c
+++ b/src/modules/sipcapture/hep.c
@@ -973,8 +973,7 @@ int hepv3_get_chunk(struct sip_msg *msg, char *buf, unsigned int len,
int req_ch
goto done;
case 9:
hg->time_sec = (hep_chunk_uint32_t *) (tmp);
- hg->time_sec->data =
ntohl(hg->time_sec->data);
- ret = pv_get_uintval(msg, param, res,
hg->time_sec->data);
+ ret = pv_get_uintval(msg, param, res,
ntohl(hg->time_sec->data));
goto done;
case 10: