Fix a nil error for fax_remote_station_id and make the caller id name and number work for inbound FAX.

This commit is contained in:
Mark Crane 2015-05-13 06:46:36 +00:00
parent dd9ade256f
commit 4ff324bfcf
1 changed files with 9 additions and 0 deletions

View File

@ -122,6 +122,15 @@
if (fax_uri == nil) then
fax_uri = "";
end
if (fax_remote_station_id == nil) then
fax_remote_station_id = "";
end
if (caller_id_name == nil) then
caller_id_name = env:getHeader("Caller-Caller-ID-Name");
end
if (caller_id_number == nil) then
caller_id_number = env:getHeader("Caller-Caller-ID-Number");
end
--set default values
if (not fax_success) then