Skip to content
Browse files

Ring channel exits when fs chan hangsup.

  • Loading branch information...
1 parent 0a9e5f9 commit 37c82a950c0c60bbc43ea57e2d670ab9e4c7d22e @lordnull lordnull committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 include_apps/oacd_freeswitch/src/freeswitch_ring_transient.erl
View
8 include_apps/oacd_freeswitch/src/freeswitch_ring_transient.erl
@@ -169,7 +169,13 @@ handle_event("CHANNEL_BRIDGE", _Data, {Fsnode, _UUID}, #state{call = #call{type
freeswitch:api(Fsnode, uuid_park, Call#call.id),
{stop, normal, State}
end;
-handle_event(_, _, _, State) ->
+
+handle_event("CHANNEL_HANGUP", _Data, _Fsref, State) ->
+ ?WARNING("Hangup event, stopping", []),
+ {stop,agent_hangup,State};
+
+handle_event(Event, _, _, State) ->
+ ?DEBUG("Ignoring event ~p", [Event]),
{noreply, State}.
%% =====

0 comments on commit 37c82a9

Please sign in to comment.
Something went wrong with that request. Please try again.