Skip to content

Commit

Permalink
PISTON-1050: j5_channels: suppress logging expected ignored kz_hook e…
Browse files Browse the repository at this point in the history
…vents (2600hz#6420)
  • Loading branch information
danielfinke authored and jamesaimonetti committed Mar 27, 2020
1 parent c610e2d commit 8725713
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion applications/jonny5/src/j5_channels.erl
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,10 @@ handle_info(?HOOK_EVT(_, <<"CHANNEL_DISCONNECTED">>, JObj), State) ->
%% for this event
handle_channel_destroy(kz_api:call_id(JObj)),
{'noreply', State};
handle_info(?HOOK_EVT(_, <<"CHANNEL_CONNECTED">>, _JObj), State) ->
handle_info(?HOOK_EVT(_, Event, _JObj), State) when Event =:= <<"CHANNEL_CONNECTED">>
orelse Event =:= <<"CHANNEL_HOLD">>
orelse Event =:= <<"CHANNEL_UNHOLD">>
orelse Event =:= <<"DTMF">> ->
{'noreply', State};
handle_info('cleanup', State) ->
_P = kz_process:spawn(fun delete_destroyed_channels/0),
Expand Down

0 comments on commit 8725713

Please sign in to comment.