Skip to content

Commit

Permalink
And also it looks like when we originate a call from Kazoo and "park"…
Browse files Browse the repository at this point in the history
… the call

FS bridges the call to loopback so the test ecallmg_fs_channel:is_bridged() returns true
even though it is only bridged to itself.

When we then play a message to the Agent it causes ecallmgr_call_command:play() to use "broadcast" rather than "playback".

And therefore the CHANNEL_EXECUTE_COMPLETE "FILE PLAYED" event is again blocked and instead only the "BROADCAST SENT" is received
but this is received before the file is played and can't be used as a trigger to continue the call setup.

This fixes the problem by ignoring bridge to loopback but may not be the right way to fix it.
  • Loading branch information
kageds committed Jul 7, 2020
1 parent 69f1726 commit f1c92b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion applications/ecallmgr/src/ecallmgr_fs_channel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ is_bridged(UUID) ->
],
case ets:select(?CHANNELS_TBL, MatchSpec) of
['undefined'] -> lager:debug("channel is not bridged"), 'false';
[Bin] when is_binary(Bin) -> lager:debug("is bridged to: ~s", [Bin]), 'true';
[Bin] when is_binary(Bin)
andalso Bin =/= UUID -> lager:debug("is bridged to: ~s", [Bin]), 'true';
_E -> lager:debug("not bridged: ~p", [_E]), 'false'
end.

Expand Down

0 comments on commit f1c92b4

Please sign in to comment.