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:
parent
b2a4a112f4
commit
a438c8134b
|
|
@ -122,6 +122,15 @@
|
||||||
if (fax_uri == nil) then
|
if (fax_uri == nil) then
|
||||||
fax_uri = "";
|
fax_uri = "";
|
||||||
end
|
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
|
--set default values
|
||||||
if (not fax_success) then
|
if (not fax_success) then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue