From 4bd55fd4b336a4eadd0728b25b8c97ed9c31f853 Mon Sep 17 00:00:00 2001 From: Karsten Horsmann Date: Wed, 22 Nov 2017 15:53:53 +0100 Subject: [PATCH] fix typo in function ksr_branch_manage Typo of "$T_branch_idx]" returns always nil - Error then "attempt to concatenate a nil value" from lua. Reorder the ] into a string. --- misc/examples/kemi/kamailio-basic-kemi-lua.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/examples/kemi/kamailio-basic-kemi-lua.lua b/misc/examples/kemi/kamailio-basic-kemi-lua.lua index e92f4ec995d..ed973f171b0 100644 --- a/misc/examples/kemi/kamailio-basic-kemi-lua.lua +++ b/misc/examples/kemi/kamailio-basic-kemi-lua.lua @@ -333,8 +333,8 @@ end -- Manage outgoing branches -- equivalent of branch_route[...]{} function ksr_branch_manage() - KSR.dbg("new branch [".. KSR.pv.get("$T_branch_idx]") - .. " to ".. KSR.pv.get("$ru") .. "\n"); + KSR.dbg("new branch [".. KSR.pv.get("$T_branch_idx") + .. "] to ".. KSR.pv.get("$ru") .. "\n"); ksr_route_natmanage(); return 1; end