Module: kamailio Branch: master Commit: ac55cc5ce5fcbb50d3a2a6b228585dce8fc1150d URL: https://github.com/kamailio/kamailio/commit/ac55cc5ce5fcbb50d3a2a6b228585dce8fc1150d
Author: Guillem Jover <[email protected]> Committer: Guillem Jover <[email protected]> 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], _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
