diff --git a/lib/NGCP/Panel/Utils/Fax.pm b/lib/NGCP/Panel/Utils/Fax.pm index 3b7dc6d7f9..22d84c13cd 100644 --- a/lib/NGCP/Panel/Utils/Fax.pm +++ b/lib/NGCP/Panel/Utils/Fax.pm @@ -128,8 +128,8 @@ sub get_fax { return; } binmode $tmp_fh; - close $tmp_fh; print $tmp_fh $item->voip_fax_data->data; + close $tmp_fh; } else { return ($item->voip_fax_data->data, $ext); }