Cleanup up the tabbing and trailing spaces and tabs.
This commit is contained in:
parent
8add692a43
commit
1f201eaca6
|
|
@ -36,8 +36,8 @@
|
||||||
|
|
||||||
if (session ~= nil) then
|
if (session ~= nil) then
|
||||||
originate_disposition = session:getVariable("originate_disposition");
|
originate_disposition = session:getVariable("originate_disposition");
|
||||||
|
|
||||||
if( originate_disposition=='USER_BUSY' ) then
|
if ( originate_disposition=='USER_BUSY' ) then
|
||||||
|
|
||||||
dialed_extension = session:getVariable("dialed_extension");
|
dialed_extension = session:getVariable("dialed_extension");
|
||||||
context = session:getVariable("context");
|
context = session:getVariable("context");
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
|
|
||||||
if (dialed_extension ~= nil) then
|
if (dialed_extension ~= nil) then
|
||||||
if (session:ready()) then
|
if (session:ready()) then
|
||||||
|
|
||||||
--get the information from the database
|
--get the information from the database
|
||||||
sql = [[SELECT * FROM v_extensions
|
sql = [[SELECT * FROM v_extensions
|
||||||
WHERE domain_uuid = ']] .. domain_uuid ..[['
|
WHERE domain_uuid = ']] .. domain_uuid ..[['
|
||||||
|
|
@ -78,8 +78,8 @@
|
||||||
freeswitch.consoleLog("notice", "[forward_on_busy] SQL: " .. sql .. "\n");
|
freeswitch.consoleLog("notice", "[forward_on_busy] SQL: " .. sql .. "\n");
|
||||||
end
|
end
|
||||||
status = dbh:query(sql, function(row)
|
status = dbh:query(sql, function(row)
|
||||||
forward_busy_destination = string.lower(row["forward_busy_destination"]);
|
forward_busy_destination = string.lower(row["forward_busy_destination"]);
|
||||||
end);
|
end);
|
||||||
|
|
||||||
--set default values
|
--set default values
|
||||||
if (forward_busy_destination ~= nil and string.len(forward_busy_destination)>0 ) then
|
if (forward_busy_destination ~= nil and string.len(forward_busy_destination)>0 ) then
|
||||||
|
|
@ -104,5 +104,5 @@
|
||||||
|
|
||||||
--close the database connection
|
--close the database connection
|
||||||
dbh:release();
|
dbh:release();
|
||||||
|
|
||||||
return forward;
|
return forward;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue