Permalink
Browse files

WHISTLE-42: use xfer for hold

  • Loading branch information...
1 parent 94c4adb commit d37411bf4d14a2b16a8eb8e577d5e5bec2d7a320 @k-anderson k-anderson committed Feb 25, 2012
Showing with 7 additions and 3 deletions.
  1. +1 −1 ecallmgr/src/ecallmgr.hrl
  2. +5 −1 ecallmgr/src/ecallmgr_call_command.erl
  3. +1 −1 ecallmgr/src/ecallmgr_fs_node.erl
@@ -109,7 +109,7 @@
,{<<"conference">>, <<"conference">>}
,{<<"noop">>, <<"noop">>}
,{<<"execute_extension">>, <<"execute_extension">>}
- ,{<<"endless_playback">>, <<"hold">>}
+ ,{<<"hold">>, <<"hold">>}
,{<<"uuid_record">>, <<"record_call">>}
,{<<"presence">>, <<"presence">>}
]).
@@ -223,7 +223,11 @@ get_fs_app(_Node, _UUID, _JObj, <<"progress">>) ->
{<<"pre_answer">>, <<>>};
get_fs_app(_Node, _UUID, _JObj, <<"hold">>) ->
- {<<"endless_playback">>, <<"${hold_music}">>};
+ DP = [{"application", "endless_playback ${hold_music}"}
+ ,{"application", create_masquerade_event(<<"hold">>, <<"CHANNEL_EXECUTE_COMPLETE">>)}
+ ,{"application", "park "}
+ ],
+ {<<"xferext">>, DP};
get_fs_app(_Node, _UUID, _JObj, <<"park">>) ->
{<<"park">>, <<>>};
@@ -479,7 +479,7 @@ process_transfer_event(_, Data) ->
ok
end,
TransfereeCtrlUUId = props:get_value(<<"Replaces">>, Data),
- case ecallmgr_call_control_sup:find_worker(TransfereeCtrlUUId) of
+ case ecallmgr_call_control_sup:find_workers(TransfereeCtrlUUId) of
{ok, ReplacesPids} ->
[begin
ecallmgr_call_control:transferee(Pid, Data),

0 comments on commit d37411b

Please sign in to comment.