Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions applications/ecallmgr/src/ecallmgr_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,8 @@ get_fs_key_and_value(_, _, _) -> 'skip'.
%% @end
%%------------------------------------------------------------------------------
-spec maybe_sanitize_fs_value(kz_term:text(), kz_term:text()) -> binary().
maybe_sanitize_fs_value(<<"Outbound-Caller-ID-Name">>, <<"_undef_">>) ->
<<"_undef_">>;
maybe_sanitize_fs_value(<<"Outbound-Caller-ID-Name">>, Val) ->
re:replace(Val, <<"[^a-zA-Z0-9-\s]">>, <<>>, ['global', {'return', 'binary'}]);
maybe_sanitize_fs_value(<<"Outbound-Callee-ID-Name">>, Val) ->
Expand Down
16 changes: 15 additions & 1 deletion core/kazoo_endpoint/doc/formatters.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ For outbound (to the carrier) formatters, you can see the fields available by lo

Inbound (from the carrier) fields are found in the [kapi_route request schema](https://github.com/2600hz/kazoo/blob/master/applications/crossbar/priv/couchdb/schemas/kapi_route.req.json).

In both of the above cases the request, to and from fields are tracked outside of the mentioned schemas.
In both of the above cases the request, to and from fields are tracked outside of the mentioned schemas.

#### Devices, users, accounts

Expand Down Expand Up @@ -188,3 +188,17 @@ The caller ID presented to the device can be altered by creating a formatter obj
```

This would match caller id numbers that end with 10 digits and capture them as the value to be used.

### Remove Caller-ID-Name from SIP From Header

To remove Caller-ID-Name from SIP From Header for outbound calls you sould set static value ['\_undef_'](https://freeswitch.org/jira/browse/FS-942) for the 'outbound_caller_id_name' formatter:

```json
"formatters": {
"outbound_caller_id_name": [
{
"value": "_undef_"
}
]
}
```