Add the following == "true" to fix the if statement.

This commit is contained in:
Mark Crane
2012-12-04 20:09:57 +00:00
parent 74073d6cc4
commit b649ce9264

View File

@@ -179,7 +179,7 @@
end
status = dbh:query(sql, function(row)
--check for matching options
if (api:execute("regex", digits.."|"..row.ivr_menu_option_digits)) then
if (api:execute("regex", digits.."|"..row.ivr_menu_option_digits) == "true") then
if (row.ivr_menu_option_action == "menu-exec-app") then
--get the action and data
pos = string.find(row.ivr_menu_option_param, " ", 0, true);