From c247e1c5a07c26cb772342f242cbbb71f7b58a82 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 23 Sep 2014 08:01:56 +0000 Subject: [PATCH] Fix call forward user_exists result is a string this fixes ability to call external numbers --- resources/install/scripts/call_forward.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/install/scripts/call_forward.lua b/resources/install/scripts/call_forward.lua index a93c50bf69..ddb5e735dc 100644 --- a/resources/install/scripts/call_forward.lua +++ b/resources/install/scripts/call_forward.lua @@ -191,7 +191,7 @@ cmd = "user_exists id ".. forward_all_destination .." "..domain_name; end user_exists = trim(api:executeString(cmd)); - if (user_exists) then + if (user_exists == "true") then if (destination_user ~= nil) then dial_string = dial_string .. "user/"..destination_user.."@"..domain_name; else