Permalink
Browse files

WHISTLE-42: only preform the default action if the wildcard is empty

  • Loading branch information...
1 parent 642f741 commit 1a65214a28a6354e837a3c9f6d2b68d8151a0f63 @k-anderson k-anderson committed Feb 14, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 whistle_apps/apps/callflow/src/module/cf_resources.erl
@@ -72,11 +72,13 @@ bridge_to_resources([{DestNum, Rsc, _CIDType}|T], Timeout, IgnoreEarlyMedia, Rin
end;
bridge_to_resources([], _, _, _, Call) ->
?LOG("resources exhausted without success"),
+ WildcardIsEmpty = cf_exe:wildcard_is_empty(Call),
case cf_util:handle_bridge_failure(<<"NO_ROUTE_DESTINATION">>, Call) =:= ok of
true -> ok;
- false ->
+ false when WildcardIsEmpty ->
cf_util:send_default_response(<<"NO_ROUTE_DESTINATION">>, Call),
- cf_exe:continue(Call)
+ cf_exe:continue(Call);
+ false -> cf_exe:continue(Call)
end.
%%--------------------------------------------------------------------

0 comments on commit 1a65214

Please sign in to comment.