Skip to content

Commit

Permalink
WHISTLE-42: call pickup handling in ecallmgr_util
Browse files Browse the repository at this point in the history
  • Loading branch information
James Aimonetti committed Aug 16, 2012
1 parent ce264f3 commit 1cd0290
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ecallmgr/src/ecallmgr_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ send_cmd(Node, _UUID, "broadcast", Args) ->
Resp = freeswitch:api(Node, uuid_broadcast, wh_util:to_list(iolist_to_binary(Args))),
lager:debug("broadcast resulted in: ~p", [Resp]),
Resp;
send_cmd(Node, UUID, "call_pickup", Args) ->
lager:debug("execute on node ~s: uuid_bridge(~s)", [Node, Args]),
_ = ecallmgr_util:fs_log(Node, "whistle executing call_pickup (uuid_bridge ~s)", [Args]),
freeswitch:api(Node, uuid_bridge, wh_util:to_list(Args));
send_cmd(Node, UUID, "hangup", _) ->
lager:debug("terminate call on node ~s", [Node]),
_ = ecallmgr_util:fs_log(Node, "whistle terminating call", []),
Expand Down

0 comments on commit 1cd0290

Please sign in to comment.