diff --git a/applications/teletype/src/teletype_fax_util.erl b/applications/teletype/src/teletype_fax_util.erl index 1e6e25bf9b7..ac055b067c7 100644 --- a/applications/teletype/src/teletype_fax_util.erl +++ b/applications/teletype/src/teletype_fax_util.erl @@ -242,4 +242,6 @@ get_file_name(Macros, Ext) -> end, LocalDateTime = props:get_value([<<"date_called">>, <<"local">>], Macros, <<"0000-00-00_00-00-00">>), FName = list_to_binary([CallerID, "_", kz_time:pretty_print_datetime(LocalDateTime), ".", Ext]), - re:replace(kz_term:to_lower_binary(FName), <<"\\s+">>, <<"_">>, [{'return', 'binary'}, 'global']). + ReOpts = [{'return', 'binary'}, 'global'], + NoSpaces = re:replace(kz_term:to_lower_binary(FName), <<"\\s+">>, <<"_">>, ReOpts), + re:replace(NoSpaces, <<":">>, <<"-">>, ReOpts).