From 8db92444c2dd7054c2de09a2068a4b2209b01887 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Sat, 9 Mar 2013 04:11:56 -0500 Subject: cast to number --- misc/freeswitch/scripts/common/intruder.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'misc/freeswitch/scripts') diff --git a/misc/freeswitch/scripts/common/intruder.lua b/misc/freeswitch/scripts/common/intruder.lua index fa937f4..7d12155 100644 --- a/misc/freeswitch/scripts/common/intruder.lua +++ b/misc/freeswitch/scripts/common/intruder.lua @@ -70,11 +70,11 @@ function Intruder.sources_list(self, key) ignore = (record.list_type == 'whitelist'), contact_first = 0, contact_last = 0, - contact_count = record.contact_count, + contact_count = tonumber(record.contact_count) or 0, span_contact_count = 0, span_start = 0, - points = record.points, - banned = record.bans, + points = tonumber(record.points) or 0, + banned = tonumber(record.bans) or 0, }; sources_count = sources_count + 1; if record.list_type == 'whitelist' then -- cgit v1.2.3