Skip to content

Commit

Permalink
filter undefined from xml_el records
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaimonetti committed Oct 23, 2017
1 parent 47e3bec commit 340d7e7
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions applications/ecallmgr/src/ecallmgr_fs_xml.erl
Expand Up @@ -1213,20 +1213,21 @@ event_filters_el(Filters) ->

-spec route_resp_park_xml(api_terms(), kz_proplist()) -> xml_els().
route_resp_park_xml(JObj, Props) ->
Exten = [route_resp_log_winning_node()
,route_resp_set_winning_node()
,route_resp_bridge_id()
,route_resp_ringback(JObj)
,route_resp_transfer_ringback(JObj)
,route_resp_pre_park_action(JObj)
,maybe_start_dtmf_action(Props)
,route_resp_ccvs(JObj)
,unset_custom_sip_headers()
,route_resp_set_control_info(Props)
,route_resp_fire_route_win(JObj, Props)
,route_resp_park()
],
props:filter_undefined(Exten).
[El || El <- [route_resp_log_winning_node()
,route_resp_set_winning_node()
,route_resp_bridge_id()
,route_resp_ringback(JObj)
,route_resp_transfer_ringback(JObj)
,route_resp_pre_park_action(JObj)
,maybe_start_dtmf_action(Props)
,route_resp_ccvs(JObj)
,unset_custom_sip_headers()
,route_resp_set_control_info(Props)
,route_resp_fire_route_win(JObj, Props)
,route_resp_park()
],
'undefined' =/= El
].

route_resp_set_control_info(Props) ->
App = <<"kz_multiset">>,
Expand Down

0 comments on commit 340d7e7

Please sign in to comment.