Module: kamailio
Branch: 5.3
Commit: c64c264c84a12b66aa77e088306fe9914c08d558
URL:
https://github.com/kamailio/kamailio/commit/c64c264c84a12b66aa77e088306fe99…
Author: Guillem Jover <gjover(a)sipwise.com>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-11-06T14:24:51Z
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/c64c264c84a12b66aa77e088306fe99…
Patch:
https://github.com/kamailio/kamailio/commit/c64c264c84a12b66aa77e088306fe99…
---
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],