Module: kamailio
Branch: master
Commit: 0eac2809862cd8106c1fbfbcdcf0d05c768a9e64
URL:
https://github.com/kamailio/kamailio/commit/0eac2809862cd8106c1fbfbcdcf0d05…
Author: Spencer Thomason <spencer(a)whiteskycommunications.com>
Committer: Spencer Thomason <spencer(a)whiteskycommunications.com>
Date: 2016-07-07T03:03:40-07:00
siptrace: fix timestamp byte order
- swap timestamp byte order on big endian machines
---
Modified: modules/siptrace/siptrace.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0eac2809862cd8106c1fbfbcdcf0d05…
Patch:
https://github.com/kamailio/kamailio/commit/0eac2809862cd8106c1fbfbcdcf0d05…
---
diff --git a/modules/siptrace/siptrace.c b/modules/siptrace/siptrace.c
index 4594e25..078f1a9 100644
--- a/modules/siptrace/siptrace.c
+++ b/modules/siptrace/siptrace.c
@@ -1799,8 +1799,8 @@ static int trace_send_hep_duplicate(str *body, str *from, str *to,
struct dest_i
if(hep_version == 2) {
- hep_time.tv_sec = tvb.tv_sec;
- hep_time.tv_usec = tvb.tv_usec;
+ hep_time.tv_sec = to_le(tvb.tv_sec);
+ hep_time.tv_usec = to_le(tvb.tv_usec);
hep_time.captid = hep_capture_id;
memcpy((void*)buffer+buflen, &hep_time, sizeof(struct hep_timehdr));