Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

WHISTLE-42: fix the logic for callback

  • Loading branch information...
commit 8449d1f100f72d73a601cc35bb184e199669d181 1 parent b5d264f
@k-anderson k-anderson authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 whistle_apps/apps/callflow/src/module/cf_park.erl
View
8 whistle_apps/apps/callflow/src/module/cf_park.erl
@@ -491,11 +491,11 @@ wait_for_pickup(SlotNumber, RingbackId, Call) ->
case whapps_call_command:b_hold(?DEFAULT_RINGBACK_TM, Call) of
{error, timeout} ->
TmpCID = <<"Parking slot ", SlotNumber/binary>>,
- Hungup = case whapps_call_command:channel_status(Call) of
- {ok, _} -> false;
- {error, _} -> true
+ ChannelUp = case whapps_call_command:channel_status(Call) of
+ {ok, _} -> true;
+ {error, _} -> false
end,
- case Hungup andalso ringback_parker(RingbackId, SlotNumber, TmpCID, Call) of
+ case ChannelUp andalso ringback_parker(RingbackId, SlotNumber, TmpCID, Call) of
answered ->
lager:debug("parked caller ringback was answered"),
cf_exe:continue(Call);
Please sign in to comment.
Something went wrong with that request. Please try again.