You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to customize the way phone.js decides how to create a "buddy" from an incoming call. This patch is trivial, but at least it allows to enable video calls for certain contacts even if not "local".
--- phone.original.js 2020-06-08 13:24:31.741407729 +0200
+++ phone.js 2020-06-08 14:06:34.090022002 +0200
@@ -162,6 +162,8 @@
var RecordingVideoFps = parseInt(getDbItem("RecordingVideoFps", 12)); // The Frame Per Second of the Video Track recording
var RecordingLayout = getDbItem("RecordingLayout", "them-pnp"); // The Layout of the Recording Video Track (side-by-side | us-pnp | them-pnp | us-only | them-only)
+var DIDlength = parseInt(getDbItem("DIDlength", 6)); // DID length from which to decide if an incoming caller is a "contact" or an "extension".
+
// Utilities
// =========
function uID(){
@@ -1648,7 +1650,7 @@
var json = JSON.parse(localDB.getItem("UserBuddiesJson"));
if(json == null) json = InitUserBuddies();
- if(did.length > 6){
+ if(did.length > DIDlength){
// Add Regular Contact
var id = uID();
var dateNow = utcDateNow();
I then call a custom "pre" script loaded before phone.js with:
customLocalDB.setItem("DIDlength", 7);
This is a quick fix for my specific setup, but it might be of use to others.
The text was updated successfully, but these errors were encountered:
Hi,
I'd like to customize the way phone.js decides how to create a "buddy" from an incoming call. This patch is trivial, but at least it allows to enable video calls for certain contacts even if not "local".
I then call a custom "pre" script loaded before phone.js with:
customLocalDB.setItem("DIDlength", 7);
This is a quick fix for my specific setup, but it might be of use to others.
The text was updated successfully, but these errors were encountered: