remove the plus from destination_number

This commit is contained in:
Mark Crane
2014-06-04 20:57:08 +00:00
parent 55942f781f
commit de9f64c64b

View File

@@ -26,6 +26,11 @@
--get the variables
local destination_number = session:getVariable("destination_number");
--remove the plus if it exists
if (string.sub(destination_number, 0, 1) == "+") then
destination_number = string.sub(destination_number, 2, (string.len(destination_number)));
end
--connect to the database
dofile(scripts_dir.."/resources/functions/database_handle.lua");
dbh = database_handle('system');