Skip to content

Commit

Permalink
KAZOO-3891: move wnm_util:normalize_number/1 calls to knm_converters:…
Browse files Browse the repository at this point in the history
…normalize/1
  • Loading branch information
fenollp committed Mar 3, 2016
1 parent a11db4b commit e56abb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion applications/crossbar/src/modules/cb_blacklists.erl
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,6 @@ format_numbers_foldl(Number, Data, JObj) ->
case wh_util:anonymous_caller_id_number() of
Number -> wh_json:set_value(Number, Data, JObj);
_Else ->
E164 = wnm_util:normalize_number(Number),
E164 = knm_converters:normalize(Number),
wh_json:set_value(E164, Data, JObj)
end.
2 changes: 1 addition & 1 deletion core/whistle_apps/src/whapps_call.erl
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ maybe_reformat_caller_id(CallerId, Format) ->
-spec maybe_regex_caller_id(ne_binary(), api_binary(), wh_json:object()) -> ne_binary().
maybe_regex_caller_id(CallerId, 'undefined', _) -> CallerId;
maybe_regex_caller_id(CallerId, Regex, Format) ->
Normalized = wnm_util:normalize_number(CallerId),
Normalized = knm_converters:normalize(CallerId),
case re:run(Normalized, Regex, [{'capture', 'all_but_first', 'binary'}]) of
{'match', UseCid} ->
lager:info("cid rewrite match found ~s from normalized caller id ~s"
Expand Down

0 comments on commit e56abb7

Please sign in to comment.