Module: kamailio
Branch: master
Commit: 3a4681c55eaca962344c0e451aa7e91770fb3dc5
URL:
https://github.com/kamailio/kamailio/commit/3a4681c55eaca962344c0e451aa7e91…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-06-21T13:39:02+02:00
rtpengine: use the long long macro to get the value from json
---
Modified: src/modules/rtpengine/rtpengine.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3a4681c55eaca962344c0e451aa7e91…
Patch:
https://github.com/kamailio/kamailio/commit/3a4681c55eaca962344c0e451aa7e91…
---
diff --git a/src/modules/rtpengine/rtpengine.c b/src/modules/rtpengine/rtpengine.c
index 02fa3e5b66f..59bcfb47795 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -1412,7 +1412,7 @@ static int rtpengine_raise_dtmf_event(char *buffer, int len) {
pv_value_t pv_val;
int_str val = {0};
char intbuf[32];
- snprintf(intbuf, sizeof(intbuf), "%lli", SRJSON_GET_INT(it));
+ snprintf(intbuf, sizeof(intbuf), "%lld", SRJSON_GET_LLONG(it));
memset(&val, 0, sizeof(val));
pv_val.rs.s = intbuf;
@@ -1427,7 +1427,7 @@ static int rtpengine_raise_dtmf_event(char *buffer, int len) {
pv_value_t pv_val;
int_str val = {0};
char intbuf[32];
- snprintf(intbuf, sizeof(intbuf), "%lli", SRJSON_GET_INT(it));
+ snprintf(intbuf, sizeof(intbuf), "%lld", SRJSON_GET_LLONG(it));
memset(&val, 0, sizeof(val));
pv_val.rs.s = intbuf;