Skip to content

Commit

Permalink
WHISTLE-42: only preform the default action if the wildcard is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anderson committed Feb 14, 2012
1 parent 642f741 commit 1a65214
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions whistle_apps/apps/callflow/src/module/cf_resources.erl
Expand Up @@ -72,11 +72,13 @@ bridge_to_resources([{DestNum, Rsc, _CIDType}|T], Timeout, IgnoreEarlyMedia, Rin
end; end;
bridge_to_resources([], _, _, _, Call) -> bridge_to_resources([], _, _, _, Call) ->
?LOG("resources exhausted without success"), ?LOG("resources exhausted without success"),
WildcardIsEmpty = cf_exe:wildcard_is_empty(Call),
case cf_util:handle_bridge_failure(<<"NO_ROUTE_DESTINATION">>, Call) =:= ok of case cf_util:handle_bridge_failure(<<"NO_ROUTE_DESTINATION">>, Call) =:= ok of
true -> ok; true -> ok;
false -> false when WildcardIsEmpty ->
cf_util:send_default_response(<<"NO_ROUTE_DESTINATION">>, Call), cf_util:send_default_response(<<"NO_ROUTE_DESTINATION">>, Call),
cf_exe:continue(Call) cf_exe:continue(Call);
false -> cf_exe:continue(Call)
end. end.


%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
Expand Down

0 comments on commit 1a65214

Please sign in to comment.