Module: kamailio
Branch: 5.4
Commit: 345376cb49a5464ebb65f940e97262e010dc24ae
URL:
https://github.com/kamailio/kamailio/commit/345376cb49a5464ebb65f940e97262e…
Author: Guillem Jover <gjover(a)sipwise.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-11-06T14:25:16Z
sl: Fix 3xx stats RPC marshalling
The struct_add() method was getting 4 values but only 3 "d".
(cherry picked from commit ac55cc5ce5fcbb50d3a2a6b228585dce8fc1150d)
---
Modified: src/modules/sl/sl_stats.c
---
Diff:
https://github.com/kamailio/kamailio/commit/345376cb49a5464ebb65f940e97262e…
Patch:
https://github.com/kamailio/kamailio/commit/345376cb49a5464ebb65f940e97262e…
---
diff --git a/src/modules/sl/sl_stats.c b/src/modules/sl/sl_stats.c
index dd683eda5b..079786aade 100644
--- a/src/modules/sl/sl_stats.c
+++ b/src/modules/sl/sl_stats.c
@@ -73,7 +73,7 @@ static void rpc_stats(rpc_t* rpc, void* c)
"202", total.err[RT_202],
"2xx", total.err[RT_2xx]);
- rpc->struct_add(st, "ddd",
+ rpc->struct_add(st, "dddd",
"300", total.err[RT_300],
"301", total.err[RT_301],
"302", total.err[RT_302],