feat: Add call recording URL field to call log
diff --git a/erpnext/communication/doctype/call_log/call_log.json b/erpnext/communication/doctype/call_log/call_log.json
index bb42875..23c876d 100644
--- a/erpnext/communication/doctype/call_log/call_log.json
+++ b/erpnext/communication/doctype/call_log/call_log.json
@@ -11,6 +11,7 @@
"section_break_5",
"status",
"duration",
+ "recording_url",
"summary"
],
"fields": [
@@ -63,9 +64,15 @@
"fieldtype": "Data",
"label": "Summary",
"read_only": 1
+ },
+ {
+ "fieldname": "recording_url",
+ "fieldtype": "Data",
+ "label": "Recording URL",
+ "read_only": 1
}
],
- "modified": "2019-06-07 09:49:07.623814",
+ "modified": "2019-06-17 08:01:46.881008",
"modified_by": "Administrator",
"module": "Communication",
"name": "Call Log",
diff --git a/erpnext/erpnext_integrations/exotel_integration.py b/erpnext/erpnext_integrations/exotel_integration.py
index a0e8295..a22eb60 100644
--- a/erpnext/erpnext_integrations/exotel_integration.py
+++ b/erpnext/erpnext_integrations/exotel_integration.py
@@ -39,6 +39,7 @@
if call_log:
call_log.status = status
call_log.duration = call_payload.get('DialCallDuration') or 0
+ call_log.recording_url = call_payload.get('RecordingUrl')
call_log.save(ignore_permissions=True)
frappe.db.commit()
return call_log