Skip to content

Commit

Permalink
no need for json in conference DEFAULT_CONTROLS
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo authored Sep 24, 2016
1 parent db789d4 commit c85326d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions applications/conference/src/conference.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@
,{<<"enter-sound">>, <<"">>}
]).

-define(DEFAULT_CONTROLS, kz_json:from_list(
[kz_json:from_list([{<<"action">>, <<"mute">>}, {<<"digits">>, <<"*1">>}])
,kz_json:from_list([{<<"action">>, <<"mute on">>}, {<<"digits">>, <<"*2">>}])
,kz_json:from_list([{<<"action">>, <<"mute off">>}, {<<"digits">>, <<"*3">>}])
,kz_json:from_list([{<<"action">>, <<"deaf">>}, {<<"digits">>, <<"*4">>}])
,kz_json:from_list([{<<"action">>, <<"deaf on">>}, {<<"digits">>, <<"*5">>}])
,kz_json:from_list([{<<"action">>, <<"deaf off">>}, {<<"digits">>, <<"*6">>}])
,kz_json:from_list([{<<"action">>, <<"hangup">>}, {<<"digits">>, <<"#">>}])
])).
-define(DEFAULT_CONTROLS, [kz_json:from_list([{<<"action">>, <<"mute">>}, {<<"digits">>, <<"*1">>}])
,kz_json:from_list([{<<"action">>, <<"mute on">>}, {<<"digits">>, <<"*2">>}])
,kz_json:from_list([{<<"action">>, <<"mute off">>}, {<<"digits">>, <<"*3">>}])
,kz_json:from_list([{<<"action">>, <<"deaf">>}, {<<"digits">>, <<"*4">>}])
,kz_json:from_list([{<<"action">>, <<"deaf on">>}, {<<"digits">>, <<"*5">>}])
,kz_json:from_list([{<<"action">>, <<"deaf off">>}, {<<"digits">>, <<"*6">>}])
,kz_json:from_list([{<<"action">>, <<"hangup">>}, {<<"digits">>, <<"#">>}])
]).

-define(DEFAULT_ADVERTISE_CONFIG, 'undefined').
-define(PAGE_ADVERTISE_CONFIG, 'undefined').
Expand Down

0 comments on commit c85326d

Please sign in to comment.