Prerelease 02.10.2017
Remove old SEPxxx.conf.XML fron tftpd add device from HotLine Registry. add Adv. Button Line configuration. add secondary dialtone tone configuration.
This commit is contained in:
parent
5bfa3bc930
commit
a9d39764b1
|
@ -23,7 +23,10 @@
|
||||||
* + Change internal use Field to _Field (new fiture support in chan_sccp )
|
* + Change internal use Field to _Field (new fiture support in chan_sccp )
|
||||||
* + Delete phone XML
|
* + Delete phone XML
|
||||||
* + Change Installer ?? (test )
|
* + Change Installer ?? (test )
|
||||||
|
* - Auto Addons!
|
||||||
* + DND Mode
|
* + DND Mode
|
||||||
|
* + secondary_dialtone_digits = "" line config
|
||||||
|
* + secondary_dialtone_tone = 0x22 line config
|
||||||
* - suport kvstore ?????
|
* - suport kvstore ?????
|
||||||
* + Shared Line
|
* + Shared Line
|
||||||
* - bug Fix ...(K no w bug? no fix)
|
* - bug Fix ...(K no w bug? no fix)
|
||||||
|
|
|
@ -11,6 +11,7 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
||||||
"cid_num" => 'cid_num', "cid_name" => 'label', "mailbox" => 'description',
|
"cid_num" => 'cid_num', "cid_name" => 'label', "mailbox" => 'description',
|
||||||
"musicclass" => 'musicclass',
|
"musicclass" => 'musicclass',
|
||||||
"dnd" => 'dnd', "silencesuppression" => 'silencesuppression',
|
"dnd" => 'dnd', "silencesuppression" => 'silencesuppression',
|
||||||
|
"secondary_dialtone_digits" => 'secondary_dialtone_digits', "secondary_dialtone_tone" => 'secondary_dialtone_tone',
|
||||||
'namedcallgroup'=>'namedcallgroup', 'namedpickupgroup' => 'namedpickupgroup'
|
'namedcallgroup'=>'namedcallgroup', 'namedpickupgroup' => 'namedpickupgroup'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -144,6 +145,14 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
||||||
"value" => "no",
|
"value" => "no",
|
||||||
"flag" => $flag++
|
"flag" => $flag++
|
||||||
),
|
),
|
||||||
|
"secondary_dialtone_digits" => array(
|
||||||
|
"value" => "9",
|
||||||
|
"flag" => $flag++
|
||||||
|
),
|
||||||
|
"secondary_dialtone_tone" => array(
|
||||||
|
"value" => "0x22",
|
||||||
|
"flag" => $flag++
|
||||||
|
),
|
||||||
"musicclass" => array(
|
"musicclass" => array(
|
||||||
"value" => "default",
|
"value" => "default",
|
||||||
"flag" => $flag++
|
"flag" => $flag++
|
||||||
|
@ -161,19 +170,31 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
||||||
$tmparr = array();
|
$tmparr = array();
|
||||||
$tt = _("The SCCP channel number for this port.");
|
$tt = _("The SCCP channel number for this port.");
|
||||||
$tmparr['incominglimit'] = array('prompttext' => _('Line incoming limit'), 'value' => '2', 'tt' => $tt, 'level' => 0, 'jsvalidation' => 'isEmpty()', 'failvalidationmsg' => $msgInvalidChannel);
|
$tmparr['incominglimit'] = array('prompttext' => _('Line incoming limit'), 'value' => '2', 'tt' => $tt, 'level' => 0, 'jsvalidation' => 'isEmpty()', 'failvalidationmsg' => $msgInvalidChannel);
|
||||||
$tt = _("Asterisk context this device will send calls to. Only change this is you know what you are doing.");
|
|
||||||
|
$tt = _("Asterisk context this device will send calls to. Only change this is you know what you are doing.");
|
||||||
$tmparr['context'] = array('prompttext' => _('Line context'), 'value' => 'from-internal', 'tt' => $tt, 'level' => 1);
|
$tmparr['context'] = array('prompttext' => _('Line context'), 'value' => 'from-internal', 'tt' => $tt, 'level' => 1);
|
||||||
$tt = _("Phone call group callgroup=1,3-4");
|
|
||||||
|
$tt = _("Phone call group callgroup=1,3-4");
|
||||||
$tmparr['callgroup'] = array('prompttext' => _('Call group id'),'value' => '', 'tt' => $tt, 'level' => 1);
|
$tmparr['callgroup'] = array('prompttext' => _('Call group id'),'value' => '', 'tt' => $tt, 'level' => 1);
|
||||||
$tt = _("Phone pickup group pickupgroup=1,3-4");
|
|
||||||
|
$tt = _("Phone pickup group pickupgroup=1,3-4");
|
||||||
$tmparr['namedcallgroup'] = array('prompttext' => _('Call group name'),'value' => '', 'tt' => $tt, 'level' => 1);
|
$tmparr['namedcallgroup'] = array('prompttext' => _('Call group name'),'value' => '', 'tt' => $tt, 'level' => 1);
|
||||||
$tt = _("sets the named caller groups this line is a member of (ast111)");
|
|
||||||
|
$tt = _("sets the named caller groups this line is a member of (ast111)");
|
||||||
$tmparr['pickupgroup'] = array('prompttext' => _('Pickup group id'),'value' => '', 'tt' => $tt, 'level' => 1);
|
$tmparr['pickupgroup'] = array('prompttext' => _('Pickup group id'),'value' => '', 'tt' => $tt, 'level' => 1);
|
||||||
$tt = _("Phone pincode");
|
|
||||||
|
$tt = _("Phone pincode");
|
||||||
$tmparr['namedpickupgroup'] = array('prompttext' => _('Pickup group name'),'value' => '', 'tt' => $tt, 'level' => 1);
|
$tmparr['namedpickupgroup'] = array('prompttext' => _('Pickup group name'),'value' => '', 'tt' => $tt, 'level' => 1);
|
||||||
$tt = _("Sets the named pickup groups this line is a member of (this phone can pickup calls from remote phones which are in this caller group (ast111)");
|
|
||||||
|
$tt = _("Sets the named pickup groups this line is a member of (this phone can pickup calls from remote phones which are in this caller group (ast111)");
|
||||||
$tmparr['pin'] = array('value' => '', 'tt' => $tt, 'level' => 1);
|
$tmparr['pin'] = array('value' => '', 'tt' => $tt, 'level' => 1);
|
||||||
|
|
||||||
|
$tt = _("Digits to indicate an external line to user (secondary dialtone) Sample 9 or 8 (max 9 digits)");
|
||||||
|
$tmparr['secondary_dialtone_digits'] = array('prompttext' => _('Secondary dialtone digits'), 'value' => '', 'tt' => $tt, 'level' => 1);
|
||||||
|
|
||||||
|
$tt = _("Outside dialtone frequency (defaul 0x22)");
|
||||||
|
$tmparr['secondary_dialtone_tone'] = array('prompttext' => _('Secondary dialtone tone'), 'value' => '', 'tt' => $tt, 'level' => 1);
|
||||||
|
|
||||||
unset($select);
|
unset($select);
|
||||||
$select[] = array('value' => 'yes', 'text' => 'Yes');
|
$select[] = array('value' => 'yes', 'text' => 'Yes');
|
||||||
$select[] = array('value' => 'no', 'text' => 'No');
|
$select[] = array('value' => 'no', 'text' => 'No');
|
||||||
|
|
|
@ -11,6 +11,7 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
||||||
"cid_num" => 'cid_num', "cid_name" => 'label', "mailbox" => 'description',
|
"cid_num" => 'cid_num', "cid_name" => 'label', "mailbox" => 'description',
|
||||||
"musicclass" => 'musicclass',
|
"musicclass" => 'musicclass',
|
||||||
"dnd" => 'dnd', "silencesuppression" => 'silencesuppression',
|
"dnd" => 'dnd', "silencesuppression" => 'silencesuppression',
|
||||||
|
"secondary_dialtone_digits" => 'secondary_dialtone_digits', "secondary_dialtone_tone" => 'secondary_dialtone_tone',
|
||||||
'namedcallgroup'=>'namedcallgroup', 'namedpickupgroup' => 'namedpickupgroup'
|
'namedcallgroup'=>'namedcallgroup', 'namedpickupgroup' => 'namedpickupgroup'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -53,6 +54,8 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
||||||
$sqlv = 'values ("'.$id.'", "'.$id.'"';
|
$sqlv = 'values ("'.$id.'", "'.$id.'"';
|
||||||
foreach($this->data_fld as $key => $val) {
|
foreach($this->data_fld as $key => $val) {
|
||||||
switch ($key) {
|
switch ($key) {
|
||||||
|
case 'secondary_dialtone_digits':
|
||||||
|
case 'secondary_dialtone_tone':
|
||||||
case 'dnd':
|
case 'dnd':
|
||||||
$sql .= ', '.$key;
|
$sql .= ', '.$key;
|
||||||
if (!empty($settings[$val]['value'])){
|
if (!empty($settings[$val]['value'])){
|
||||||
|
@ -156,6 +159,14 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
||||||
"value" => "no",
|
"value" => "no",
|
||||||
"flag" => $flag++
|
"flag" => $flag++
|
||||||
),
|
),
|
||||||
|
"secondary_dialtone_digits" => array(
|
||||||
|
"value" => "9",
|
||||||
|
"flag" => $flag++
|
||||||
|
),
|
||||||
|
"secondary_dialtone_tone" => array(
|
||||||
|
"value" => "0x22",
|
||||||
|
"flag" => $flag++
|
||||||
|
),
|
||||||
"musicclass" => array(
|
"musicclass" => array(
|
||||||
"value" => "default",
|
"value" => "default",
|
||||||
"flag" => $flag++
|
"flag" => $flag++
|
||||||
|
@ -185,6 +196,12 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
||||||
$tmparr['namedpickupgroup'] = array('prompttext' => _('Pickup group name'),'value' => '', 'tt' => $tt, 'level' => 1);
|
$tmparr['namedpickupgroup'] = array('prompttext' => _('Pickup group name'),'value' => '', 'tt' => $tt, 'level' => 1);
|
||||||
$tt = _("Sets the named pickup groups this line is a member of (this phone can pickup calls from remote phones which are in this caller group (ast111)");
|
$tt = _("Sets the named pickup groups this line is a member of (this phone can pickup calls from remote phones which are in this caller group (ast111)");
|
||||||
$tmparr['pin'] = array('value' => '', 'tt' => $tt, 'level' => 1);
|
$tmparr['pin'] = array('value' => '', 'tt' => $tt, 'level' => 1);
|
||||||
|
$tt = _("Digits to indicate an external line to user (secondary dialtone) Sample 9 or 8 (max 9 digits)");
|
||||||
|
$tmparr['secondary_dialtone_digits'] = array('prompttext' => _('Secondary dialtone digits'), 'value' => '', 'tt' => $tt, 'level' => 1);
|
||||||
|
|
||||||
|
$tt = _("Outside dialtone frequency (defaul 0x22)");
|
||||||
|
$tmparr['secondary_dialtone_tone'] = array('prompttext' => _('Secondary dialtone tone'), 'value' => '', 'tt' => $tt, 'level' => 1);
|
||||||
|
|
||||||
|
|
||||||
unset($select);
|
unset($select);
|
||||||
$select[] = array('value' => 'yes', 'text' => 'Yes');
|
$select[] = array('value' => 'yes', 'text' => 'Yes');
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
// vim: set ai ts=4 sw=4 ft=phtml:
|
// vim: set ai ts=4 sw=4 ft=phtml:
|
||||||
// print_r($this->sccpvalues['sccp_comatable']);
|
// print_r($this->sccpvalues['sccp_comatable']);
|
||||||
// print_r($this->sccpvalues);
|
// print_r($this->sccpvalues);
|
||||||
|
// $id_name = 'SEPB8BEBF224790';
|
||||||
|
// $dev_data = $this->sccp_getdevice_info($id_name);
|
||||||
|
// print_r($dev_data);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form autocomplete="off" name="frm_general" id="frm_general" class="fpbx-submit" action="" method="post">
|
<form autocomplete="off" name="frm_general" id="frm_general" class="fpbx-submit" action="" method="post">
|
||||||
|
|
Loading…
Reference in a new issue