Fix call forward user_exists result is a string this fixes ability to call external numbers
This commit is contained in:
@@ -191,7 +191,7 @@
|
|||||||
cmd = "user_exists id ".. forward_all_destination .." "..domain_name;
|
cmd = "user_exists id ".. forward_all_destination .." "..domain_name;
|
||||||
end
|
end
|
||||||
user_exists = trim(api:executeString(cmd));
|
user_exists = trim(api:executeString(cmd));
|
||||||
if (user_exists) then
|
if (user_exists == "true") then
|
||||||
if (destination_user ~= nil) then
|
if (destination_user ~= nil) then
|
||||||
dial_string = dial_string .. "user/"..destination_user.."@"..domain_name;
|
dial_string = dial_string .. "user/"..destination_user.."@"..domain_name;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user