Fixes 'undefined' default SIP number.

This commit is contained in:
paweldomas 2014-09-25 15:51:28 +02:00
parent 507e58dab6
commit b7a229941c
2 changed files with 5 additions and 1 deletions

5
app.js
View File

@ -1516,10 +1516,13 @@ $(document).bind("selectedendpointchanged", function(event, userJid) {
function callSipButtonClicked()
{
var defaultNumber
= config.defaultSipNumber ? config.defaultSipNumber : '';
messageHandler.openTwoButtonDialog(null,
'<h2>Enter SIP number</h2>' +
'<input id="sipNumber" type="text"' +
' value="' + config.defaultSipNumber + '" autofocus>',
' value="' + defaultNumber + '" autofocus>',
false,
"Dial",
function (e, v, m, f) {

View File

@ -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'],