From b7a229941c31fb60ebf0b252d553074eb72b1ca0 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Thu, 25 Sep 2014 15:51:28 +0200 Subject: [PATCH] Fixes 'undefined' default SIP number. --- app.js | 5 ++++- config.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 43254e5da..3f0ae3449 100644 --- a/app.js +++ b/app.js @@ -1516,10 +1516,13 @@ $(document).bind("selectedendpointchanged", function(event, userJid) { function callSipButtonClicked() { + var defaultNumber + = config.defaultSipNumber ? config.defaultSipNumber : ''; + messageHandler.openTwoButtonDialog(null, '

Enter SIP number

' + '', + ' value="' + defaultNumber + '" autofocus>', false, "Dial", function (e, v, m, f) { diff --git a/config.js b/config.js index 4e1bec211..7c5946894 100644 --- a/config.js +++ b/config.js @@ -12,6 +12,7 @@ var config = { useNicks: false, bosh: '//jitsi-meet.example.com/http-bind', // FIXME: use xep-0156 for that clientNode: 'http://jitsi.org/jitsimeet', // The name of client node advertised in XEP-0115 'c' stanza + //defaultSipNumber: '', // Default SIP number desktopSharing: 'ext', // Desktop sharing method. Can be set to 'ext', 'webrtc' or false to disable. chromeExtensionId: 'diibjkoicjeejcmhdnailmkgecihlobk', // Id of desktop streamer Chrome extension desktopSharingSources: ['screen', 'window'],