Skip to content

Commit

Permalink
add call direction to call recording (2600hz#3870)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo authored and jamesaimonetti committed Jun 26, 2017
1 parent e8b1f50 commit d507566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/kazoo_call/src/kzc_recording.erl
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ store_recording_meta(#state{call=Call
,{<<"from">>, kapps_call:from(Call)}
,{<<"to">>, kapps_call:to(Call)}
,{<<"request">>, kapps_call:request(Call)}
,{<<"direction">>, kapps_call:direction(Call)}
,{<<"start">>, Start}
,{<<"duration">>, Seconds}
,{<<"duration_ms">>, Length}
Expand Down
1 change: 1 addition & 0 deletions core/kazoo_endpoint/src/kz_endpoint_recording.erl
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ store_recording_meta(#{media := {_, MediaName}
,{<<"from">>, kz_json:get_ne_binary_value(<<"From">>, JObj)}
,{<<"to">>, kz_json:get_ne_binary_value(<<"To">>, JObj)}
,{<<"request">>, kz_json:get_ne_binary_value(<<"Request">>, JObj)}
,{<<"direction">>, kz_call_event:call_direction(JObj)}
,{<<"start">>, Start}
,{<<"duration">>, Seconds}
,{<<"duration_ms">>, Length}
Expand Down

0 comments on commit d507566

Please sign in to comment.