remove the plus from destination_number
This commit is contained in:
@@ -26,6 +26,11 @@
|
|||||||
--get the variables
|
--get the variables
|
||||||
local destination_number = session:getVariable("destination_number");
|
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
|
--connect to the database
|
||||||
dofile(scripts_dir.."/resources/functions/database_handle.lua");
|
dofile(scripts_dir.."/resources/functions/database_handle.lua");
|
||||||
dbh = database_handle('system');
|
dbh = database_handle('system');
|
||||||
|
|||||||
Reference in New Issue
Block a user