Permalink
Browse files

WHISTLE-42: fix the logic for callback

  • Loading branch information...
1 parent b5d264f commit 8449d1f100f72d73a601cc35bb184e199669d181 @k-anderson k-anderson committed Jul 24, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 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);

0 comments on commit 8449d1f

Please sign in to comment.