Skip to content

Commit

Permalink
HELP-35392-master: set default ringback if there is no custom (2600hz…
Browse files Browse the repository at this point in the history
  • Loading branch information
mark2600 authored and jamesaimonetti committed May 9, 2018
1 parent 0d6c122 commit 40253af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion applications/ecallmgr/src/ecallmgr_fs_bridge.erl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ handle_ringback(Node, UUID, JObj) ->
,JObj
)
of
'undefined' -> 'ok';
'undefined' ->
{'ok', Default} = ecallmgr_util:get_setting(<<"default_ringback">>),
ecallmgr_fs_command:set(Node, UUID, [{<<"ringback">>, kz_term:to_binary(Default)}]);
Media ->
Stream = ecallmgr_util:media_path(Media, 'extant', UUID, JObj),
lager:debug("bridge has custom ringback: ~s", [Stream]),
Expand Down

0 comments on commit 40253af

Please sign in to comment.