Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.3] add disposition value to cdr/interaction endpoint #6690

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions applications/crossbar/src/modules/cb_cdrs.erl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
,{<<"billing_seconds">>, fun col_billing_seconds/3}
,{<<"timestamp">>, fun col_timestamp/3}
,{<<"hangup_cause">>, fun col_hangup_cause/3}
,{<<"disposition">>, fun col_disposition/3}
,{<<"other_leg_call_id">>, fun col_other_leg_call_id/3}
,{<<"owner_id">>, fun col_owner_id/3}
,{<<"to">>, fun col_to/3}
Expand Down Expand Up @@ -515,6 +516,7 @@ col_duration_seconds(JObj, _Timestamp, _Context) -> kzd_cdrs:duration_seconds(JO
col_billing_seconds(JObj, _Timestamp, _Context) -> kzd_cdrs:billing_seconds(JObj, <<>>).
col_timestamp(_JObj, Timestamp, _Context) -> kz_term:to_binary(Timestamp).
col_hangup_cause(JObj, _Timestamp, _Context) -> kzd_cdrs:hangup_cause(JObj, <<>>).
col_disposition(JObj, _Timestamp, _Context) -> kzd_cdrs:disposition(JObj, <<>>).
col_other_leg_call_id(JObj, _Timestamp, _Context) -> kzd_cdrs:other_leg_call_id(JObj, <<>>).
col_owner_id(JObj, _Timestamp, _Context) -> kz_json:get_value([?KEY_CCV, <<"owner_id">>], JObj, <<>>).
col_to(JObj, _Timestamp, _Context) -> kzd_cdrs:to(JObj, <<>>).
Expand Down