[sr-dev] git:master:ac55cc5c: sl: Fix 3xx stats RPC marshalling
Guillem Jover
gjover at sipwise.com
Fri Nov 6 07:50:24 CET 2020
Module: kamailio
Branch: master
Commit: ac55cc5ce5fcbb50d3a2a6b228585dce8fc1150d
URL: https://github.com/kamailio/kamailio/commit/ac55cc5ce5fcbb50d3a2a6b228585dce8fc1150d
Author: Guillem Jover <gjover at sipwise.com>
Committer: Guillem Jover <gjover at sipwise.com>
Date: 2020-11-05T18:37:30+01:00
sl: Fix 3xx stats RPC marshalling
The struct_add() method was getting 4 values but only 3 "d".
---
Modified: src/modules/sl/sl_stats.c
---
Diff: https://github.com/kamailio/kamailio/commit/ac55cc5ce5fcbb50d3a2a6b228585dce8fc1150d.diff
Patch: https://github.com/kamailio/kamailio/commit/ac55cc5ce5fcbb50d3a2a6b228585dce8fc1150d.patch
---
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],
More information about the sr-dev
mailing list