Skip to content

Commit

Permalink
Cid merge fix master (2600hz#5460)
Browse files Browse the repository at this point in the history
* [4.3] fix merge of call-interaction-id
  • Loading branch information
mark2600 authored and lazedo committed Jan 25, 2019
1 parent 7d3023e commit 5b8f210
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion applications/ecallmgr/src/ecallmgr_originate.erl
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,10 @@ build_originate_args_from_endpoints(Action, Endpoints, JObj, FetchId) ->

-spec get_channel_vars(kz_json:object(), kz_term:ne_binary()) -> iolist().
get_channel_vars(JObj, FetchId) ->
InteractionId = kz_json:get_value([<<"Custom-Channel-Vars">>, <<?CALL_INTERACTION_ID>>], JObj, ?CALL_INTERACTION_DEFAULT),
CCVs = [{<<"Fetch-ID">>, FetchId}
,{<<"Ecallmgr-Node">>, kz_term:to_binary(node())}
,{<<?CALL_INTERACTION_ID>>, ?CALL_INTERACTION_DEFAULT}
,{<<?CALL_INTERACTION_ID>>, InteractionId}
],
J = kz_json:from_list_recursive([{<<"Custom-Channel-Vars">>, add_ccvs(JObj, CCVs)}]),
ecallmgr_fs_xml:get_channel_vars(kz_json:merge(JObj, J)).
Expand Down

0 comments on commit 5b8f210

Please sign in to comment.