-- Bug fix

-- DB add field 'videomode'
This commit is contained in:
PhantomVl 2020-04-21 22:51:43 +03:00 committed by Diederik de Groot
parent 347f6f6702
commit 6740aab4f2
No known key found for this signature in database
GPG key ID: AFA728250A1BECD6
2 changed files with 12 additions and 0 deletions

View file

@ -30,6 +30,16 @@ class Sccp extends \FreePBX\modules\Core\Driver {
"jsvalidation" => "", "failvalidationmsg" => "", "canbeempty" => true, "maxchars" => 0, "disable" => false, "inputgroup" => false,
"class" => "", "cblabel" => 'Enable', "disabled_value" => 'DEFAULT', "check_enables" => 'true', "cbdisable" => false, "cbclass" => '') );
/*
* Export Functions
* getInfo
* addDevice
* delDevice
* getDevice
* getDefaultDeviceSettings
* getDeviceDisplay
*
*/
public function __construct($freepbx) {
parent::__construct($freepbx);

View file

@ -305,6 +305,7 @@ function Get_DB_config($sccp_compatible)
'audio_cos' => array('drop' => "yes"),
'video_tos' => array('drop' => "yes"),
'video_cos' => array('drop' => "yes"),
'videomode' => array('create' => "enum('user','auto','off') NULL default 'auto'", 'modify' => "enum('user','auto','off')"),
'incominglimit' => array('create' => "INT(11) DEFAULT '6'", 'modify' => 'INT(11)', 'def_modify' => "6"),
'transfer' => array('create' => "enum('on','off') NULL default NULL", 'modify' => "enum('on','off')"),
'vmnum' => array('def_modify' => "*97"),
@ -350,6 +351,7 @@ function Get_DB_config($sccp_compatible)
),
'sccpline' => array(
'directed_pickup' => array('create' => "enum('on','off') NULL default NULL", 'modify' => "enum('on','off')"),
'videomode' => array('create' => "enum('user','auto','off') NULL default 'auto'", 'modify' => "enum('user','auto','off')"),
),
'sccpuser' => array(
'id' => array('create' => "varchar(20) NOT NULL", 'modify' => "VARCHAR(20)" ),