Fix call forward user_exists result is a string this fixes ability to call external numbers

This commit is contained in:
Mark Crane
2014-09-23 08:01:56 +00:00
parent 093d7bb369
commit c247e1c5a0

View File

@@ -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