Skip to content

Commit

Permalink
log channel remove with proper call-id (2600hz#3787)
Browse files Browse the repository at this point in the history
* log channel remove with proper call-id

* dialyzer complains
  • Loading branch information
lazedo authored and k-anderson committed Jun 2, 2017
1 parent 5e83b3d commit 9a34def
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions applications/ecallmgr/src/ecallmgr.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@

-type channel() :: #channel{}.
-type channels() :: [channel()].
-type channel_updates() :: [{pos_integer(), any()}].

-record(conference, {name :: api_binary() | '$1' | '_'
,uuid :: api_binary() | '$1' | '_'
Expand Down
3 changes: 2 additions & 1 deletion applications/ecallmgr/src/ecallmgr_fs_channels.erl
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ destroy(UUID, Node) ->
update(UUID, Key, Value) ->
updates(UUID, [{Key, Value}]).

-spec updates(ne_binary(), kz_proplist()) -> 'ok'.
-spec updates(ne_binary(), channel_updates()) -> 'ok'.
updates(UUID, Updates) ->
gen_server:call(?SERVER, {'channel_updates', UUID, Updates}).

Expand Down Expand Up @@ -434,6 +434,7 @@ handle_call(_, _, State) ->
%%--------------------------------------------------------------------
-spec handle_cast(any(), state()) -> {'noreply', state()}.
handle_cast({'destroy_channel', UUID, Node}, State) ->
kz_util:put_callid(UUID),
MatchSpec = [{#channel{uuid='$1', node='$2', _ = '_'}
,[{'andalso', {'=:=', '$2', {'const', Node}}
,{'=:=', '$1', UUID}}
Expand Down

0 comments on commit 9a34def

Please sign in to comment.