Permalink
Browse files

WHISTLE-824: send unsolicited CHANNEL_DESTROY events to ensure all pa…

…rties are informed when channels go down
  • Loading branch information...
1 parent 0023468 commit f30f03e4c7d395dd5bc3022bcacda5d4e9b57cc8 @k-anderson k-anderson committed Feb 3, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 ecallmgr/src/ecallmgr_fs_node.erl
@@ -199,7 +199,10 @@ handle_info({event, [UUID | Data]}, #state{node=Node, stats=#node_stats{created_
{noreply, State, hibernate};
<<"CS_DESTROY">> ->
?LOG(UUID, "received channel destroyed", []),
- spawn(fun() -> ecallmgr_call_control:rm_leg(Data) end),
+ spawn(fun() ->
+ ecallmgr_call_control:rm_leg(Data),
+ ecallmgr_call_events:publish_channel_destroy(Data)
+ end),
{noreply, State#state{stats=Stats#node_stats{destroyed_channels=De+1}}, hibernate}
end;
<<"CHANNEL_HANGUP_COMPLETE">> ->

0 comments on commit f30f03e

Please sign in to comment.