Fax Server - Sent List: Fix Destination value.
This commit is contained in:
parent
caba7800d1
commit
cb9c79bf86
|
|
@ -409,6 +409,9 @@
|
||||||
table.insert(sql, ":domain_uuid");
|
table.insert(sql, ":domain_uuid");
|
||||||
table.insert(sql, ")");
|
table.insert(sql, ")");
|
||||||
sql = table.concat(sql, "\n");
|
sql = table.concat(sql, "\n");
|
||||||
|
if (sip_to_user == nil) then
|
||||||
|
sip_to_user = fax_destination_number;
|
||||||
|
end
|
||||||
local params = {
|
local params = {
|
||||||
uuid = uuid;
|
uuid = uuid;
|
||||||
domain_uuid = domain_uuid;
|
domain_uuid = domain_uuid;
|
||||||
|
|
@ -417,7 +420,7 @@
|
||||||
caller_id_name = fax_caller_id_name;
|
caller_id_name = fax_caller_id_name;
|
||||||
caller_id_number = fax_caller_id_number;
|
caller_id_number = fax_caller_id_number;
|
||||||
fax_recipient = fax_recipient;
|
fax_recipient = fax_recipient;
|
||||||
fax_destination = fax_destination_number;
|
fax_destination = sip_to_user;
|
||||||
fax_base64 = fax_base64;
|
fax_base64 = fax_base64;
|
||||||
fax_date = os.date("%Y-%m-%d %X");
|
fax_date = os.date("%Y-%m-%d %X");
|
||||||
fax_time = os.time();
|
fax_time = os.time();
|
||||||
|
|
@ -453,7 +456,7 @@
|
||||||
freeswitch.consoleLog("INFO","caller_id_number: " .. fax_caller_id_number .. "\n");
|
freeswitch.consoleLog("INFO","caller_id_number: " .. fax_caller_id_number .. "\n");
|
||||||
end
|
end
|
||||||
freeswitch.consoleLog("INFO","fax_recipient: " .. fax_recipient .. "\n");
|
freeswitch.consoleLog("INFO","fax_recipient: " .. fax_recipient .. "\n");
|
||||||
freeswitch.consoleLog("INFO","fax_destination: " .. fax_destination_number .. "\n");
|
freeswitch.consoleLog("INFO","fax_destination: " .. sip_to_user .. "\n");
|
||||||
freeswitch.consoleLog("INFO","fax_result_code: ".. fax_result_code .."\n");
|
freeswitch.consoleLog("INFO","fax_result_code: ".. fax_result_code .."\n");
|
||||||
--freeswitch.consoleLog("INFO","mailfrom_address: ".. from_address .."\n");
|
--freeswitch.consoleLog("INFO","mailfrom_address: ".. from_address .."\n");
|
||||||
--freeswitch.consoleLog("INFO","mailto_address: ".. email_address .."\n");
|
--freeswitch.consoleLog("INFO","mailto_address: ".. email_address .."\n");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue