From f62cf3153eddbd41540a471c80ff23814a39d73c Mon Sep 17 00:00:00 2001 From: Joris Tirado Date: Mon, 11 Jun 2018 14:18:00 -0700 Subject: [PATCH] UI-3106: Don't override sip settings on save (#65) --- submodules/devices/devices.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/submodules/devices/devices.js b/submodules/devices/devices.js index fc52678..35a1c3f 100644 --- a/submodules/devices/devices.js +++ b/submodules/devices/devices.js @@ -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) {