Update Sccp_manager.class.php
Remove unnecessary page code - this version only works with chan-sccp >433
This commit is contained in:
parent
cd0da5b6a3
commit
c1f35ace41
|
@ -383,19 +383,12 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
"buttons" => array(
|
||||
"name" => _("Device Buttons"),
|
||||
"page" => 'views/form.buttons.php'
|
||||
));
|
||||
if ($this->sccpvalues['sccp_compatible']['data'] < '433') {
|
||||
$this->pagedata["sccpcodec"] = array(
|
||||
"name" => _("Device SCCP Codec"),
|
||||
"page" => 'views/server.codec.php'
|
||||
);
|
||||
}
|
||||
if ($this->sccpvalues['sccp_compatible']['data'] >= '433') {
|
||||
$this->pagedata["advanced"] = array(
|
||||
),
|
||||
"advanced" => array(
|
||||
"name" => _("Device SCCP Advanced"),
|
||||
"page" => 'views/form.devadvanced.php'
|
||||
);
|
||||
}
|
||||
)
|
||||
);
|
||||
break;
|
||||
case "cisco-sip":
|
||||
$this->pagedata = array(
|
||||
|
@ -406,15 +399,8 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
"buttons" => array(
|
||||
"name" => _("Sip device Buttons"),
|
||||
"page" => 'views/form.sbuttons.php'
|
||||
));
|
||||
/*
|
||||
if ($this->sccpvalues['sccp_compatible']['data'] < '433') {
|
||||
$this->pagedata["sccpcodec"] = array(
|
||||
"name" => _("Device SCCP Codec"),
|
||||
"page" => 'views/server.codec.php'
|
||||
);
|
||||
}
|
||||
*/
|
||||
)
|
||||
);
|
||||
break;
|
||||
|
||||
case "r_user":
|
||||
|
@ -428,7 +414,6 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
"page" => 'views/form.buttons.php'
|
||||
),
|
||||
);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue