Cast the string to a number to increment call block count

This commit is contained in:
FusionPBX 2023-06-14 19:08:37 -06:00 committed by GitHub
parent 9f339f4ff2
commit f8c31c4958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@
sql = "update v_call_block ";
sql = sql .. "set call_block_count = :call_block_count ";
sql = sql .. "where call_block_uuid = :call_block_uuid ";
local params = {call_block_uuid = call_block_uuid, call_block_count = call_block_count + 1};
local params = {call_block_uuid = call_block_uuid, call_block_count = #call_block_count + 1};
if (debug["sql"]) then
freeswitch.consoleLog("notice", "[dialplan] SQL: " .. sql .. "; params:" .. json.encode(params) .. "\n");
end