summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-09 04:11:56 -0500
committerPeter Kozak <spag@golwen.net>2013-03-09 04:11:56 -0500
commit8db92444c2dd7054c2de09a2068a4b2209b01887 (patch)
treecf1183772d0b037db89a82b8e3776a0bd8cf1909
parentcf506e96cfdd2f399934251f79c6f681503b7d5f (diff)
cast to number
-rw-r--r--misc/freeswitch/scripts/common/intruder.lua6
1 files changed, 3 insertions, 3 deletions
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