Permalink
Browse files

WHISTLE-967: the UI has moved this option to a new location, honor it

  • Loading branch information...
1 parent 55ad66f commit 54a2970ca506b86d9cd148f33b0bc69b00151d51 @k-anderson k-anderson committed Oct 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 whistle_apps/apps/callflow/src/cf_endpoint.erl
@@ -341,9 +341,9 @@ generate_ccvs(Endpoint, Call, CallFwd) ->
end
end
,fun(J) ->
- case wh_json:is_false([<<"media">>, <<"fax">>, <<"option">>], Endpoint) of
- true -> J;
- false -> wh_json:set_value(<<"Fax-Enabled">>, <<"true">>, J)
+ case wh_json:get_value([<<"media">>, <<"fax_option">>], Endpoint) of
+ <<"auto">> -> wh_json:set_value(<<"Fax-Enabled">>, <<"true">>, J);
+ _Else -> J
end
end
,fun(J) ->

0 comments on commit 54a2970

Please sign in to comment.