Browse Source

UI-3106: Don't override sip settings on save (#65)

4.3
Joris Tirado 8 years ago
committed by GitHub
parent
commit
f62cf3153e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions
  1. +0
    -9
      submodules/devices/devices.js

+ 0
- 9
submodules/devices/devices.js View File

@ -617,7 +617,6 @@ define(function(require) {
devicesMergeData: function(originalData, template, audioCodecs, videoCodecs) {
var self = this,
hasCodecs = $.inArray(originalData.device_type, ['sip_device', 'landline', 'fax', 'ata', 'softphone', 'smartphone', 'mobile', 'sip_uri']) > -1,
hasSIP = $.inArray(originalData.device_type, ['sip_device', 'fax', 'ata', 'softphone', 'smartphone', 'mobile']) > -1,
hasCallForward = $.inArray(originalData.device_type, ['landline', 'cellphone', 'smartphone']) > -1,
hasRTP = $.inArray(originalData.device_type, ['sip_device', 'mobile', 'softphone']) > -1,
formData = monster.ui.getFormData('form_device');
@ -653,14 +652,6 @@ define(function(require) {
}, formData.media);
}
if (hasSIP) {
formData.sip = $.extend(true, {
expire_seconds: 360,
invite_format: 'contact',
method: 'password'
}, formData.sip);
}
if ('call_restriction' in formData) {
_.each(formData.call_restriction, function(restriction, key) {
if (key in originalData.extra.restrictions && originalData.extra.restrictions[key].disabled) {


Loading…
Cancel
Save