Skip to content

Commit

Permalink
update handling of a menu's greeting media file (2600hz#5296)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaimonetti authored and lazedo committed Nov 23, 2018
1 parent d36f2b3 commit 968a3e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions applications/callflow/src/module/cf_menu.erl
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,8 @@ play_exit_prompt(#cf_menu_data{exit_media=Id}, Call) ->
-spec get_prompt(menu(), kapps_call:call()) -> kz_term:ne_binary().
get_prompt(#cf_menu_data{greeting_id='undefined'}, Call) ->
kapps_call:get_prompt(Call, <<"menu-no_prompt">>);
get_prompt(#cf_menu_data{greeting_id = <<"local_stream://", _/binary>> = ID}, _) ->
ID;
get_prompt(#cf_menu_data{greeting_id=Id}, Call) ->
<<$/, (kapps_call:account_db(Call))/binary, $/, Id/binary>>.
kz_media_util:media_path(Id, kapps_call:account_id(Call)).

%%------------------------------------------------------------------------------
%% @doc
Expand Down

0 comments on commit 968a3e4

Please sign in to comment.