feat: Add call sound effects
diff --git a/erpnext/hooks.py b/erpnext/hooks.py
index 53da013..34b7d2a 100644
--- a/erpnext/hooks.py
+++ b/erpnext/hooks.py
@@ -170,6 +170,11 @@
{'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'},
]
+sounds = [
+ {"name": "incoming-call", "src": "/assets/erpnext/sounds/incoming-call.mp3", "volume": 0.2},
+ {"name": "call-disconnect", "src": "/assets/erpnext/sounds/call-disconnect.mp3", "volume": 0.2},
+]
+
has_website_permission = {
"Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
"Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
diff --git a/erpnext/public/js/call_popup/call_popup.js b/erpnext/public/js/call_popup/call_popup.js
index 6510a0f..d3c9c0c 100644
--- a/erpnext/public/js/call_popup/call_popup.js
+++ b/erpnext/public/js/call_popup/call_popup.js
@@ -56,7 +56,7 @@
delete erpnext.call_popup;
this.dialog.hide();
});
- frappe.utils.play_sound("incoming_call");
+ frappe.utils.play_sound("incoming-call");
this.dialog.show();
}
@@ -132,7 +132,7 @@
}
call_disconnected(call_log) {
- frappe.utils.play_sound("call_disconnect");
+ frappe.utils.play_sound("call-disconnect");
this.update_call_log(call_log);
setTimeout(this.get_close_btn().click, 10000);
}
diff --git a/erpnext/public/sounds/call-disconnect.mp3 b/erpnext/public/sounds/call-disconnect.mp3
new file mode 100644
index 0000000..1202273
--- /dev/null
+++ b/erpnext/public/sounds/call-disconnect.mp3
Binary files differ
diff --git a/erpnext/public/sounds/incoming-call.mp3 b/erpnext/public/sounds/incoming-call.mp3
new file mode 100644
index 0000000..60431e3
--- /dev/null
+++ b/erpnext/public/sounds/incoming-call.mp3
Binary files differ