Skip to content

Commit

Permalink
custom application var schema/doc updates for 2600hz#5403
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaimonetti committed Feb 12, 2019
1 parent 37d49e1 commit 273e797
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 12 deletions.
1 change: 0 additions & 1 deletion applications/callflow/doc/ref/set_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Validator for the set_variables callflow data object

Key | Description | Type | Default | Required | Support Level
--- | ----------- | ---- | ------- | -------- | -------------
`custom_application_vars./[a-zA-Z0-9\-_]+/` | | `string()` | | `false` |
`custom_application_vars` | Key-value pairs to set as custom_application_vars on the channel | `object()` | `{}` | `true` |
`export` | When true the provided custom_application_vars are set on the channel and any channel bridged to it later | `boolean()` | | `false` |

Expand Down
1 change: 0 additions & 1 deletion applications/callflow/doc/set_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Validator for the set_variables callflow data object

Key | Description | Type | Default | Required | Support Level
--- | ----------- | ---- | ------- | -------- | -------------
`custom_application_vars./[a-zA-Z0-9\-_]+/` | | `string()` | | `false` |
`custom_application_vars` | Key-value pairs to set as custom_application_vars on the channel | `object()` | `{}` | `true` |
`export` | When true the provided custom_application_vars are set on the channel and any channel bridged to it later | `boolean()` | | `false` |

Expand Down
1 change: 0 additions & 1 deletion applications/crossbar/priv/api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3609,7 +3609,6 @@
"description": "Validator for the set_variables callflow data object",
"properties": {
"custom_application_vars": {
"default": {},
"description": "Key-value pairs to set as custom_application_vars on the channel",
"type": "object"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
"custom_application_vars": {
"default": {},
"description": "Key-value pairs to set as custom_application_vars on the channel",
"patternProperties": {
"[a-zA-Z0-9\\-_]+": {
"type": "string"
}
},
"type": "object"
},
"export": {
Expand Down
4 changes: 2 additions & 2 deletions applications/ecallmgr/src/ecallmgr_fs_bridge.erl
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ build_channels_vars(Node, UUID, Endpoints, JObj) ->
Props = lists:foldl(fun(F, Acc) -> Acc ++ F(Node, UUID, Endpoints, JObj) end, [], Routines),
ecallmgr_fs_xml:get_channel_vars(kz_json:set_values(Props, JObj)).

-spec maybe_force_fax(atom(), kz_term:ne_binary(), kz_json:objects(), kz_json:object()) -> kz_term:ne_binaries().
-spec maybe_force_fax(atom(), kz_term:ne_binary(), kz_json:objects(), kz_json:object()) -> kz_term:proplist().
maybe_force_fax(_Node, _UUID, Endpoints, JObj) ->
case kz_json:find(<<"Force-Fax">>, Endpoints, kz_json:get_value(<<"Force-Fax">>, JObj)) of
'undefined' -> [];
Expand Down Expand Up @@ -398,7 +398,7 @@ endpoint_action_cmd(Event) ->
{_, Prefix} -> Prefix
end.

-spec add_bridge_actions(atom(), kz_term:ne_binary(), kz_json:objects(), kz_json:object()) -> kz_term:ne_binaries().
-spec add_bridge_actions(atom(), kz_term:ne_binary(), kz_json:objects(), kz_json:object()) -> kz_term:proplist().
add_bridge_actions(Node, UUID, _Endpoints, JObj) ->
BridgeActions = kz_json:get_json_value(<<"Bridge-Actions">>, JObj, kz_json:new()),
Fun = fun(K, V, Acc)-> build_bridge_actions(Node, UUID, K, V, Acc) end,
Expand Down
4 changes: 2 additions & 2 deletions applications/ecallmgr/src/ecallmgr_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -559,11 +559,11 @@ fs_args_to_binary(Args, Sep, Prefix) ->
fs_arg_encode(Source = ?NE_BINARY) ->
fs_arg_encode(Source, <<>>, <<>>).

-spec fs_arg_encode(kz_term:ne_binary(), kz_term:ne_binary()) -> kz_term:ne_binary().
-spec fs_arg_encode(kz_term:ne_binary(), binary()) -> kz_term:ne_binary().
fs_arg_encode(Source = ?NE_BINARY, Sep) ->
fs_arg_encode(Source, Sep, <<>>).

-spec fs_arg_encode(kz_term:ne_binary(), kz_term:ne_binary(), binary()) -> kz_term:ne_binary().
-spec fs_arg_encode(binary(), binary() | byte(), binary()) -> binary().
fs_arg_encode(<<>>, _Sep, Acc) -> Acc;

fs_arg_encode(<<C, R/binary>>, C, Acc) ->
Expand Down

0 comments on commit 273e797

Please sign in to comment.