Skip to content

Commit

Permalink
[4.3] DUPT-150: populate from_name field in fax_request from call obj…
Browse files Browse the repository at this point in the history
…ect, update view to emit it (#6392)
  • Loading branch information
swysor authored Mar 23, 2020
1 parent f1278c1 commit 4c7a5f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions applications/fax/priv/couchdb/views/faxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
" 'status': doc.pvt_job_status,",
" 'to': doc.to_number,",
" 'from': doc.from_number,",
" 'from_name': doc.from_name,",
" 'created': doc.pvt_created,",
" 'modified': doc.pvt_modified",
" });",
Expand All @@ -103,6 +104,7 @@
" 'status': doc.pvt_job_status,",
" 'to': doc.to_number,",
" 'from': doc.from_number,",
" 'from_name': doc.from_name,",
" 'attempts': doc.attempts,",
" 'created': doc.pvt_created",
" });",
Expand All @@ -121,6 +123,7 @@
" 'status': doc.pvt_job_status,",
" 'to': doc.to_number,",
" 'from': doc.from_number,",
" 'from_name': doc.from_name,",
" 'created': doc.pvt_created,",
" 'modified' : doc.pvt_modified",
" });",
Expand All @@ -137,6 +140,7 @@
" 'status': doc.pvt_job_status,",
" 'to': doc.to_number,",
" 'from': doc.from_number,",
" 'from_name': doc.from_name,",
" 'created': doc.pvt_created",
" });",
"}"
Expand Down
1 change: 1 addition & 0 deletions applications/fax/src/fax_request.erl
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ create_fax_doc(JObj, #state{owner_id = OwnerId
[{<<"name">>, Name}
,{<<"to_number">>, kapps_call:request_user(Call)}
,{<<"from_number">>, kapps_call:from_user(Call)}
,{<<"from_name">>, kapps_call:caller_id_name(Call)}
,{<<"description">>, <<"fax document received">>}
,{<<"source_type">>, <<"incoming_fax">>}
,{<<"folder">>, <<"inbox">>}
Expand Down

0 comments on commit 4c7a5f6

Please sign in to comment.