Skip to content

Commit

Permalink
when the number is undefined it defaults to an empty binary, not the …
Browse files Browse the repository at this point in the history
…atom undefined
  • Loading branch information
k-anderson committed Jan 23, 2012
1 parent d11eade commit db83a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whistle_apps/apps/callflow/src/module/cf_call_forward.erl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ cf_toggle(CF, Call) ->
%% @end
%%--------------------------------------------------------------------
-spec(cf_activate/2 :: (CF :: #callfwd{}, Call :: #cf_call{}) -> #callfwd{}).
cf_activate(#callfwd{number=undefined}=CF, Call) ->
cf_activate(#callfwd{number = <<>>}=CF, Call) ->
cf_activate(cf_update_number(CF, Call), Call);
cf_activate(#callfwd{number=Number, prompts=Prompts}=CF, #cf_call{capture_group=undefined}=Call) ->
?LOG("activating call forwarding"),
Expand Down

0 comments on commit db83a0e

Please sign in to comment.