';
+// die(print_r($settings));
+ $settings['cid_num']['value'] = '';
+ $settings['cid_name']['value'] = $label;
+ $settings['mailbox']['value']= '';
- if (isset($_REQUEST)){
- foreach($add_fld as $key => $val) {
- if (!empty($_REQUEST[$key])){
- $settings[$val]['value'] = $_REQUEST[$key];
+ if (isset($_REQUEST)){
+ foreach($add_fld as $key => $val) {
+ if (!empty($_REQUEST[$key])){
+ $settings[$val]['value'] = $_REQUEST[$key];
+ }
+ }
}
- }
- }
- $allow_codec = array();
- foreach($settings as $key => $val) {
- if (strpos($key,'codec_') !== false ) {
- $allow_codec[] =substr($key,6);
- }
- }
- $settings['allow']['value'] = implode(",", $allow_codec);
+ $allow_codec = array();
+ foreach($settings as $key => $val) {
+ if (strpos($key,'codec_') !== false ) {
+ $allow_codec[] =substr($key,6);
+ }
+ }
+ $settings['allow']['value'] = implode(",", $allow_codec);
- // parse outboundcid content into cid_num and cid_name sccpline fields
- if (empty($settings['cid_num']['value'])) {
- $settings['cid_num']['value'] = $id;
- } else {
- $outboundcid = $settings['cid_num']['value'];
- if (preg_match('/"(.*)"\s?<(.*)>/', $outboundcid, $matches)) {
- $settings['cid_num']['value'] = $matches[2];
- $settings['cid_name']['value'] = $matches[1];
- } else if (is_integer($outboundcid)) {
- $settings['cid_num']['value'] = $outboundcid;
- }
+ // parse outboundcid content into cid_num and cid_name sccpline fields
+ if (empty($settings['cid_num']['value'])) {
+ $settings['cid_num']['value'] = $id;
+ } else {
+ $outboundcid = $settings['cid_num']['value'];
+ if (preg_match('/"(.*)"\s?<(.*)>/', $outboundcid, $matches)) {
+ $settings['cid_num']['value'] = $matches[2];
+ $settings['cid_name']['value'] = $matches[1];
+ } else if (is_integer($outboundcid)) {
+ $settings['cid_num']['value'] = $outboundcid;
+ }
+ }
+
+ if (!empty($_REQUEST['vm']) && ($_REQUEST['vm'] =='enabled')){ // mailbox
+ if (empty($settings['mailbox']['value'])) {
+ $settings['mailbox']['value']= $id;
+ }
+ }
+
+// die(print_r($settings));
+ $tech = Array();
+ $sql = "DESCRIBE `sccpline`";
+ foreach ($this->database->query($sql) as $row) {
+ $tech[$row["Field"]]=$row["Field"];
+ }
+
+// die(print_r($tech));
+
+ $sql = 'REPLACE INTO sccpline (name';
+ $sqlv = 'values ("'.$id.'"';
+ foreach($this->data_fld as $key => $val) {
+ if (!empty($settings[$val]) ) {
+ if (!empty($settings[$val]['value'])){
+ $sql .= ', '.$key;
+ $sqlv .= ", '".$settings[$val]['value']."' ";
+ }
+ }
+ }
+ $sql .= ") ".$sqlv.");";
+ $sth = $this->database->prepare($sql);
+ $sth->execute();
+ return true;
}
- if (!empty($_REQUEST['vm']) && ($_REQUEST['vm'] =='enabled')){ // mailbox
- if (empty($settings['mailbox']['value'])) {
- $settings['mailbox']['value']= $id;
- }
- }
-
- // die(print_r($settings));
- $tech = Array();
- $sql = "DESCRIBE sccpline";
- foreach ($this->database->query($sql) as $row) {
- $tech[$row["Field"]]=$row["Field"];
- }
- $sqlCol = 'name';
- $sqlVal = "'{$id}'";
- foreach($this->data_fld as $key => $val) {
- if (isset($settings[$val]['value'])){
- $sqlCol .= ", {$key}";
- $sqlVal .= ", '{$settings[$val]['value']}'";
- }
- }
- $sql = "REPLACE INTO sccpline ( {$sqlCol} ) VALUES ( {$sqlVal} );";
-
- $sth = $this->database->prepare($sql);
- $sth->execute();
- return true;
- }
-
- public function delDevice($id) {
- $sql = "DELETE FROM sccpline WHERE name = ?";
- $sth = $this->database->prepare($sql);
- $sth->execute(array($id));
- return true;
- }
+ public function delDevice($id) {
+ $sql = "DELETE FROM sccpline WHERE name = ?";
+ $sth = $this->database->prepare($sql);
+ $sth->execute(array($id));
+ return true;
+ }
- public function getDevice($id) {
- $sccp_line = array();
- // $sql = "SELECT name as id, name as name";
- $sql = "SELECT name as id, name as name ";
- foreach($this->data_fld as $key => $val) {
- $sql .= ',`'. $key .'` as '.$val;
- }
- $sql .= " FROM sccpline WHERE name = ?";
- $sth = $this->database->prepare($sql);
- $result = array();
- $tech = array();
- try {
- $sth->execute(array($id));
- $result = $sth->fetch(\PDO::FETCH_ASSOC);
- $tech = $result;
- $tech['dial']='SCCP/'.$id;
- } catch(\Exception $e) {}
+ public function getDevice($id) {
+ $sccp_line = array();
+// $sql = "SELECT name as id, name as name";
+ $sql = "SELECT name as id, name as name ";
+ foreach($this->data_fld as $key => $val) {
+ $sql .= ',`'. $key .'` as '.$val;
+ }
+ $sql .= " FROM sccpline WHERE name = ?";
+ $sth = $this->database->prepare($sql);
+ $result = array();
+ $tech = array();
+ try {
+ $sth->execute(array($id));
+ $result = $sth->fetch(\PDO::FETCH_ASSOC);
+ $tech = $result;
+ $tech['dial']='SCCP/'.$id;
+ } catch(\Exception $e) {}
- return $tech;
- }
+ return $tech;
+ }
- public function getDefaultDeviceSettings($id, $displayname, &$flag) {
- $dial = 'SCCP';
- $settings = array(
- "pin" => array(
- "value" => "",
- "flag" => $flag++
- ),
- "incominglimit" => array(
- "value" => "",
- "flag" => $flag++
- ),
- "lcontext" => array(
- "value" => "from-internal",
- "flag" => $flag++
- ),
- "callgroup" => array(
- "value" => "",
- "flag" => $flag++
- ),
- "namedcallgroup" => array(
- "value" => "",
- "flag" => $flag++
- ),
- "pickupgroup" => array(
- "value" => "",
- "flag" => $flag++
- ),
- "namedpickupgroup" => array(
- "value" => "",
- "flag" => $flag++
- ),
- "transfer" => array(
- "value" => "on",
- "flag" => $flag++
- ),
- "adhocNumber" => array(
- "value" => "",
- "flag" => $flag++
- ),
- "echocancel" => array(
- "value" => "no",
- "flag" => $flag++
- ),
- "dnd" => array(
- "value" => "UserDefined",
- "flag" => $flag++
- ),
- "silencesuppression" => array(
- "value" => "no",
- "flag" => $flag++
- ),
- "secondary_dialtone_digits" => array(
- "value" => "9",
- "flag" => $flag++
- ),
- "secondary_dialtone_tone" => array(
- "value" => "0x22",
- "flag" => $flag++
- ),
- "musicclass" => array(
- "value" => "default",
- "flag" => $flag++
- )
- );
- return array(
- "dial" => $dial,
- "settings" => $settings
- );
- }
+ public function getDefaultDeviceSettings($id, $displayname, &$flag) {
+ $dial = 'SCCP';
+ $settings = array(
+ "pin" => array(
+ "value" => "",
+ "flag" => $flag++
+ ),
+ "incominglimit" => array(
+ "value" => "",
+ "flag" => $flag++
+ ),
+ "lcontext" => array(
+ "value" => "from-internal",
+ "flag" => $flag++
+ ),
+ "callgroup" => array(
+ "value" => "",
+ "flag" => $flag++
+ ),
+ "namedcallgroup" => array(
+ "value" => "",
+ "flag" => $flag++
+ ),
+ "pickupgroup" => array(
+ "value" => "",
+ "flag" => $flag++
+ ),
+ "namedpickupgroup" => array(
+ "value" => "",
+ "flag" => $flag++
+ ),
+ "transfer" => array(
+ "value" => "yes",
+ "flag" => $flag++
+ ),
+ "adhocNumber" => array(
+ "value" => "",
+ "flag" => $flag++
+ ),
+ "echocancel" => array(
+ "value" => "no",
+ "flag" => $flag++
+ ),
+ "dnd" => array(
+ "value" => "UserDefined",
+ "flag" => $flag++
+ ),
+ "silencesuppression" => array(
+ "value" => "no",
+ "flag" => $flag++
+ ),
+ "secondary_dialtone_digits" => array(
+ "value" => "9",
+ "flag" => $flag++
+ ),
+ "secondary_dialtone_tone" => array(
+ "value" => "0x22",
+ "flag" => $flag++
+ ),
+ "musicclass" => array(
+ "value" => "default",
+ "flag" => $flag++
+ ),
+ );
+ return array(
+ "dial" => $dial,
+ "settings" => $settings
+ );
+ }
# !TODO!: -TODO-: Would it not be better to put this part in the view directory (MVC) ? No, This is a template for Freepbx.
- public function getDeviceDisplay($display, $deviceInfo, $currentcomponent, $primarySection) {
- $section = _("Settings");
- $category = "general";
- $tmparr = array();
- $tt = _("The maximum number of incoming calls on this line.");
- // $tmparr['incominglimit'] = array('prompttext' => _('Incoming Call Limit'), 'value' => '2', 'tt' => $tt, 'level' => 0, 'jsvalidation' => 'isEmpty()', 'failvalidationmsg' => $msgInvalidChannel);
- // !TODO!: Please change the default value for incominglimit to '6' or higher
- $tmparr['incominglimit'] = array('prompttext' => _('Incoming Call Limit'), 'value' => '2', 'tt' => $tt, 'level' => 1);
+ public function getDeviceDisplay($display, $deviceInfo, $currentcomponent, $primarySection) {
+ $section = _("Settings");
+ $category = "general";
+ $tmparr = array();
+ $tt = _("The maximum number of incoming calls on this line.");
+// $tmparr['incominglimit'] = array('prompttext' => _('Incoming Call Limit'), 'value' => '2', 'tt' => $tt, 'level' => 0, 'jsvalidation' => 'isEmpty()', 'failvalidationmsg' => $msgInvalidChannel);
+// !TODO!: Please change the default value for incominglimit to '6' or higher
+ $tmparr['incominglimit'] = array('prompttext' => _('Incoming Call Limit'), 'value' => '2', 'tt' => $tt, 'level' => 1);
- $tt = _("Asterisk context which this line will use to send and receive calls (Note: Only change this is you know what you are doing).");
- $tmparr['lcontext'] = array('prompttext' => _('Line context'), 'value' => 'from-internal', 'tt' => $tt, 'level' => 1);
+ $tt = _("Asterisk context which this line will use to send and receive calls (Note: Only change this is you know what you are doing).");
+ $tmparr['lcontext'] = array('prompttext' => _('Line context'), 'value' => 'from-internal', 'tt' => $tt, 'level' => 1);
- // !TODO!: -TODO-: Maybe completely remove support for old numberic callgroup/pickupgroup in favor of the named version ? See Sccp.class.php.v431
- $tt = _("Phone call group (numeric only, example:1,3-4)");
- $tmparr['callgroup'] = array('prompttext' => _('Call group id'),'value' => '', 'tt' => $tt, 'level' => 1);
+// !TODO!: -TODO-: Maybe completely remove support for old numberic callgroup/pickupgroup in favor of the named version ? See Sccp.class.php.v431
+ $tt = _("Phone call group (numeric only, example:1,3-4)");
+ $tmparr['callgroup'] = array('prompttext' => _('Call group id'),'value' => '', 'tt' => $tt, 'level' => 1);
- // !TODO!: -TODO-: multiple allowed (not sure if that is implemented here). See Sccp.class.php.v431
- $tt = _("Phone named call group (>asterisk-11)");
- $tmparr['namedcallgroup'] = array('prompttext' => _('Named Call Group'),'value' => '', 'tt' => $tt, 'level' => 1);
+// !TODO!: -TODO-: multiple allowed (not sure if that is implemented here). See Sccp.class.php.v431
+ $tt = _("Phone named call group (>asterisk-11)");
+ $tmparr['namedcallgroup'] = array('prompttext' => _('Named Call Group'),'value' => '', 'tt' => $tt, 'level' => 1);
- $tt = _("Sets the pickup group (numeric only, example:1,3-4) this line is a member of. Allows this line to pickup calls from remote phones which are in this callhroup.");
- $tmparr['pickupgroup'] = array('prompttext' => _('Pickup group id'),'value' => '', 'tt' => $tt, 'level' => 1);
+ $tt = _("Sets the pickup group (numeric only, example:1,3-4) this line is a member of. Allows this line to pickup calls from remote phones which are in this callhroup.");
+ $tmparr['pickupgroup'] = array('prompttext' => _('Pickup group id'),'value' => '', 'tt' => $tt, 'level' => 1);
- // !TODO!: -TODO-: multiple allowed (not sure if that is implemented here). See Sccp.class.php.v431
- $tt = _("Sets the named pickup name group this line is a member of. Allows this line to pickup calls from remote phones which are in this name callgroup (>asterisk-11).");
- $tmparr['namedpickupgroup'] = array('prompttext' => _('Named Pickup Group'),'value' => '', 'tt' => $tt, 'level' => 1);
+// !TODO!: -TODO-: multiple allowed (not sure if that is implemented here). See Sccp.class.php.v431
+ $tt = _("Sets the named pickup name group this line is a member of. Allows this line to pickup calls from remote phones which are in this name callgroup (>asterisk-11).");
+ $tmparr['namedpickupgroup'] = array('prompttext' => _('Named Pickup Group'),'value' => '', 'tt' => $tt, 'level' => 1);
- $tt = _("Phone pincode (Note used)");
- $tmparr['pin'] = array('value' => '', 'tt' => $tt, 'level' => 1);
+ $tt = _("Phone pincode (Note used)");
+ $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 = _("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);
- unset($select);
- $select[] = array( 'value' => '0x21', 'text' => 'Inside Dial Tone');
- $select[] = array( 'value' => '0x22', 'text' => 'Outside Dial Tone');
- $select[] = array( 'value' => '0x23', 'text' => 'Line Busy Tone');
- $select[] = array( 'value' => '0x24', 'text' => 'Alerting Tone');
- $select[] = array( 'value' => '0x25', 'text' => 'Reorder Tone');
- $select[] = array( 'value' => '0x26', 'text' => 'Recorder Warning Tone');
- $select[] = array( 'value' => '0x27', 'text' => 'Recorder Detected Tone');
- $select[] = array( 'value' => '0x28', 'text' => 'Reverting Tone');
- $select[] = array( 'value' => '0x29', 'text' => 'Receiver OffHook Tone');
- $select[] = array( 'value' => '0x2A', 'text' => 'Partial Dial Tone');
- $select[] = array( 'value' => '0x2B', 'text' => 'No Such Number Tone');
- $select[] = array( 'value' => '0x2C', 'text' => 'Busy Verification Tone');
- $select[] = array( 'value' => '0x2D', 'text' => 'Call Waiting Tone');
- $select[] = array( 'value' => '0x2E', 'text' => 'Confirmation Tone');
- $select[] = array( 'value' => '0x2F', 'text' => 'Camp On Indication Tone');
- $select[] = array( 'value' => '0x30', 'text' => 'Recall Dial Tone');
- $select[] = array( 'value' => '0x31', 'text' => 'Zip Zip');
- $select[] = array( 'value' => '0x32', 'text' => 'Zip');
- $select[] = array( 'value' => '0x33', 'text' => 'Beep Bonk');
- $select[] = array( 'value' => '0x34', 'text' => 'Music Tone');
- $select[] = array( 'value' => '0x35', 'text' => 'Hold Tone');
- $select[] = array( 'value' => '0x36', 'text' => 'Test Tone');
- $select[] = array( 'value' => '0x37', 'text' => 'DT Monitor Warning Tone');
- $select[] = array( 'value' => '0x40', 'text' => 'Add Call Waiting');
- $select[] = array( 'value' => '0x41', 'text' => 'Priority Call Wait');
- $select[] = array( 'value' => '0x42', 'text' => 'Recall Dial');
- $select[] = array( 'value' => '0x43', 'text' => 'Barg In');
- $select[] = array( 'value' => '0x44', 'text' => 'Distinct Alert');
- $select[] = array( 'value' => '0x45', 'text' => 'Priority Alert');
- $select[] = array( 'value' => '0x46', 'text' => 'Reminder Ring');
- $select[] = array( 'value' => '0x47', 'text' => 'Precedence RingBank');
- $select[] = array( 'value' => '0x48', 'text' => 'Pre-EmptionTone');
- $select[] = array( 'value' => '0x67', 'text' => '2105 HZ');
- $select[] = array( 'value' => '0x68', 'text' => '2600 HZ');
- $select[] = array( 'value' => '0x69', 'text' => '440 HZ');
- $select[] = array( 'value' => '0x6A', 'text' => '300 HZ');
- $select[] = array( 'value' => '0x77', 'text' => 'MLPP Pala');
- $select[] = array( 'value' => '0x78', 'text' => 'MLPP Ica');
- $select[] = array( 'value' => '0x79', 'text' => 'MLPP Vca');
- $select[] = array( 'value' => '0x7A', 'text' => 'MLPP Bpa');
- $select[] = array( 'value' => '0x7B', 'text' => 'MLPP Bnea');
- $select[] = array( 'value' => '0x7C', 'text' => 'MLPP Upa');
- /* !TODO!: +TODO+: I would remove the values below this line, except for 'No Tone' */
- // $select[] = array( 'value' => '0x7F', 'text' => 'No Tone');
- $select[] = array( 'value' => '0x80', 'text' => 'Meetme Greeting Tone');
- $select[] = array( 'value' => '0x81', 'text' => 'Meetme Number Invalid Tone');
- $select[] = array( 'value' => '0x82', 'text' => 'Meetme Number Failed Tone');
- $select[] = array( 'value' => '0x83', 'text' => 'Meetme Enter Pin Tone');
- $select[] = array( 'value' => '0x84', 'text' => 'Meetme Invalid Pin Tone');
- $select[] = array( 'value' => '0x85', 'text' => 'Meetme Failed Pin Tone');
- $select[] = array( 'value' => '0x86', 'text' => 'Meetme CFB Failed Tone');
- $select[] = array( 'value' => '0x87', 'text' => 'Meetme Enter Access Code Tone');
- $select[] = array( 'value' => '0x88', 'text' => 'Meetme Access Code Invalid Tone');
- $select[] = array( 'value' => '0x89', 'text' => 'Meetme Access Code Failed Tone');
- $select[] = array('value' => 'yes', 'text' => 'Yes');
- $select[] = array('value' => 'no', 'text' => 'No');
+ unset($select);
+ $select[] = array( 'value' => '0x21', 'text' => 'Inside Dial Tone');
+ $select[] = array( 'value' => '0x22', 'text' => 'Outside Dial Tone');
+ $select[] = array( 'value' => '0x23', 'text' => 'Line Busy Tone');
+ $select[] = array( 'value' => '0x24', 'text' => 'Alerting Tone');
+ $select[] = array( 'value' => '0x25', 'text' => 'Reorder Tone');
+ $select[] = array( 'value' => '0x26', 'text' => 'Recorder Warning Tone');
+ $select[] = array( 'value' => '0x27', 'text' => 'Recorder Detected Tone');
+ $select[] = array( 'value' => '0x28', 'text' => 'Reverting Tone');
+ $select[] = array( 'value' => '0x29', 'text' => 'Receiver OffHook Tone');
+ $select[] = array( 'value' => '0x2A', 'text' => 'Partial Dial Tone');
+ $select[] = array( 'value' => '0x2B', 'text' => 'No Such Number Tone');
+ $select[] = array( 'value' => '0x2C', 'text' => 'Busy Verification Tone');
+ $select[] = array( 'value' => '0x2D', 'text' => 'Call Waiting Tone');
+ $select[] = array( 'value' => '0x2E', 'text' => 'Confirmation Tone');
+ $select[] = array( 'value' => '0x2F', 'text' => 'Camp On Indication Tone');
+ $select[] = array( 'value' => '0x30', 'text' => 'Recall Dial Tone');
+ $select[] = array( 'value' => '0x31', 'text' => 'Zip Zip');
+ $select[] = array( 'value' => '0x32', 'text' => 'Zip');
+ $select[] = array( 'value' => '0x33', 'text' => 'Beep Bonk');
+ $select[] = array( 'value' => '0x34', 'text' => 'Music Tone');
+ $select[] = array( 'value' => '0x35', 'text' => 'Hold Tone');
+ $select[] = array( 'value' => '0x36', 'text' => 'Test Tone');
+ $select[] = array( 'value' => '0x37', 'text' => 'DT Monitor Warning Tone');
+ $select[] = array( 'value' => '0x40', 'text' => 'Add Call Waiting');
+ $select[] = array( 'value' => '0x41', 'text' => 'Priority Call Wait');
+ $select[] = array( 'value' => '0x42', 'text' => 'Recall Dial');
+ $select[] = array( 'value' => '0x43', 'text' => 'Barg In');
+ $select[] = array( 'value' => '0x44', 'text' => 'Distinct Alert');
+ $select[] = array( 'value' => '0x45', 'text' => 'Priority Alert');
+ $select[] = array( 'value' => '0x46', 'text' => 'Reminder Ring');
+ $select[] = array( 'value' => '0x47', 'text' => 'Precedence RingBank');
+ $select[] = array( 'value' => '0x48', 'text' => 'Pre-EmptionTone');
+ $select[] = array( 'value' => '0x67', 'text' => '2105 HZ');
+ $select[] = array( 'value' => '0x68', 'text' => '2600 HZ');
+ $select[] = array( 'value' => '0x69', 'text' => '440 HZ');
+ $select[] = array( 'value' => '0x6A', 'text' => '300 HZ');
+ $select[] = array( 'value' => '0x77', 'text' => 'MLPP Pala');
+ $select[] = array( 'value' => '0x78', 'text' => 'MLPP Ica');
+ $select[] = array( 'value' => '0x79', 'text' => 'MLPP Vca');
+ $select[] = array( 'value' => '0x7A', 'text' => 'MLPP Bpa');
+ $select[] = array( 'value' => '0x7B', 'text' => 'MLPP Bnea');
+ $select[] = array( 'value' => '0x7C', 'text' => 'MLPP Upa');
+/* !TODO!: +TODO+: I would remove the values below this line, except for 'No Tone' */
+// $select[] = array( 'value' => '0x7F', 'text' => 'No Tone');
+ $select[] = array( 'value' => '0x80', 'text' => 'Meetme Greeting Tone');
+ $select[] = array( 'value' => '0x81', 'text' => 'Meetme Number Invalid Tone');
+ $select[] = array( 'value' => '0x82', 'text' => 'Meetme Number Failed Tone');
+ $select[] = array( 'value' => '0x83', 'text' => 'Meetme Enter Pin Tone');
+ $select[] = array( 'value' => '0x84', 'text' => 'Meetme Invalid Pin Tone');
+ $select[] = array( 'value' => '0x85', 'text' => 'Meetme Failed Pin Tone');
+ $select[] = array( 'value' => '0x86', 'text' => 'Meetme CFB Failed Tone');
+ $select[] = array( 'value' => '0x87', 'text' => 'Meetme Enter Access Code Tone');
+ $select[] = array( 'value' => '0x88', 'text' => 'Meetme Access Code Invalid Tone');
+ $select[] = array( 'value' => '0x89', 'text' => 'Meetme Access Code Failed Tone');
+ $select[] = array('value' => 'yes', 'text' => 'Yes');
+ $select[] = array('value' => 'no', 'text' => 'No');
- $tt = _("Outside dialtone frequency (defaul 0x22)");
- $tmparr['secondary_dialtone_tone'] = array('prompttext' => _('Secondary dialtone'), 'value' => '0x22', 'tt' => $tt, 'select' => $select, 'level' => 1, 'type' => 'select');
+ $tt = _("Outside dialtone frequency (defaul 0x22)");
+ $tmparr['secondary_dialtone_tone'] = array('prompttext' => _('Secondary dialtone'), 'value' => '0x22', 'tt' => $tt, 'select' => $select, 'level' => 1, 'type' => 'select');
- # !TODO!: -TODO-: is there no easier way to specify a boolean radio group ? No.
- unset($select);
- $select[] = array('value' => 'on', 'text' => 'On');
- $select[] = array('value' => 'off', 'text' => 'Off');
- $tt = _("Allow call transfer.");
- $tmparr['transfer'] = array('prompttext' => _('Call Transfer'), 'value' => 'on', 'tt' => $tt, 'select' => $select, 'level' => 1, 'type' => 'radio');
+# !TODO!: -TODO-: is there no easier way to specify a boolean radio group ? No.
+ unset($select);
+ $select[] = array('value' => 'yes', 'text' => 'Yes');
+ $select[] = array('value' => 'no', 'text' => 'No');
+ $tt = _("Allow call transfer.");
+ $tmparr['transfer'] = array('prompttext' => _('Call Transfer'), 'value' => 'yes', 'tt' => $tt, 'select' => $select, 'level' => 1, 'type' => 'radio');
- unset($select);
- $select[] = array('value' => 'on', 'text' => 'On');
- $select[] = array('value' => 'off', 'text' => 'Off');
- $tt = _("Echo cancel");
- $tmparr['echocancel'] = array('prompttext' => _('Echo cancel'), 'value' => 'off', 'tt' => $tt, 'select' => $select, 'level' => 1, 'type' => 'radio');
+ unset($select);
+ $select[] = array('value' => 'yes', 'text' => 'Yes');
+ $select[] = array('value' => 'no', 'text' => 'No');
+ $tt = _("Echo cancel");
+ $tmparr['echocancel'] = array('prompttext' => _('Echo cancel'), 'value' => 'yes', 'tt' => $tt, 'select' => $select, 'level' => 1, 'type' => 'radio');
- unset($select);
- $select[] = array('value' => 'off', 'text' => 'Off');
- $select[] = array('value' => 'reject', 'text' => 'Reject');
- $select[] = array('value' => 'silent', 'text' => 'Silent');
- $select[] = array('value' => 'UserDefined', 'text' => 'UserDefined');
- # !TODO!: -TODO-: The next entry should be "null/empty" (not UserDefined) -> to indicate the trie-state behaviour
- # !TODO!: -TODO-: Userdefined is also a possible state, but it is not used or implemented (and it should not be implemented here, i think). See Sccp.class.php.v431, See Sccp.class.php - Old Style
- $tt = _("DND: How will dnd react when it is set on the device level dnd can have three states: off / busy(reject) / silent / UserDefined").' '.
- _("UserDefined - dnd that cycles through all three states off -> reject -> silent -> off (this is the normal behaviour)").' '.
- _("Reject - Usesr can only switch off and on (in reject/busy mode)").' '.
- _("Silent - Usesr can only switch off and on (in silent mode)");
- $tmparr['dnd'] = array('prompttext' => _('DND'), 'value' => 'UserDefined', 'tt' => $tt, 'select' => $select, 'level' => 1, 'type' => 'radio');
+ unset($select);
+ $select[] = array('value' => 'off', 'text' => 'Off');
+ $select[] = array('value' => 'reject', 'text' => 'Reject');
+ $select[] = array('value' => 'silent', 'text' => 'Silent');
+ $select[] = array('value' => 'UserDefined', 'text' => 'UserDefined');
+# !TODO!: -TODO-: The next entry should be "null/empty" (not UserDefined) -> to indicate the trie-state behaviour
+# !TODO!: -TODO-: Userdefined is also a possible state, but it is not used or implemented (and it should not be implemented here, i think). See Sccp.class.php.v431, See Sccp.class.php - Old Style
+ $tt = _("DND: How will dnd react when it is set on the device level dnd can have three states: off / busy(reject) / silent / UserDefined").' '.
+ _("UserDefined - dnd that cycles through all three states off -> reject -> silent -> off (this is the normal behaviour)").' '.
+ _("Reject - Usesr can only switch off and on (in reject/busy mode)").' '.
+ _("Silent - Usesr can only switch off and on (in silent mode)");
+ $tmparr['dnd'] = array('prompttext' => _('DND'), 'value' => 'UserDefined', 'tt' => $tt, 'select' => $select, 'level' => 1, 'type' => 'radio');
- unset($select);
- $select[] = array('value' => 'on', 'text' => 'On');
- $select[] = array('value' => 'off', 'text' => 'Off');
- $tt = _("Silence Suppression. Asterisk Not supported");
- $tmparr['silencesuppression'] = array('prompttext' => _('Silence Suppression'), 'value' => 'off', 'tt' => $tt, 'select' => $select, 'level' => 1, 'type' => 'radio');
+ unset($select);
+ $select[] = array('value' => 'yes', 'text' => 'Yes');
+ $select[] = array('value' => 'no', 'text' => 'No');
+ $tt = _("Silence Suppression. Asterisk Not supported");
+ $tmparr['silencesuppression'] = array('prompttext' => _('Silence Suppression'), 'value' => 'no', 'tt' => $tt, 'select' => $select, 'level' => 1, 'type' => 'radio');
- unset($select);
- $select[] = array('value' => 'default', 'text' => _('default'));
- if (function_exists('music_list')){
- $moh_list = music_list();
- } else {
- $moh_list = array('default');
- }
- foreach ($moh_list as $value) {
- $select[] = array('value' => $value, 'text' => _($value));
- }
+ unset($select);
+ $select[] = array('value' => 'default', 'text' => _('default'));
+ if (function_exists('music_list')){
+ $moh_list = music_list();
+ } else {
+ $moh_list = array('default');
+ }
+ foreach ($moh_list as $value) {
+ $select[] = array('value' => $value, 'text' => _($value));
+ }
- $tt = _("Music on hold");
- $tmparr['musicclass'] = array('prompttext' => _('Music on hold'), 'value' => 'no', 'tt' => $tt, 'select' => $select, 'level' => 1);
+ $tt = _("Music on hold");
+ $tmparr['musicclass'] = array('prompttext' => _('Music on hold'), 'value' => 'no', 'tt' => $tt, 'select' => $select, 'level' => 1);
- $devopts = $tmparr;
- return $devopts;
- }
+ $devopts = $tmparr;
+ return $devopts;
+ }
}
diff --git a/conf/sccpgeneral.xml.v431 b/conf/sccpgeneral.xml.v431
new file mode 100644
index 0000000..226a670
--- /dev/null
+++ b/conf/sccpgeneral.xml.v431
@@ -0,0 +1,1520 @@
+
+
+
+
+
+ XML_info
+
+ NONE
+
+
+
+
+
+
+
+
+
+
+
+ dev_sshUserId
+ cisco
+
+ Help.
+
+
+
+
+ dev_sshPassword
+ cisco
+
+ Help.
+
+
+
+
+ dev_deviceProtocol
+ SCCP
+
+ Help.
+
+
+
+
+ sccp_xml_about
+ XML Base ver: 11.2, Sccp ver: 431
+
+ Help.
+
+
+
+
+
+
+
+
+
+
+ servername
+ Vt
+
+ Servername: This is the type of server - usually, it will be Asterisk.
+
+
+
+
+ bindaddr
+ 0.0.0.0
+ sccp-custom
+
+
+ port
+ 2000
+ sccp-custom
+
+ Bind Address: The address to bind to for SCCP. In general, it should be set to '0.0.0.0'. If you find problems with one-way audio, you can set this to a specific address in the server. Note that '127.0.0.1' is always wrong here. Also note that placing in your external IP address will cause the chan_sccp module to not load. A manual edit of the /etc/asterisk/sccp.conf file will be needed to fix and reload the module.
+ :
+
+
+
+
+ externip
+
+ sccp-custom
+
+
+ External IP Address of the firewall, required in case the PBX is running on a separate host behind it. IP Address that we're going to notify in RTP media stream as the pbx source address.
+ /
+
+
+
+
+ keepalive
+ 60
+ sccp-custom
+ number
+
+
+ Time between Keep Alive checks. Valid range is 60-300 seconds. After much trial-and-error, the minimum (60) seems to work just fine.
+
+
+ nat
+
+ auto
+
+
+
+ Global NAT support (default Auto)
+
+
+ debug
+
+ NONE
+
+
+
+
+
+ Debug: Enable debugging level in SCCP module.
+
+
+ displayconfig
+
+ sccpgeneral
+
+
+ Help!
+
+
+
+
+
+
+ permit
+ Internal
+ 0.0.0.0/0.0.0.0
+
+
+
+
+
+
+ +
+ Add Allow Range
+ Allow network settings. Blank fields will be ignored used Network 0.0.0.0/0.0.0.0 to resolve any existing connections. You can use the 'internal' connections only from the networks connected to the server.
+
+
+
+
+
+ localnet
+ Internal
+ 0.0.0.0/0.0.0.0
+
+
+
+
+
+
+
+
+ +
+ Add Internal Range
+ Local network settings. Blank fields will be ignored used Network 0.0.0.0.
+
+
+
+ deny
+ 0.0.0.0/0.0.0.0
+
+
+
+
+
+
+
+
+ +
+ Add Deny network
+ All RFC 1918 addresses are local networks. Should always be at least '0.0.0.0/0.0.0.0'.
+
+
+
+
+
+
+
+
+ language
+ English
+
+ SCCP Language: This is the language for your hints and other features of the phone. If you don't have any languages installed or are using a single language, you can leave this blank.
+
+
+
+ netlang
+ English_United_States
+
+ The Network locales allows the phone to play tones (ringing, busy etc.) native to the phone's country.
+
+
+
+ devlang
+ English_United_States
+
+ The user locale allows the phone to display text (menu items, soft keys etc.) native to the phone's language.
+
+
+
+
+
+
+
+
+ firstdigittimeout
+ 16
+ sccp-custom
+ number
+
+
+ First Digit Timeout: The amount of time after your first digit to start dialing automatically. This can be over-ridden with settings in your dialplan.xml or by using the 'immediate dial' button.
+
+
+
+
+ digittimeout
+ 8
+ sccp-custom
+ number
+
+
+ Digit Timeout: The amount of time to wait after the second (or subsequent) dialed digit. Override rules are the same as for firstdigittimeout.
+
+
+
+
+ autoanswer_ring_time
+ 0
+ sccp-custom
+ number
+
+
+ Autoanswer Ring Time: The amount of time the phones will ring when being called as Intercom or Paging mode.
+
+
+
+
+ autoanswer_tone
+ 0x32
+ sccp-custom
+
+ Autoanswer Tone: The tone the phone plays back when it picks up the phone in autoanswer mode. Default is '0x32'. Silence is '0x00'. There are lots of tones, all expressed as '0XNN' where 'NN' is a hexadecimal number.
+
+
+
+
+ remotehangup_tone
+ 0x32
+ sccp-custom
+
+ Remote Hangup Tone: The tone played by the phone when it received a remote hang-up signal. Use '0' to disable the tone.
+
+
+
+
+ transfer_tone
+ 0x32
+ sccp-custom
+
+ Transfer Tone: The tone played when a call is transferred. Use '0' to disable the tone.
+
+
+
+
+ callwaiting_tone
+ 0x2D
+ sccp-custom
+
+ Call Waiting Tone: The tone played when a call is waiting. If you set this one to '0', you will not get a tone in your current call if a new call comes in, so you might want to disable call waiting for this line instead.
+
+
+
+
+ directed_pickup_context
+
+
+ sccp-custom
+
+ Context where direct pickup search for extensions. if not set current contect will be use.
+
+
+ echocancel
+
+ off
+
+
+ Echo Cancel: Echo Cancellation (On or Off).
+
+
+ silencesuppression
+
+ off
+
+
+ Silence Suppression: Slience Suppression on the phone.
+
+
+ private
+
+ on
+
+
+ Private Calling Enabled: Place a call with privacy Options (no Caller ID) turned on. Needs to be supported in Asterisk to work through SIP and DAHDI trunks.
+
+
+ directed_pickup_modeanswer
+
+ off
+
+
+ Directed Pickup Mode (Answer): If a call is sent with the "directed pickup" flag, the phone will answer when set to "Yes".
+
+
+ transfer_on_hangup
+
+ off
+
+
+ Complete transfer on hangup, without pressing transfer a second time. Will complete transfer, when the transferer puts the receiver on hook, after the destination has been reached. To cancel the transfer, either press resume on the transferred channel, press the 'endcall' softkey, or have the receiving party hangup first.
+
+
+ callanswerorder
+
+ oldestfirst
+
+
+ Call Answer Order: Which call should be answered first? The most common choice is "oldestfirst", but other orders are supported.
+
+
+ callhistory_answered_elsewhere
+
+ Missed Calls
+
+
+
+
+
+
+
+ mwilamp
+
+ On
+
+
+
+
+
+ Set the MWI lamp style when MWI active to on, off, wink, flash or blink
+
+
+ mwioncall
+
+ off
+
+
+ Set the MWI on call.
+
+
+
+
+
+ directrtp
+
+ off
+
+
+ This option set global allow devices to do direct RTP sessions (default Off)
+
+
+ earlyrtp
+
+ none
+ Immediate
+
+
+
+
+
+ The audio strem will be open in the progress and connected state. Valid options: NONE, progress, offhook, dial, ringout. Default may be Progress.
+
+
+ simulate_enbloc
+
+ on
+
+
+ Use simulated enbloc dialing to speedup connection when dialing while onhook (older phones)
+
+
+
+
+
+ cfwdall
+
+ off
+
+
+ Activate the callforward softkeys. Default is On
+
+
+ cfwdbusy
+
+ off
+
+
+ Activate the callforward busy softkeys. Default is On
+
+
+ dndFeature
+
+ on
+
+
+ Do Not Disturb. Default is Off
+
+
+
+
+
+
+ ntp_config_enabled
+
+ off
+
+
+ Enabling NTP settings in device configuration.
+
+
+
+
+ ntp_server
+ pool.ntp.org
+ pool.ntp.org
+
+ NTP Server name or IP
+
+
+ ntp_server_mode
+
+ unicast
+
+
+
+
+ Configure NTP Server protocol time synchronization
+
+
+
+
+
+
+
+ dateformat
+
+ Date Format: The date format for the on-screen display. Can be one of the following: (D-M-YA, M.D.Y, Y/M/D) where 'D' is Day, 'M' is Month, 'Y' is Year, 'A' is 24-hour, 'a' is 12-hour, and the separators can be '.','-','/'
+
+
+
+ ntp_timezone
+ sccp-custom
+
+ Date Format: Time zone
+
+
+
+
+
+
+
+ Help_srst
+ You can also configure a Survivable Remote Site Telephony (SRST) reference as the last device in the CallManager(CM) list. This proves especially useful in a remote site configuration where the phones and Asterisk are connected over a WAN network. SRST provides users with fallback support for the IP phones that cannot access the primary, secondary, or tertiary Asterisk Node in the CallManager List because of an Asterisk Node failure or loss of connectivity across the WAN. For the remote sites attached to multiple-service routers across the WAN, SRST ensures that your remote users receive continuous (although minimal) service by providing call handling support directly from the SRST router.
+ When IP phones lose contact with primary, secondary, and tertiary Asterisk Nodes (CM's), they must establish a connection to a local SRST router to sustain the call-processing capability necessary to place and receive calls. The IP phone retains the IP address of the local SRST router as a default router in the Network Configuration area of the Settings menu. The Settings menu supports a maximum of five default router entries; however, the cnf.xml accommodates a maximum of three entries. When a secondary Asterisk Node is not available on the network, the local SRST Router's IP address is retained as the standby connection for Asterisk Node during normal operation.
+
+
+
+ srst_Option
+
+ disable
+
+
+
+ You enabled/configured a Survivable Remote Site Telephony (SRST) reference as the last device in the CallManager(CM) list.
+
+
+ srst_userModifiable
+
+ false
+
+
+ The user can change the personal SRST configuration on the device
+
+
+ srst_isSecure
+
+ false
+
+
+ The user can change the personal SRST configuration on the device
+
+
+
+
+
+ srst_Name
+ Enable
+
+ You enabled configure a Survivable Remote Site Telephony (SRST) reference as the last device in the CallManager(CM) list.
+
+
+
+
+ srst_ip
+ 3
+ /
+
+
+
+
+
+
+
+
+ Add Server
+ Help.
+
+
+
+ srst_sip
+ 3
+ /
+
+
+
+
+
+
+
+
+ Add Server
+ Help.
+
+
+
+
+
+
+
+
+ dev_servicesURL
+
+
+
+
+
+
+
+
+
+
+ dev_authenticationURL
+
+
+
+
+ The above is simply a dummy authentication page. It literally contains one word: AUTHORIZED (it receives UserId, Password, and devicename in the url - if you truly wish to implement special auth)
+
+
+
+
+ dev_idleURL
+
+
+
+
+ URL of CiscoIPPhoneImage. Requires a non-zero setting in idleTimeout.
+
+
+
+
+ dev_informationURL
+
+
+
+
+
+
+
+
+ dev_messagesURL
+
+
+
+
+
+
+
+
+ dev_directoryURL
+
+
+
+ This is the URL for a CiscoIPPhoneMenu which gets appended to the end of the Missed/Received/Placed calls. I don't use it (I find it makes more sense to put my phone book under services)
+
+
+
+
+ dev_proxyServerURL
+
+
+
+
+
+
+
+
+
+
+ dev_idleTimeout
+ 60
+ sccp-custom
+ number
+
+
+
+
+
+
+
+
+
+
+
+ sccp_tos
+ 0x68
+ sccp-custom
+
+
+ sccp_cos
+ 0x4
+ sccp-custom
+
+ SCCP Type Of Service / Class Of Service: SCCP Type or Class of Service - this is modifiable, but don't.
+
+
+
+
+ audio_tos
+ 0xB8
+ sccp-custom
+
+
+ audio_cos
+ 0x6
+ sccp-custom
+
+ Audio Type Of Service / Class Of Service: Audio Type or Class of Service - this is modifiable, but don't.
+
+
+
+
+ video_tos
+ 0x88
+ sccp-custom
+
+
+ video_cos
+ 0x5
+ sccp-custom
+
+ Video Type Of Service / Class Of Service: Video Type or Class of Service - this is modifiable, but don't.
+
+
+
+
+
+ Help_id2
+
+ Setting the hotline Feature on a device, will make it connect to a predefined extension as soon as the Receiver is picked up or the "New Call" Button is pressed. No number has to be given. This works even on devices which have no entry in the config file or realtime database.
+ The hotline function can be used in :
+
+
+
First time configuration
+
This will make it easier to register new devices and assign numbers
+
+
+
At a door
+
Where you want people to be able to only call one number
+
+
+
For unprovisioned phones
+
To only be able to call the helpdesk to get their phone set up
+
+
+
+ Be careful with this function. Especially not to the internet. So i would restring the deny/permit to 'internal' by default in that case.
+
+
+
Allow =
+
Specify a list of your networks, for example: 192.168.1.0
+
+
+
deny =
+
0.0.0.0/0.0.0.0
+
+
+
permit =
+
internal
+
+
+
hotline_context =
+
sccp
+
+
+
hotline_label =
+
hotline
+
+
+
+
+
+
+ hotline_enabled
+
+ off
+
+
+ Hotline Enabled: This allows unregistered extensions to connect to the system and dial the number listed below.
+
+
+
+
+ hotline_extension
+ *111
+ sccp-custom
+
+ Hotline Extension: The number that gets called when a hotline is picked up. hint
+
+
+
+
+ hotline_label
+ Hot Line
+ sccp-custom
+
+ Hotline Label: The label on the device
+
+
+
+
+ hotline_context
+ default
+ sccp-custom
+
+ Hotline Context: This is the context through which the phone will connect. It should probably match your other contest. The default is "from-internal" but "from-internal-xfer" would also make sense by limiting the options for the person using the phone.
+
+
+
+
+ context
+ from-internal
+ sccp-custom
+
+ Context: This is the context in which your phones will operate. It should match the context you are using for the rest of your phones (if you have any). The FreePBX default is 'from-internal'
+
+
+
+
+ regcontext
+ sccpregistration
+ sccp-custom
+
+ If regcontext is specified in sccp.conf chan-sccp-b will dynamically create and destroy a NoOp priority 1 extension for a given peer/line which registers with the server. If the context is not specified in extension.conf, then it will be dynamically created when an chan-sccp-b agent registers
+
+
+
+ musicclass
+ NONE
+
+ form-control
+ Music Class: Available MOH Classes. These are the MOH classes listed in your current server.
+
+
+
+ dial_template
+ NONE
+
+ sccp-custom
+ Help.
+
+
+ autoselectline_enabled
+
+ off
+
+
+ Enables and Disables auto line selection.
+
+
+ meetme
+
+ off
+
+
+ Enable/Disable conferencing via meetme (on/off), make sure you have one of the meetme apps mentioned below activated in module.conf
+
+
+
+
+ meetmeopts
+ qxd
+ sccp-custom
+
+ Other options (app_meetme: A,a,b,c,C,d,D,E,e,F,i,I,l,L,m,M,o,p,P,q,r,s,S,t,T,w,x,X,1) see meetme specific documentation
+
+
+
+ autocall_select
+
+ off
+
+
+
+
+
+ backgroundImageAccess
+
+ true
+
+
+ I'm guessing on this one, but on some devices, the background image on the display can be modified at the device. I think this is the thing that allows that to take.
+
+
+ phonePersonalization
+
+ 0
+
+
+ Phone personalization needs to be set to allow the server to push background or ringtones to the phone in the SEPXXXXXXXXXX.cnf.xml of each phone:
+
+
+ callLogBlfEnabled
+
+ 2
+
+
+ Which does show numbers you can redial, but also include their current device state, so you know when they are currently busy. Note that the other phonebook entries will now also monitor the remove device state and show the current device state
+
+
+
+
+
+
+ Help_tftp_rewrite
+ This section is responsible for the modes of operation of external services: tftp http.
+ * off - Flat model cisco. All data is in the directory /tftproot
+ * Custom - The directory structure is strictly defined in the manager (for internal use). Requires tftpd rewrite support.
+ * Provision - Directory structure data is read from an external file. This project supports phones that can work on tftp and http. Support rewrite.
+
+
+
+
+ provision_hide
+
+ tftp_path
+ /tftpboot
+ sccp-custom
+
+ Path to tftp home directory
+
+
+
+ provision_show
+
+ tftp_rewrite_path
+ /tftpboot
+ sccp-custom
+
+ Use path from provision index.cnf file. You must first make sure that you have properly configured the "Provision"
+
+
+
+ tftp_rewrite
+
+ off
+ pro
+ pro
+
+ Internal
+
+
+ Support the use of regular-expression-based filename remapping
+
+
+
+
+ devicetable
+ sccpdevice
+
+
+ sccp-custom
+ Device Table: This is the devicetable for your realtime configuration. Don't change this unless you know what you are doing and have made all the appropriate changes in the rest of your Asterisk config files. There are two reasonable settings for this - the sccpdevice table or the sccpdeviceconfig view. If you do not want to use the realtime database anymore, you can set this to blank. NOT RECOMMENDED.
+
+
+
+
+
+ linetable
+ sccpline
+ sccp-custom
+
+ Line Table: This is the linetable for your realtime configuration. Don't change this unless you know what you are doing and have made all the appropriate changes in the rest of your Asterisk config files. If you do not want to use the realtime database anymore, you can set this to blank. NOT RECOMMENDED.
+
+
+
+ createlangdir
+
+ no
+
+
+ Say 'yes' if you need to create cisco default language directory in tftp path.
+
+
+
+
+
+
+
+
+
+ mac
+ 000000000
+ sccp-custom
+
+ The MAC address of the phone. You must specify 12 characters in the format XXXX.XXXX.XXXX or XX-XX-XX-XX-XX-XX or XXXXXXXXXXXX
+
+
+
+
+ type
+ 7911
+
+ hw_select sccp-custom
+ The type of phone: 7911, 7940, 7960, etc. Important note: the 'G' models are handled as the base model (e.g., 7962G is handled as 7962). In the Display mode, this field is read-only because the MAC address and the model number are a pair.
+
+
+
+ addon
+ NONE
+
+ hw_select sccp-custom
+ Addon: Addons are model specific and only work with certain base phones. This phone model is identified as being a phone that does not accept sidecars. Update devmodel if this is not correct.
+
+
+
+
+
+
+
+
+ mac
+ 000000000
+ sccp-custom
+
+
+ The MAC address of the phone
+
+
+
+ type
+ 7911
+
+
+ hw_select sccp-custom
+ The type of phone: 7911, 7940, 7960, etc. Important note: the 'G' models are handled as the base model (e.g., 7962G is handled as 7962). In the Display mode, this field is read-only because the MAC address and the model number are a pair.
+
+
+
+
+
+ type
+ 79XX
+ sccp-custom
+
+
+ The type of phone: 7911, 7940, 7960, etc. Important note: the 'G' models are handled as the base model (e.g., 7962G is handled as 7962). In the Display mode, this field is read-only because the MAC address and the model number are a pair.
+
+
+
+
+ addon
+ NONE
+ sccp-custom
+
+
+ Addon: Addons are model specific and only work with certain base phones. This phone model is identified as being a phone that does not accept sidecars. Update devmodel if this is not correct.
+
+
+
+
+
+
+
+
+
+ description
+ 000000000
+ sccp-custom
+
+
+ The information in the upper right corner of the device screen. Only English letters and digits !
+
+
+
+ softkeyset
+ default
+
+ System Default Softkey
+
+
+
+ tzoffset
+ 00
+
+ Time Zone offset
+
+
+
+ netlang
+ English_United_States
+
+ The Network locales allows the phone to play tones (ringing, busy etc.) native to the phone's country.
+
+
+
+ devlang
+ Russian_Russia
+
+ The user locale allows the phone to display text (menu items, soft keys etc.) native to the phone's language.
+
+
+
+
+ backgroundImage
+
+ sccp-custom
+
+ For phones that can display background images - display this one. Default is [empty]
+
+
+
+
+ ringtone
+
+ sccp-custom
+
+ The ringtone that the phone will default to. Can be overridden in the phone. The files RINGLIST.XML provice the basic phone ring tones, while DISTINCTIVERINGLIST.XML defines the list of possible ring tones for your other line types. They, along with the actual 'raw' ringtones, are stored in the /tftpboot/ringtones directory with the rest of the config files.
+
+
+
+
+
+
+
+
+ mac
+ 000000000
+ sccp-custom
+
+
+
+
+
+
+
+
+ transfer
+
+ off
+
+
+ Transfer allowed
+
+
+ cfwdall
+
+ NONE
+
+
+
+ Activate the callforward softkeys. Default is On
+
+
+ cfwdbusy
+
+ NONE
+
+
+
+ Activate the callforward busy softkeys. Default is On
+
+
+ dndFeature
+
+ NONE
+
+
+
+ Do Not Disturb. Default is Off
+
+
+ directed_pickup
+
+ on
+ off
+
+
+ Enable Pickup function to direct pickup an extension. Default is On
+
+
+ conf_allow
+
+ on
+ off
+
+
+ Allow the use of conference
+
+
+
+
+
+ pickup_hide
+
+
+
+ directed_pickup_context
+
+ sccp-custom
+
+ Context where direct pickup search for extensions. if not set current contact will be use.
+
+
+ directed_pickup_modeanswer
+
+ on
+
+
+ On (Default)= the call has been answered when picked up. Off = call manager way, the phone who picked up the call rings the call
+ Options: 'Immediate Answer' or 'Show CallerID' ??????
+
+
+
+
+
+
+ useRedialMenu
+
+ off
+
+
+ You can specifying 'useRedialMenu = yes' in the sccp.conf device section and the redial softkey will cause the "placed calls" list instead of immediately calling the last dialed number.
+
+
+ force_dtmfmode
+
+ auto
+
+
+
+ Some phone models with bad firmware do send dtmf in a messed up order and need to be forced to skinny mode.
+
+
+ mwioncall
+
+ NONE
+
+
+
+ Set the MWI on call.
+
+
+
+ mwilamp
+
+ NONE
+
+
+
+
+
+
+ Set the MWI lamp style when MWI active to on, off, wink, flash or blink
+
+
+
+
+ conf_hide
+
+
+ conf_play_general_announce
+
+ on
+
+
+ Playback General Announcements (like: 'You are Entering/Leaving the conference')
+
+
+ conf_play_part_announce
+
+ on
+
+
+ Playback Personal/Participant Announcements, (like: 'You have been muted / You have been kicked')
+
+
+ conf_mute_on_entry
+
+ off
+
+
+ Mute new participants from the start
+
+
+ conf_show_conflist
+
+ on
+
+
+ Automatically show conference list to the moderator
+
+
+
+ conf_music_on_hold_class
+ default
+
+ form-control
+ Play music on hold of this class when no moderator is listening on the conference. If set to an empty string, no music on hold will be played.
+
+
+
+
+
+ custom_network_acc
+
+ permit
+
+
+
+ Help.
+
+
+ custom_network_type
+
+ ipv4
+
+
+ Help.
+
+
+
+
+ custom_network_v
+
+
+ sccp-custom
+
+
+ custom_network_m
+
+ sccp-custom
+
+
+ Help.
+
+
+
+
+
+
+
+
+ deny
+ /
+ sccp_hw_net_inherit
+
+
+
+
+
+
+ +
+ Add Deny network
+ All RFC 1918 addresses are local networks. Should always be at least '0.0.0.0/0.0.0.0'.
+
+
+
+
+
+ permit
+ NONE
+ Inherit
+ false
+
+ sccp_hw-ar_permit-grinternal
+
+ sccp_hw_net_inherit
+
+
+
+
+
+
+ +
+ Add Allow network
+ Allow network settings. Blank fields will be ignored used Network 0.0.0.0.
+
+
+
+ nat
+
+ NONE
+
+
+
+
+ Device NAT support (default Auto)
+
+
+
+ directrtp
+
+ NONE
+ Auto
+
+
+
+ This option allow devices to do direct RTP sessions (default Off)
+
+
+ earlyrtp
+
+ NONE
+
+ Immediate
+
+
+
+
+
+ The audio stream will be open in the progress and connected state. Valid options: none, progress, offhook, dial, ringout. Default may be Progress.
+
+
+
+
+
+
+ dialtemplate_name
+
+ form-control
+
+ Help.
+
+
+
+
+
+
+
+ Help_id1
+ Specifies a pattern to match dialed digits against. Note: TEMPLATE must be in uppercase.
+ Rules:
+
+
+
match:
+
Pattern to match, consists of one or more elements
+
+
+
0 1 2 3 4 5 6 7 8 9
+
Match digit
+
+
+
.
+
Match one digit, # or *
+
+
+
*
+
Match zero or more digits, # or *
+
+
+
\*
+
Match a literal *
+
+
+
,
+
Play secondary dial-tone specified by tone
+
+
+
timeout:
+
Number of seconds to wait for more digits if this pattern matches
+
+
+
line:
+
Only apply template to the specified line (optional)
+
+
+
rewrite:
+
Rewrite the matched digits before dialing, consists of one or more elements (optional)
+
+
+
0 1 2 3 4 5 6 7 8 9
+
Replace with digit
+
+
+
%0
+
The entire match
+
+
+
%1 %2 %3 %4 %5
+
Replace with group of digits matched, grouping is done by consecutive literal digit or . elements
+
+
+
%%
+
A literal %
+
+
+
.
+
Each . is replaced by the digit that was matched by the corresponding . in the pattern
+
+
+
tone:
+
Secondary dial-tone to play when a , is matched, up to 3 can be specified (optional)
+
+
+
+
+
+ dialtemplate
+ */10/*
+
+ title
+
+
+
+
+
+
+
+ text1
+
+
+
+
+
+ empty
+ Bellcore-Alerting
+ Bellcore-Inside
+ Bellcore-Outside
+ Bellcore-Busy
+ Bellcore-BusyVerify
+ Bellcore-Reorder
+ Bellcore-CallWaiting
+ Bellcore-Hold
+ Bellcore-Reminder
+ Bellcore-Confirmation
+ Bellcore-Stutter
+ Bellcore-Permanent
+ Bellcore-None
+ Cisco-Zip
+ Cisco-ZipZip
+ Cisco-BeepBonk
+ Bellcore-dr1
+ Bellcore-dr2
+ Bellcore-dr3
+ Bellcore-dr4
+ Bellcore-dr5
+ Bellcore-dr6
+ CallWaiting-2
+ CallWaiting-3
+ CallWaiting-4
+
+ Allow network settings. Blank fields will be ignored used Network 0.0.0.0.
+
+
+
+
+
diff --git a/conf/sccpgeneral.xml.v433 b/conf/sccpgeneral.xml.v433
index 698f0d6..f734102 100644
--- a/conf/sccpgeneral.xml.v433
+++ b/conf/sccpgeneral.xml.v433
@@ -3,34 +3,34 @@
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor. Base Version before all crash :-)
- * IE - Text Input
+ * IE - Text Input
* IED - Text Input Dynamic
* ITED- Input Dynamic Table
* IS - Radio box
- * SL - Select element
+ * SL - Select element
* SLA - Select element (from - data )
- * Input element Select SLD - Date format
- * SLZ - Time Zone
+ * Input element Select SLD - Date format
+ * SLZ - Time Zone
* SLTZN - Time Zone List
* SLT - TFTP Lang
- * SLM - Music on hold
+ * SLM - Music on hold
* SLK - System KeySet
- * * Input element Select SLS - System Language
- * Input element Select SDM - Model List
+ * * Input element Select SLS - System Language
+ * Input element Select SDM - Model List
* SDE - Extension List tftp_rewrite
* Help elemen HLP - Help Element
-
+
-->
- XML_info
+ XML_infoNONE
-
+
@@ -67,7 +67,7 @@ and open the template in the editor. Base Version before all crash :-)
Help.
-
+
@@ -76,36 +76,36 @@ and open the template in the editor. Base Version before all crash :-)
- servername
+ servernameVtServername: This is the type of server - usually, it will be Asterisk.
-
+
- bindaddr
+ bindaddr0.0.0.0sccp-custom
- port
+ port2000sccp-customBind Address: The address to bind to for SCCP. In general, it should be set to '0.0.0.0'. If you find problems with one-way audio, you can set this to a specific address in the server. Note that '127.0.0.1' is always wrong here. Also note that placing in your external IP address will cause the chan_sccp module to not load. A manual edit of the /etc/asterisk/sccp.conf file will be needed to fix and reload the module. :
-
+
- externip
+ externip0.0.0.0sccp-custom
- externhost
+ externhostsccp-custom
@@ -116,7 +116,7 @@ and open the template in the editor. Base Version before all crash :-)
/
externhost
-
+
@@ -129,16 +129,16 @@ and open the template in the editor. Base Version before all crash :-)
Time between Keep Alive checks. Valid range is 60-300 seconds. After much trial-and-error, the minimum (60) seems to work just fine.
- nat
+ natautoGlobal NAT support (default Auto)
-
+
- debug
+ debugNONE
@@ -150,7 +150,7 @@ and open the template in the editor. Base Version before all crash :-)
Debug: Enable debugging level in SCCP module.
- displayconfig
+ displayconfigsccpgeneral
@@ -158,7 +158,7 @@ and open the template in the editor. Base Version before all crash :-)
Help!
- siptftp
+ siptftpoff
@@ -177,7 +177,7 @@ and open the template in the editor. Base Version before all crash :-)
-
+ +Add Allow Range
@@ -195,7 +195,7 @@ and open the template in the editor. Base Version before all crash :-)
-
+ +
@@ -243,30 +243,30 @@ and open the template in the editor. Base Version before all crash :-)
- language
+ languageEnglishSCCP Language: This is the language for your hints and other features of the phone. If you don't have any languages installed or are using a single language, you can leave this blank.
- netlang
+ netlangEnglish_United_StatesThe Network locales allows the phone to play tones (ringing, busy etc.) native to the phone's country.
- devlang
+ devlangEnglish_United_StatesThe user locale allows the phone to display text (menu items, soft keys etc.) native to the phone's language.
-
-
+
+
-
+ firstdigittimeout
@@ -277,10 +277,10 @@ and open the template in the editor. Base Version before all crash :-)
First Digit Timeout: The amount of time after your first digit to start dialing automatically. This can be over-ridden with settings in your dialplan.xml or by using the 'immediate dial' button.
-
+
- digittimeout
+ digittimeout8sccp-customnumber
@@ -291,7 +291,7 @@ and open the template in the editor. Base Version before all crash :-)
- cfwdnoanswer_timeout
+ cfwdnoanswer_timeout30sccp-customnumber
@@ -302,7 +302,7 @@ and open the template in the editor. Base Version before all crash :-)
- autoanswer_ring_time
+ autoanswer_ring_time0sccp-customnumber
@@ -313,7 +313,7 @@ and open the template in the editor. Base Version before all crash :-)
- autoanswer_tone
+ autoanswer_tone0x32sccp-custom
@@ -322,7 +322,7 @@ and open the template in the editor. Base Version before all crash :-)
- remotehangup_tone
+ remotehangup_tone0x32sccp-custom
@@ -331,7 +331,7 @@ and open the template in the editor. Base Version before all crash :-)
- transfer_tone
+ transfer_tone0x32sccp-custom
@@ -340,14 +340,14 @@ and open the template in the editor. Base Version before all crash :-)
- callwaiting_tone
+ callwaiting_tone0x2Dsccp-customCall Waiting Tone: The tone played when a call is waiting. If you set this one to '0', you will not get a tone in your current call if a new call comes in, so you might want to disable call waiting for this line instead.
- echocancel
+ echocanceloff
@@ -355,15 +355,15 @@ and open the template in the editor. Base Version before all crash :-)
Echo Cancel: Echo Cancellation (On or Off).
- silencesuppression
-
+ silencesuppression
+
offSilence Suppression: Slience Suppression on the phone.
- private
+ privateon
@@ -371,7 +371,7 @@ and open the template in the editor. Base Version before all crash :-)
Private Calling Enabled: Place a call with privacy Options (no Caller ID) turned on. Needs to be supported in Asterisk to work through SIP and DAHDI trunks.
- callanswerorder
+ callanswerorderoldestfirst
@@ -379,7 +379,7 @@ and open the template in the editor. Base Version before all crash :-)
Call Answer Order: Which call should be answered first? The most common choice is "oldestfirst", but other orders are supported.
- callhistory_answered_elsewhere
+ callhistory_answered_elsewhereMissed Calls
@@ -389,7 +389,7 @@ and open the template in the editor. Base Version before all crash :-)
- mwilamp
+ mwilampOn
@@ -400,19 +400,19 @@ and open the template in the editor. Base Version before all crash :-)
Set the MWI lamp style when MWI active to on, off, wink, flash or blink
- mwioncall
+ mwioncalloffSet the MWI on call.
-
-
+
+
- directrtp
+ directrtpoff
@@ -420,7 +420,7 @@ and open the template in the editor. Base Version before all crash :-)
This option set global allow devices to do direct RTP sessions (default Off)
- earlyrtp
+ earlyrtpnoneImmediate
@@ -432,18 +432,18 @@ and open the template in the editor. Base Version before all crash :-)
The audio strem will be open in the progress and connected state. Valid options: NONE, progress, offhook, dial, ringout. Default may be Progress.
- simulate_enbloc
+ simulate_enbloconUse simulated enbloc dialing to speedup connection when dialing while onhook (older phones)
-
+
- cfwdall
+ cfwdalloff
@@ -451,7 +451,7 @@ and open the template in the editor. Base Version before all crash :-)
Activate the callforward softkeys. Default is On
- cfwdbusy
+ cfwdbusyoff
Call Forward
@@ -459,7 +459,7 @@ and open the template in the editor. Base Version before all crash :-)
Activate the callforward busy softkeys. Default is On
- cfwdnoanswer
+ cfwdnoansweroff
@@ -467,7 +467,7 @@ and open the template in the editor. Base Version before all crash :-)
Activate the callforward NOANSWER stuff and softkeys. Default is On
- dndFeature
+ dndFeatureon
@@ -475,19 +475,19 @@ and open the template in the editor. Base Version before all crash :-)
Do Not Disturb. Default is Off
- transfer
+ transferonAllow the use of the transfer feature
-
-
+
+
- ntp_config_enabled
+ ntp_config_enabledoff
@@ -497,14 +497,14 @@ and open the template in the editor. Base Version before all crash :-)
- ntp_server
+ ntp_serverpool.ntp.orgpool.ntp.orgNTP Server name or IP
- ntp_server_mode
+ ntp_server_modeunicast
@@ -514,12 +514,12 @@ and open the template in the editor. Base Version before all crash :-)
Configure NTP Server protocol time synchronization
-
+
- dateformat
+ dateformat
@@ -527,61 +527,61 @@ and open the template in the editor. Base Version before all crash :-)
- ntp_timezone
+ ntp_timezonesccp-customDate Format: Time zone
-
-
+
+
-
+
- vendorconfig_logserver
+ vendorconfig_logserversccp-customLog server Address: x.x.x.x:9001
-
+
- vendorconfig_daysdisplaynotactive
+ vendorconfig_daysdisplaynotactivesccp-customComma separated list of days that the phone's display is not active and will be automatically turned off after the time specified by "displayIdleTimeout" has elapsed (1 - Sunday, 7 - Saturday)
-
+
- vendorconfig_displayontime
+ vendorconfig_displayontimesccp-customTime in HH:MM format to automatically turn on the phone display.
-
+
- vendorconfig_displayonduration
+ vendorconfig_displayondurationsccp-customTime duration in HH:MM format to automatically turn off the phone display after it was turned on.
-
+
- vendorconfig_displayidletimeout
+ vendorconfig_displayidletimeoutsccp-custom
@@ -590,7 +590,7 @@ and open the template in the editor. Base Version before all crash :-)
- vendorconfig_settingsaccess
+ vendorconfig_settingsaccess
@@ -599,7 +599,7 @@ and open the template in the editor. Base Version before all crash :-)
Whether a user can access the phone settings.
- vendorconfig_videocapability
+ vendorconfig_videocapability
@@ -608,7 +608,7 @@ and open the template in the editor. Base Version before all crash :-)
- vendorconfig_webaccess
+ vendorconfig_webaccess
@@ -617,7 +617,7 @@ and open the template in the editor. Base Version before all crash :-)
Enable the phone's HTTP server.
- vendorconfig_webadmin
+ vendorconfig_webadmin
@@ -626,7 +626,7 @@ and open the template in the editor. Base Version before all crash :-)
Enable remote administration using the phone's HTTP server. 8821 model only.
- vendorconfig_pcport
+ vendorconfig_pcport
@@ -635,7 +635,7 @@ and open the template in the editor. Base Version before all crash :-)
Disable the PC (computer) port
- vendorconfig_spantopcport
+ vendorconfig_spantopcport
@@ -644,7 +644,7 @@ and open the template in the editor. Base Version before all crash :-)
Forward packets sent and received on the SW (network) port to the PC (computer) port.
- vendorconfig_voicevlanaccess
+ vendorconfig_voicevlanaccess
@@ -653,7 +653,7 @@ and open the template in the editor. Base Version before all crash :-)
Allow devices connected to the PC (computer) port to access the voice VLAN.
- vendorconfig_enablecdpswport
+ vendorconfig_enablecdpswport
@@ -662,7 +662,7 @@ and open the template in the editor. Base Version before all crash :-)
Enable Cisco Discovery Protocol on the SW (network) port.
- vendorconfig_enablecdppcport
+ vendorconfig_enablecdppcport
@@ -671,7 +671,7 @@ and open the template in the editor. Base Version before all crash :-)
Enable Cisco Discovery Protocol on the PC (computer) port.
- vendorconfig_enablelldpswport
+ vendorconfig_enablelldpswport
@@ -680,7 +680,7 @@ and open the template in the editor. Base Version before all crash :-)
Enable Link Layer Discovery Protocol on the SW (network) port.
- vendorconfig_enablelldppcport
+ vendorconfig_enablelldppcport
@@ -688,21 +688,21 @@ and open the template in the editor. Base Version before all crash :-)
Enable Link Layer Discovery Protocol on the PC (computer) port.
-
-
-
-
+
+
+
+
-
+
Help_srstYou can also configure a Survivable Remote Site Telephony (SRST) reference as the last device in the CallManager(CM) list. This proves especially useful in a remote site configuration where the phones and Asterisk are connected over a WAN network. SRST provides users with fallback support for the IP phones that cannot access the primary, secondary, or tertiary Asterisk Node in the CallManager List because of an Asterisk Node failure or loss of connectivity across the WAN. For the remote sites attached to multiple-service routers across the WAN, SRST ensures that your remote users receive continuous (although minimal) service by providing call handling support directly from the SRST router.When IP phones lose contact with primary, secondary, and tertiary Asterisk Nodes (CM's), they must establish a connection to a local SRST router to sustain the call-processing capability necessary to place and receive calls. The IP phone retains the IP address of the local SRST router as a default router in the Network Configuration area of the Settings menu. The Settings menu supports a maximum of five default router entries; however, the cnf.xml accommodates a maximum of three entries. When a secondary Asterisk Node is not available on the network, the local SRST Router's IP address is retained as the standby connection for Asterisk Node during normal operation.
- srst_Option
+ srst_Optiondisable
@@ -711,7 +711,7 @@ and open the template in the editor. Base Version before all crash :-)
You enabled/configured a Survivable Remote Site Telephony (SRST) reference as the last device in the CallManager(CM) list.
- srst_userModifiable
+ srst_userModifiablefalse
@@ -719,7 +719,7 @@ and open the template in the editor. Base Version before all crash :-)
The user can change the personal SRST configuration on the device
- srst_isSecure
+ srst_isSecurefalse
@@ -730,7 +730,7 @@ and open the template in the editor. Base Version before all crash :-)
- srst_Name
+ srst_NameEnableYou enabled configure a Survivable Remote Site Telephony (SRST) reference as the last device in the CallManager(CM) list.
@@ -746,7 +746,7 @@ and open the template in the editor. Base Version before all crash :-)
-
+ Add Server
@@ -762,40 +762,40 @@ and open the template in the editor. Base Version before all crash :-)
-
+ Add ServerHelp.
-
+
- dev_servicesURL
+ dev_servicesURL
-
+
- dev_secureservicesURL
+ dev_secureservicesURL
-
+
- dev_authenticationURL
+ dev_authenticationURL
@@ -805,7 +805,7 @@ and open the template in the editor. Base Version before all crash :-)
- dev_secureauthenticationURL
+ dev_secureauthenticationURL
@@ -886,7 +886,7 @@ and open the template in the editor. Base Version before all crash :-)
-
+
@@ -897,7 +897,7 @@ and open the template in the editor. Base Version before all crash :-)
-
+
@@ -909,58 +909,58 @@ and open the template in the editor. Base Version before all crash :-)
-
-
-
+
+
+
-
+
- sccp_tos
+ sccp_tos0x68sccp-custom
- sccp_cos
+ sccp_cos0x4sccp-customSCCP Type Of Service / Class Of Service: SCCP Type or Class of Service - this is modifiable, but don't.
-
+
- audio_tos
+ audio_tos0xB8sccp-custom
- audio_cos
+ audio_cos0x6sccp-customAudio Type Of Service / Class Of Service: Audio Type or Class of Service - this is modifiable, but don't.
-
+
- video_tos
+ video_tos0x88sccp-custom
- video_cos
+ video_cos0x5sccp-customVideo Type Of Service / Class Of Service: Video Type or Class of Service - this is modifiable, but don't.
-
+ Help_id2
-
+
Setting the hotline Feature on a device, will make it connect to a predefined extension as soon as the Receiver is picked up or the "New Call" Button is pressed. No number has to be given. This works even on devices which have no entry in the config file or realtime database.The hotline function can be used in :
@@ -1001,11 +1001,11 @@ and open the template in the editor. Base Version before all crash :-)
hotline
-
+
-
+
- hotline_enabled
+ hotline_enabledoff
@@ -1015,7 +1015,7 @@ and open the template in the editor. Base Version before all crash :-)
- hotline_extension
+ hotline_extension*111sccp-custom
@@ -1024,7 +1024,7 @@ and open the template in the editor. Base Version before all crash :-)
- hotline_label
+ hotline_labelHot Linesccp-custom
@@ -1033,20 +1033,20 @@ and open the template in the editor. Base Version before all crash :-)
- hotline_context
+ hotline_contextdefaultsccp-customHotline Context: This is the context through which the phone will connect. It should probably match your other contest. The default is "from-internal" but "from-internal-xfer" would also make sense by limiting the options for the person using the phone.
-
+
- context
+ contextfrom-internalsccp-custom
@@ -1055,7 +1055,7 @@ and open the template in the editor. Base Version before all crash :-)
- regcontext
+ regcontextsccpregistrationsccp-custom
@@ -1064,7 +1064,7 @@ and open the template in the editor. Base Version before all crash :-)
- directed_pickup_context
+ directed_pickup_contextsccp-custom
@@ -1074,16 +1074,16 @@ and open the template in the editor. Base Version before all crash :-)
- pickupgroup
+ pickupgroupsccp-customContext where direct pickup search for extensions. if not set current contect will be use.
-
+
- pickup_modeanswer
+ pickup_modeansweroff
@@ -1091,7 +1091,7 @@ and open the template in the editor. Base Version before all crash :-)
Directed Pickup Mode (Answer): If a call is sent with the "directed pickup" flag, the phone will answer when set to "Yes".
- transfer_on_hangup
+ transfer_on_hangupoff
@@ -1101,14 +1101,14 @@ and open the template in the editor. Base Version before all crash :-)
- dial_template
+ dial_templateNONEsccp-customHelp.
- autoselectline_enabled
+ autoselectline_enabledoff
@@ -1116,7 +1116,7 @@ and open the template in the editor. Base Version before all crash :-)
Enables and Disables auto line selection.
- meetme
+ meetmeoff
@@ -1126,7 +1126,7 @@ and open the template in the editor. Base Version before all crash :-)
- meetmeopts
+ meetmeoptsqxdsccp-custom
@@ -1134,7 +1134,7 @@ and open the template in the editor. Base Version before all crash :-)
- autocall_select
+ autocall_selectoff
@@ -1142,7 +1142,7 @@ and open the template in the editor. Base Version before all crash :-)
- backgroundImageAccess
+ backgroundImageAccesstrue
@@ -1150,7 +1150,7 @@ and open the template in the editor. Base Version before all crash :-)
I'm guessing on this one, but on some devices, the background image on the display can be modified at the device. I think this is the thing that allows that to take.
- phonePersonalization
+ phonePersonalization0
@@ -1158,7 +1158,7 @@ and open the template in the editor. Base Version before all crash :-)
Phone personalization needs to be set to allow the server to push background or ringtones to the phone in the SEPXXXXXXXXXX.cnf.xml of each phone:
- callLogBlfEnabled
+ callLogBlfEnabled2
@@ -1167,7 +1167,7 @@ and open the template in the editor. Base Version before all crash :-)
- musicclass
+ musicclassNONEform-control
@@ -1178,7 +1178,7 @@ and open the template in the editor. Base Version before all crash :-)
-
+
Help_tftp_rewriteThis section is responsible for the modes of operation of external services: tftp http. * off - Flat model cisco. All data is in the directory /tftproot
@@ -1190,7 +1190,7 @@ and open the template in the editor. Base Version before all crash :-)
provision_hide
- tftp_path
+ tftp_path/tftpbootsccp-custom
@@ -1200,7 +1200,7 @@ and open the template in the editor. Base Version before all crash :-)
provision_show
- tftp_rewrite_path
+ tftp_rewrite_path/tftpbootsccp-custom
@@ -1208,7 +1208,7 @@ and open the template in the editor. Base Version before all crash :-)
- tftp_rewrite
+ tftp_rewriteoffpro
@@ -1222,7 +1222,7 @@ and open the template in the editor. Base Version before all crash :-)
- devicetable
+ devicetablesccpdevice
@@ -1233,7 +1233,7 @@ and open the template in the editor. Base Version before all crash :-)
- linetable
+ linetablesccplinesccp-custom
@@ -1241,7 +1241,7 @@ and open the template in the editor. Base Version before all crash :-)
- createlangdir
+ createlangdirno
@@ -1250,28 +1250,28 @@ and open the template in the editor. Base Version before all crash :-)
- system_rouminguser
+ system_roumingusernoExperemental Function Roaming Users
-
+
-
+
- mac
+ mac000000000sccp-customThe MAC address of the phone. You must specify 12 characters in the format XXXX.XXXX.XXXX or XX-XX-XX-XX-XX-XX or XXXXXXXXXXXX
-
+
type
@@ -1282,7 +1282,7 @@ and open the template in the editor. Base Version before all crash :-)
- addon
+ addonNONEhw_select sccp-custom
@@ -1295,13 +1295,13 @@ and open the template in the editor. Base Version before all crash :-)
- mac
+ mac000000000sccp-customThe MAC address of the phone
-
+ type
@@ -1315,7 +1315,7 @@ and open the template in the editor. Base Version before all crash :-)
- type
+ type79XXsccp-custom
@@ -1325,7 +1325,7 @@ and open the template in the editor. Base Version before all crash :-)
- addon
+ addonNONEsccp-custom
@@ -1336,11 +1336,11 @@ and open the template in the editor. Base Version before all crash :-)
-
+
- _description
+ _description000000000sccp-custom
@@ -1349,28 +1349,28 @@ and open the template in the editor. Base Version before all crash :-)
- softkeyset
+ softkeysetdefaultSystem Default Softkey
- tzoffset
+ tzoffset00Time Zone offset
- netlang
+ netlangEnglish_United_StatesThe Network locales allows the phone to play tones (ringing, busy etc.) native to the phone's country.
- devlang
+ devlangRussian_RussiaThe user locale allows the phone to display text (menu items, soft keys etc.) native to the phone's language.
@@ -1378,7 +1378,7 @@ and open the template in the editor. Base Version before all crash :-)
- backgroundImage
+ backgroundImagesccp-custom
@@ -1387,40 +1387,40 @@ and open the template in the editor. Base Version before all crash :-)
- ringtone
+ ringtonesccp-customThe ringtone that the phone will default to. Can be overridden in the phone. The files RINGLIST.XML provice the basic phone ring tones, while DISTINCTIVERINGLIST.XML defines the list of possible ring tones for your other line types. They, along with the actual 'raw' ringtones, are stored in the /tftpboot/ringtones directory with the rest of the config files.
-
+
- mac
+ mac000000000sccp-custom
-
+
- transfer
+ transfer
- off
-
+ NONE
+
Transfer allowed
- park
+ parkonInherit
@@ -1429,58 +1429,58 @@ and open the template in the editor. Base Version before all crash :-)
Take a look to the compile how-to. Park stuff is not compiled by default.
- cfwdall
+ cfwdall
- off
-
+ NONE
+
Activate the callforward softkeys. Default is On
- cfwdbusy
+ cfwdbusy
- off
-
+ NONE
+
Activate the callforward busy softkeys. Default is On
- cfwdnoanswer
+ cfwdnoanswer
- on
-
+ NONE
+
Activate the callforward NOANSWER stuff and softkeys. Default is On
- dndFeature
+ dndFeature
- off
-
+ NONE
+
Do Not Disturb. Default is Off
- conf_allow
+ conf_allowonoffAllow the use of conference
-
+
-
-
+
+
-
+
- useRedialMenu
+ useRedialMenuoff
@@ -1488,7 +1488,7 @@ and open the template in the editor. Base Version before all crash :-)
You can specifying 'useRedialMenu = yes' in the sccp.conf device section and the redial softkey will cause the "placed calls" list instead of immediately calling the last dialed number.
- force_dtmfmode
+ force_dtmfmodeauto
@@ -1497,29 +1497,29 @@ and open the template in the editor. Base Version before all crash :-)
Some phone models with bad firmware do send dtmf in a messed up order and need to be forced to skinny mode.
- mwioncall
+ mwioncall
- on
-
+ NONE
+
Set the MWI on call.
-
-
- mwilamp
+
+
+ mwilamp
- on
-
+ NONE
+
Set the MWI lamp style when MWI active to on, off, wink, flash or blink
-
+
- callhistory_answered_elsewhere
+ callhistory_answered_elsewhereMissed Calls
@@ -1528,14 +1528,14 @@ and open the template in the editor. Base Version before all crash :-)
-
+
-
+
conf_hide
- conf_play_general_announce
+ conf_play_general_announceon
@@ -1543,7 +1543,7 @@ and open the template in the editor. Base Version before all crash :-)
Playback General Announcements (like: 'You are Entering/Leaving the conference')
- conf_play_part_announce
+ conf_play_part_announceon
@@ -1551,7 +1551,7 @@ and open the template in the editor. Base Version before all crash :-)
Playback Personal/Participant Announcements, (like: 'You have been muted / You have been kicked')
- conf_mute_on_entry
+ conf_mute_on_entryoff
@@ -1559,7 +1559,7 @@ and open the template in the editor. Base Version before all crash :-)
Mute new participants from the start
- conf_show_conflist
+ conf_show_confliston
@@ -1568,7 +1568,7 @@ and open the template in the editor. Base Version before all crash :-)
- conf_music_on_hold_class
+ conf_music_on_hold_classdefaultform-control
@@ -1578,41 +1578,41 @@ and open the template in the editor. Base Version before all crash :-)
- custom_network_acc
+ custom_network_accpermitHelp.
-
+
- custom_network_type
+ custom_network_typeipv4Help.
-
+
- custom_network_v
+ custom_network_vsccp-custom
- custom_network_m
+ custom_network_msccp-customHelp.
-
+
-
+
@@ -1629,7 +1629,7 @@ and open the template in the editor. Base Version before all crash :-)
+Add Deny networkAll RFC 1918 addresses are local networks. Should always be at least '0.0.0.0/0.0.0.0'.
-
+
@@ -1646,18 +1646,18 @@ and open the template in the editor. Base Version before all crash :-)
-
-
+
+
+Add Allow networkAllow network settings. Blank fields will be ignored used Network 0.0.0.0.
- nat
+ nat
- auto
-
+ NONE
+
@@ -1665,17 +1665,17 @@ and open the template in the editor. Base Version before all crash :-)
- directrtp
+ directrtp
- off
- Auto
-
+ NONE
+ Auto
+
This option allow devices to do direct RTP sessions (default Off)
- earlyrtp
+ earlyrtpNONE
@@ -1692,18 +1692,18 @@ and open the template in the editor. Base Version before all crash :-)
- dialtemplate_name
+ dialtemplate_namename_rulsform-controlHelp.
-
+
-
+
Help_id1Specifies a pattern to match dialed digits against. Note: TEMPLATE must be in uppercase.Rules:
@@ -1788,7 +1788,7 @@ and open the template in the editor. Base Version before all crash :-)
-
+
empty
Bellcore-Alerting
Bellcore-Inside
@@ -1817,11 +1817,11 @@ and open the template in the editor. Base Version before all crash :-)
CallWaiting-4
Allow network settings. Blank fields will be ignored used Network 0.0.0.0.
-
+
-
+
-
@@ -1829,18 +1829,18 @@ and open the template in the editor. Base Version before all crash :-)
- id
+ id000000000sccp-customHelp!
-
+
- description
+ descriptionHelp!
@@ -1848,7 +1848,7 @@ and open the template in the editor. Base Version before all crash :-)
- pin
+ pinHelp!
@@ -1856,13 +1856,13 @@ and open the template in the editor. Base Version before all crash :-)
- password
+ passwordHelp!
- roaminglogin
+ roamingloginoff
@@ -1871,7 +1871,7 @@ and open the template in the editor. Base Version before all crash :-)
- auto_logout
+ auto_logoutoff
@@ -1881,20 +1881,20 @@ and open the template in the editor. Base Version before all crash :-)
- homedevice
+ homedeviceNONEsccp-customHelp!
-
- work_time
+ work_timeoff
@@ -1905,7 +1905,7 @@ and open the template in the editor. Base Version before all crash :-)
- work_group
+ work_groupHelp!
@@ -1913,25 +1913,25 @@ and open the template in the editor. Base Version before all crash :-)
- time_extend
+ time_extend30Help!
-
+
- mac
+ mac000000000sccp-customThe MAC address of the phone. You must specify 12 characters in the format XXXX.XXXX.XXXX or XX-XX-XX-XX-XX-XX or XXXXXXXXXXXX
-
+
type
@@ -1942,7 +1942,7 @@ and open the template in the editor. Base Version before all crash :-)
- addon
+ addonNONEhw_select sccp-custom
@@ -1951,19 +1951,19 @@ and open the template in the editor. Base Version before all crash :-)
-
+
- _dialrules
+ _dialrulesdialplanDial templates control what number patterns are valid and how many seconds to wait for extra digits before dialing.
-
+
-
+
setvar
@@ -1974,7 +1974,7 @@ and open the template in the editor. Base Version before all crash :-)
+
-
+
-
+
diff --git a/conf/sccpsimple.xml.v431 b/conf/sccpsimple.xml.v431
new file mode 100644
index 0000000..d4eee57
--- /dev/null
+++ b/conf/sccpsimple.xml.v431
@@ -0,0 +1,1523 @@
+
+
+
+
+
+ XML_info
+
+ NONE
+
+
+
+
+
+
+
+
+
+
+
+ dev_sshUserId
+ cisco
+
+ Help.
+
+
+
+
+ dev_sshPassword
+ cisco
+
+ Help.
+
+
+
+
+ dev_deviceProtocol
+ SCCP
+
+ Help.
+
+
+
+
+ sccp_xml_about
+ XML Base ver: 11.2, Sccp ver: 431
+
+ Help.
+
+
+
+
+ autoanswer_tone
+ 0x32
+ sccp-custom
+
+ Autoanswer Tone: The tone the phone plays back when it picks up the phone in autoanswer mode. Default is '0x32'. Silence is '0x00'. There are lots of tones, all expressed as '0XNN' where 'NN' is a hexadecimal number.
+
+
+
+
+ remotehangup_tone
+ 0x32
+ sccp-custom
+
+ Remote Hangup Tone: The tone played by the phone when it received a remote hang-up signal. Use '0' to disable the tone.
+
+
+
+
+ transfer_tone
+ 0x32
+ sccp-custom
+
+ Transfer Tone: The tone played when a call is transferred. Use '0' to disable the tone.
+
+
+
+
+ callwaiting_tone
+ 0x2D
+ sccp-custom
+
+ Call Waiting Tone: The tone played when a call is waiting. If you set this one to '0', you will not get a tone in your current call if a new call comes in, so you might want to disable call waiting for this line instead.
+
+
+
+
+
+
+ sccp_tos
+ 0x68
+ sccp-custom
+
+
+ sccp_cos
+ 0x4
+ sccp-custom
+
+ SCCP Type Of Service / Class Of Service: SCCP Type or Class of Service - this is modifiable, but don't.
+
+
+
+
+ audio_tos
+ 0xB8
+ sccp-custom
+
+
+ audio_cos
+ 0x6
+ sccp-custom
+
+ Audio Type Of Service / Class Of Service: Audio Type or Class of Service - this is modifiable, but don't.
+
+
+
+
+ video_tos
+ 0x88
+ sccp-custom
+
+
+ video_cos
+ 0x5
+ sccp-custom
+
+ Video Type Of Service / Class Of Service: Video Type or Class of Service - this is modifiable, but don't.
+
+
+
+
+
+ linetable
+ sccpline
+ sccp-custom
+
+ Line Table: This is the linetable for your realtime configuration. Don't change this unless you know what you are doing and have made all the appropriate changes in the rest of your Asterisk config files. If you do not want to use the realtime database anymore, you can set this to blank. NOT RECOMMENDED.
+
+
+
+ devicetable
+ sccpdevice
+
+
+ sccp-custom
+ Device Table: This is the devicetable for your realtime configuration. Don't change this unless you know what you are doing and have made all the appropriate changes in the rest of your Asterisk config files. There are two reasonable settings for this - the sccpdevice table or the sccpdeviceconfig view. If you do not want to use the realtime database anymore, you can set this to blank. NOT RECOMMENDED.
+
+
+ callhistory_answered_elsewhere
+
+ Missed Calls
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ servername
+ Vt
+
+ Servername: This is the type of server - usually, it will be Asterisk.
+
+
+
+
+ bindaddr
+ 0.0.0.0
+ sccp-custom
+
+
+ port
+ 2000
+ sccp-custom
+
+ Bind Address: The address to bind to for SCCP. In general, it should be set to '0.0.0.0'. If you find problems with one-way audio, you can set this to a specific address in the server. Note that '127.0.0.1' is always wrong here. Also note that placing in your external IP address will cause the chan_sccp module to not load. A manual edit of the /etc/asterisk/sccp.conf file will be needed to fix and reload the module.
+ :
+
+
+
+
+ externip
+
+ sccp-custom
+
+
+ External IP Address of the firewall, required in case the PBX is running on a separate host behind it. IP Address that we're going to notify in RTP media stream as the pbx source address.
+ /
+
+
+
+
+ keepalive
+ 60
+ sccp-custom
+ number
+
+
+ Time between Keep Alive checks. Valid range is 60-300 seconds. After much trial-and-error, the minimum (60) seems to work just fine.
+
+
+ nat
+
+ auto
+
+
+
+ Global NAT support (default Auto)
+
+
+ debug
+
+ NONE
+
+
+
+
+
+ Debug: Enable debugging level in SCCP module.
+
+
+ displayconfig
+
+ sccpgeneral
+
+
+ Help!
+
+
+
+
+
+
+ permit
+ Internal
+ 0.0.0.0/0.0.0.0
+
+
+
+
+
+
+ +
+ Add Allow Range
+ Allow network settings. Blank fields will be ignored used Network 0.0.0.0/0.0.0.0 to resolve any existing connections. You can use the 'internal' connections only from the networks connected to the server.
+
+
+
+
+
+ localnet
+ Internal
+ 0.0.0.0/0.0.0.0
+
+
+
+
+
+
+
+
+ +
+ Add Internal Range
+ Local network settings. Blank fields will be ignored used Network 0.0.0.0.
+
+
+
+ deny
+ 0.0.0.0/0.0.0.0
+
+
+
+
+
+
+
+
+ +
+ Add Deny network
+ All RFC 1918 addresses are local networks. Should always be at least '0.0.0.0/0.0.0.0'.
+
+
+
+
+
+
+
+
+ language
+ English
+
+ SCCP Language: This is the language for your hints and other features of the phone. If you don't have any languages installed or are using a single language, you can leave this blank.
+
+
+
+ netlang
+ English_United_States
+
+ The Network locales allows the phone to play tones (ringing, busy etc.) native to the phone's country.
+
+
+
+ devlang
+ English_United_States
+
+ The user locale allows the phone to display text (menu items, soft keys etc.) native to the phone's language.
+
+
+
+
+
+
+
+
+ firstdigittimeout
+ 16
+ sccp-custom
+ number
+
+
+ First Digit Timeout: The amount of time after your first digit to start dialing automatically. This can be over-ridden with settings in your dialplan.xml or by using the 'immediate dial' button.
+
+
+
+
+ digittimeout
+ 8
+ sccp-custom
+ number
+
+
+ Digit Timeout: The amount of time to wait after the second (or subsequent) dialed digit. Override rules are the same as for firstdigittimeout.
+
+
+
+
+ autoanswer_ring_time
+ 0
+ sccp-custom
+ number
+
+
+ Autoanswer Ring Time: The amount of time the phones will ring when being called as Intercom or Paging mode.
+
+
+
+
+ directed_pickup_context
+
+
+ sccp-custom
+
+ Context where direct pickup search for extensions. if not set current contect will be use.
+
+
+ echocancel
+
+ off
+
+
+ Echo Cancel: Echo Cancellation (On or Off).
+
+
+ silencesuppression
+
+ off
+
+
+ Silence Suppression: Slience Suppression on the phone.
+
+
+ private
+
+ on
+
+
+ Private Calling Enabled: Place a call with privacy Options (no Caller ID) turned on. Needs to be supported in Asterisk to work through SIP and DAHDI trunks.
+
+
+ directed_pickup_modeanswer
+
+ off
+
+
+ Directed Pickup Mode (Answer): If a call is sent with the "directed pickup" flag, the phone will answer when set to "Yes".
+
+
+ transfer_on_hangup
+
+ off
+
+
+ Complete transfer on hangup, without pressing transfer a second time. Will complete transfer, when the transferer puts the receiver on hook, after the destination has been reached. To cancel the transfer, either press resume on the transferred channel, press the 'endcall' softkey, or have the receiving party hangup first.
+
+
+ callanswerorder
+
+ oldestfirst
+
+
+ Call Answer Order: Which call should be answered first? The most common choice is "oldestfirst", but other orders are supported.
+
+
+ mwilamp
+
+ On
+
+
+
+
+
+ Set the MWI lamp style when MWI active to on, off, wink, flash or blink
+
+
+ mwioncall
+
+ off
+
+
+ Set the MWI on call.
+
+
+
+
+
+
+ directrtp
+
+ off
+
+
+ This option set global allow devices to do direct RTP sessions (default Off)
+
+
+ earlyrtp
+
+ none
+ Immediate
+
+
+
+
+
+ The audio strem will be open in the progress and connected state. Valid options: NONE, progress, offhook, dial, ringout. Default may be Progress.
+
+
+ simulate_enbloc
+
+ on
+
+
+ Use simulated enbloc dialing to speedup connection when dialing while onhook (older phones)
+
+
+
+
+
+ cfwdall
+
+ off
+
+
+ Activate the callforward softkeys. Default is On
+
+
+ cfwdbusy
+
+ off
+
+
+ Activate the callforward busy softkeys. Default is On
+
+
+ dndFeature
+
+ on
+
+
+ Do Not Disturb. Default is Off
+
+
+
+
+
+
+ ntp_config_enabled
+
+ off
+
+
+ Enabling NTP settings in device configuration.
+
+
+
+
+ ntp_server
+ pool.ntp.org
+ pool.ntp.org
+
+ NTP Server name or IP
+
+
+ ntp_server_mode
+
+ unicast
+
+
+
+
+ Configure NTP Server protocol time synchronization
+
+
+
+
+
+
+
+ dateformat
+
+ Date Format: The date format for the on-screen display. Can be one of the following: (D-M-YA, M.D.Y, Y/M/D) where 'D' is Day, 'M' is Month, 'Y' is Year, 'A' is 24-hour, 'a' is 12-hour, and the separators can be '.','-','/'
+
+
+
+ ntp_timezone
+ sccp-custom
+
+ Date Format: Time zone
+
+
+
+
+
+
+
+ Help_srst
+ You can also configure a Survivable Remote Site Telephony (SRST) reference as the last device in the CallManager(CM) list. This proves especially useful in a remote site configuration where the phones and Asterisk are connected over a WAN network. SRST provides users with fallback support for the IP phones that cannot access the primary, secondary, or tertiary Asterisk Node in the CallManager List because of an Asterisk Node failure or loss of connectivity across the WAN. For the remote sites attached to multiple-service routers across the WAN, SRST ensures that your remote users receive continuous (although minimal) service by providing call handling support directly from the SRST router.
+ When IP phones lose contact with primary, secondary, and tertiary Asterisk Nodes (CM's), they must establish a connection to a local SRST router to sustain the call-processing capability necessary to place and receive calls. The IP phone retains the IP address of the local SRST router as a default router in the Network Configuration area of the Settings menu. The Settings menu supports a maximum of five default router entries; however, the cnf.xml accommodates a maximum of three entries. When a secondary Asterisk Node is not available on the network, the local SRST Router's IP address is retained as the standby connection for Asterisk Node during normal operation.
+
+
+
+ srst_Option
+
+ disable
+
+
+
+ You enabled/configured a Survivable Remote Site Telephony (SRST) reference as the last device in the CallManager(CM) list.
+
+
+ srst_userModifiable
+
+ false
+
+
+ The user can change the personal SRST configuration on the device
+
+
+ srst_isSecure
+
+ false
+
+
+ The user can change the personal SRST configuration on the device
+
+
+
+
+
+ srst_Name
+ Enable
+
+ You enabled configure a Survivable Remote Site Telephony (SRST) reference as the last device in the CallManager(CM) list.
+
+
+
+
+ srst_ip
+ 3
+ /
+
+
+
+
+
+
+
+
+ Add Server
+ Help.
+
+
+
+ srst_sip
+ 3
+ /
+
+
+
+
+
+
+
+
+ Add Server
+ Help.
+
+
+
+
+
+
+
+
+ dev_servicesURL
+
+
+
+
+
+
+
+
+
+
+ dev_authenticationURL
+
+
+
+
+ The above is simply a dummy authentication page. It literally contains one word: AUTHORIZED (it receives UserId, Password, and devicename in the url - if you truly wish to implement special auth)
+
+
+
+
+ dev_idleURL
+
+
+
+
+ URL of CiscoIPPhoneImage. Requires a non-zero setting in idleTimeout.
+
+
+
+
+ dev_informationURL
+
+
+
+
+
+
+
+
+ dev_messagesURL
+
+
+
+
+
+
+
+
+ dev_directoryURL
+
+
+
+ This is the URL for a CiscoIPPhoneMenu which gets appended to the end of the Missed/Received/Placed calls. I don't use it (I find it makes more sense to put my phone book under services)
+
+
+
+
+ dev_proxyServerURL
+
+
+
+
+
+
+
+
+
+
+ dev_idleTimeout
+ 60
+ sccp-custom
+ number
+
+
+
+
+
+
+
+
+
+
+ Help_id2
+
+ Setting the hotline Feature on a device, will make it connect to a predefined extension as soon as the Receiver is picked up or the "New Call" Button is pressed. No number has to be given. This works even on devices which have no entry in the config file or realtime database.
+ The hotline function can be used in :
+
+
+
First time configuration
+
This will make it easier to register new devices and assign numbers
+
+
+
At a door
+
Where you want people to be able to only call one number
+
+
+
For unprovisioned phones
+
To only be able to call the helpdesk to get their phone set up
+
+
+
+ Be careful with this function. Especially not to the internet. So i would restring the deny/permit to 'internal' by default in that case.
+
+
+
Allow =
+
Specify a list of your networks, for example: 192.168.1.0
+
+
+
deny =
+
0.0.0.0/0.0.0.0
+
+
+
permit =
+
internal
+
+
+
hotline_context =
+
sccp
+
+
+
hotline_label =
+
hotline
+
+
+
+
+
+
+ hotline_enabled
+
+ off
+
+
+ Hotline Enabled: This allows unregistered extensions to connect to the system and dial the number listed below.
+
+
+
+
+ hotline_extension
+ *111
+ sccp-custom
+
+ Hotline Extension: The number that gets called when a hotline is picked up. hint
+
+
+
+
+ hotline_label
+ Hot Line
+ sccp-custom
+
+ Hotline Label: The label on the device
+
+
+
+
+ hotline_context
+ default
+ sccp-custom
+
+ Hotline Context: This is the context through which the phone will connect. It should probably match your other contest. The default is "from-internal" but "from-internal-xfer" would also make sense by limiting the options for the person using the phone.
+
+
+
+
+ context
+ from-internal
+ sccp-custom
+
+ Context: This is the context in which your phones will operate. It should match the context you are using for the rest of your phones (if you have any). The FreePBX default is 'from-internal'
+
+
+
+
+ regcontext
+ sccpregistration
+ sccp-custom
+
+ If regcontext is specified in sccp.conf chan-sccp-b will dynamically create and destroy a NoOp priority 1 extension for a given peer/line which registers with the server. If the context is not specified in extension.conf, then it will be dynamically created when an chan-sccp-b agent registers
+
+
+
+ musicclass
+ NONE
+
+ form-control
+ Music Class: Available MOH Classes. These are the MOH classes listed in your current server.
+
+
+
+ dial_template
+ NONE
+
+ sccp-custom
+ Help.
+
+
+ autoselectline_enabled
+
+ off
+
+
+ Enables and Disables auto line selection.
+
+
+ meetme
+
+ off
+
+
+ Enable/Disable conferencing via meetme (on/off), make sure you have one of the meetme apps mentioned below activated in module.conf
+
+
+
+
+ meetmeopts
+ qxd
+ sccp-custom
+
+ Other options (app_meetme: A,a,b,c,C,d,D,E,e,F,i,I,l,L,m,M,o,p,P,q,r,s,S,t,T,w,x,X,1) see meetme specific documentation
+
+
+
+ autocall_select
+
+ off
+
+
+
+
+
+ backgroundImageAccess
+
+ true
+
+
+ I'm guessing on this one, but on some devices, the background image on the display can be modified at the device. I think this is the thing that allows that to take.
+
+
+ phonePersonalization
+
+ 0
+
+
+ Phone personalization needs to be set to allow the server to push background or ringtones to the phone in the SEPXXXXXXXXXX.cnf.xml of each phone:
+
+
+ callLogBlfEnabled
+
+ 2
+
+
+ Which does show numbers you can redial, but also include their current device state, so you know when they are currently busy. Note that the other phonebook entries will now also monitor the remove device state and show the current device state
+
+
+
+
+
+
+
+ provision_hide
+
+ tftp_path
+ /tftpboot
+ sccp-custom
+
+ Path to tftp home directory
+
+
+
+ provision_show
+
+ tftp_rewrite_path
+ /tftpboot
+ sccp-custom
+
+ Use path from provision index.cnf file. You must first make sure that you have properly configured the "Provision"
+
+
+
+ tftp_rewrite
+
+ off
+ pro
+ pro
+
+ Internal
+
+
+ Support the use of regular-expression-based filename remapping
+
+
+
+
+ createlangdir
+
+ no
+
+
+ Say 'yes' if you need to create cisco default language directory in tftp path.
+
+
+
+
+
+
+
+
+
+ mac
+ 000000000
+ sccp-custom
+
+ The MAC address of the phone. You must specify 12 characters in the format XXXX.XXXX.XXXX or XX-XX-XX-XX-XX-XX or XXXXXXXXXXXX
+
+
+
+
+ type
+ 7911
+
+ hw_select sccp-custom
+ The type of phone: 7911, 7940, 7960, etc. Important note: the 'G' models are handled as the base model (e.g., 7962G is handled as 7962). In the Display mode, this field is read-only because the MAC address and the model number are a pair.
+
+
+
+ addon
+ NONE
+
+ hw_select sccp-custom
+ Addon: Addons are model specific and only work with certain base phones. This phone model is identified as being a phone that does not accept sidecars. Update devmodel if this is not correct.
+
+
+
+
+
+
+
+
+ mac
+ 000000000
+ sccp-custom
+
+
+ The MAC address of the phone
+
+
+
+ type
+ 7911
+
+
+ hw_select sccp-custom
+ The type of phone: 7911, 7940, 7960, etc. Important note: the 'G' models are handled as the base model (e.g., 7962G is handled as 7962). In the Display mode, this field is read-only because the MAC address and the model number are a pair.
+
+
+
+
+
+ type
+ 79XX
+ sccp-custom
+
+
+ The type of phone: 7911, 7940, 7960, etc. Important note: the 'G' models are handled as the base model (e.g., 7962G is handled as 7962). In the Display mode, this field is read-only because the MAC address and the model number are a pair.
+
+
+
+
+ addon
+ NONE
+ sccp-custom
+
+
+ Addon: Addons are model specific and only work with certain base phones. This phone model is identified as being a phone that does not accept sidecars. Update devmodel if this is not correct.
+
+
+
+
+
+
+
+
+
+ description
+ 000000000
+ sccp-custom
+
+
+ The information in the upper right corner of the device screen. Only English letters and digits !
+
+
+
+ softkeyset
+ default
+
+ System Default Softkey
+
+
+
+ tzoffset
+ 00
+
+ Time Zone offset
+
+
+
+ netlang
+ English_United_States
+
+ The Network locales allows the phone to play tones (ringing, busy etc.) native to the phone's country.
+
+
+
+ devlang
+ Russian_Russia
+
+ The user locale allows the phone to display text (menu items, soft keys etc.) native to the phone's language.
+
+
+
+
+ backgroundImage
+
+ sccp-custom
+
+ For phones that can display background images - display this one. Default is [empty]
+
+
+
+
+ ringtone
+
+ sccp-custom
+
+ The ringtone that the phone will default to. Can be overridden in the phone. The files RINGLIST.XML provice the basic phone ring tones, while DISTINCTIVERINGLIST.XML defines the list of possible ring tones for your other line types. They, along with the actual 'raw' ringtones, are stored in the /tftpboot/ringtones directory with the rest of the config files.
+
+
+
+
+
+
+
+
+ mac
+ 000000000
+ sccp-custom
+
+
+
+
+
+
+
+
+ transfer
+
+ off
+
+
+ Transfer allowed
+
+
+ cfwdall
+
+ NONE
+
+
+
+ Activate the callforward softkeys. Default is On
+
+
+ cfwdbusy
+
+ NONE
+
+
+
+ Activate the callforward busy softkeys. Default is On
+
+
+ dndFeature
+
+ NONE
+
+
+
+ Do Not Disturb. Default is Off
+
+
+ directed_pickup
+
+ on
+ off
+
+
+ Enable Pickup function to direct pickup an extension. Default is On
+
+
+ conf_allow
+
+ on
+ off
+
+
+ Allow the use of conference
+
+
+
+
+
+ pickup_hide
+
+
+
+ directed_pickup_context
+
+ sccp-custom
+
+ Context where direct pickup search for extensions. if not set current contact will be use.
+
+
+ directed_pickup_modeanswer
+
+ on
+
+
+ On (Default)= the call has been answered when picked up. Off = call manager way, the phone who picked up the call rings the call
+ Options: 'Immediate Answer' or 'Show CallerID' ??????
+
+
+
+
+
+
+ useRedialMenu
+
+ off
+
+
+ You can specifying 'useRedialMenu = yes' in the sccp.conf device section and the redial softkey will cause the "placed calls" list instead of immediately calling the last dialed number.
+
+
+
+ force_dtmfmode
+
+ auto
+
+
+
+ Some phone models with bad firmware do send dtmf in a messed up order and need to be forced to skinny mode.
+
+
+ mwioncall
+
+ NONE
+
+
+
+ Set the MWI on call.
+
+
+
+ mwilamp
+
+ NONE
+
+
+
+
+
+
+ Set the MWI lamp style when MWI active to on, off, wink, flash or blink
+
+
+
+
+ conf_hide
+
+
+ conf_play_general_announce
+
+ on
+
+
+ Playback General Announcements (like: 'You are Entering/Leaving the conference')
+
+
+ conf_play_part_announce
+
+ on
+
+
+ Playback Personal/Participant Announcements, (like: 'You have been muted / You have been kicked')
+
+
+ conf_mute_on_entry
+
+ off
+
+
+ Mute new participants from the start
+
+
+ conf_show_conflist
+
+ on
+
+
+ Automatically show conference list to the moderator
+
+
+
+ conf_music_on_hold_class
+ default
+
+ form-control
+ Play music on hold of this class when no moderator is listening on the conference. If set to an empty string, no music on hold will be played.
+
+
+
+
+
+ custom_network_acc
+
+ permit
+
+
+
+ Help.
+
+
+ custom_network_type
+
+ ipv4
+
+
+ Help.
+
+
+
+
+ custom_network_v
+
+
+ sccp-custom
+
+
+ custom_network_m
+
+ sccp-custom
+
+
+ Help.
+
+
+
+
+
+
+
+
+ deny
+ /
+ sccp_hw_net_inherit
+
+
+
+
+
+
+ +
+ Add Deny network
+ All RFC 1918 addresses are local networks. Should always be at least '0.0.0.0/0.0.0.0'.
+
+
+
+
+
+ permit
+ NONE
+ Inherit
+ false
+
+ sccp_hw-ar_permit-grinternal
+
+ sccp_hw_net_inherit
+
+
+
+
+
+
+ +
+ Add Allow network
+ Allow network settings. Blank fields will be ignored used Network 0.0.0.0.
+
+
+
+ nat
+
+ NONE
+
+
+
+
+ Device NAT support (default Auto)
+
+
+
+ directrtp
+
+ NONE
+ Auto
+
+
+
+ This option allow devices to do direct RTP sessions (default Off)
+
+
+ earlyrtp
+
+ NONE
+
+ Immediate
+
+
+
+
+
+ The audio stream will be open in the progress and connected state. Valid options: none, progress, offhook, dial, ringout. Default may be Progress.
+
+
+
+
+
+
+ dialtemplate_name
+
+ form-control
+
+ Help.
+
+
+
+
+
+
+
+ Help_id1
+ Specifies a pattern to match dialed digits against. Note: TEMPLATE must be in uppercase.
+ Rules:
+
+
+
match:
+
Pattern to match, consists of one or more elements
+
+
+
0 1 2 3 4 5 6 7 8 9
+
Match digit
+
+
+
.
+
Match one digit, # or *
+
+
+
*
+
Match zero or more digits, # or *
+
+
+
\*
+
Match a literal *
+
+
+
,
+
Play secondary dial-tone specified by tone
+
+
+
timeout:
+
Number of seconds to wait for more digits if this pattern matches
+
+
+
line:
+
Only apply template to the specified line (optional)
+
+
+
rewrite:
+
Rewrite the matched digits before dialing, consists of one or more elements (optional)
+
+
+
0 1 2 3 4 5 6 7 8 9
+
Replace with digit
+
+
+
%0
+
The entire match
+
+
+
%1 %2 %3 %4 %5
+
Replace with group of digits matched, grouping is done by consecutive literal digit or . elements
+
+
+
%%
+
A literal %
+
+
+
.
+
Each . is replaced by the digit that was matched by the corresponding . in the pattern
+
+
+
");
$sql = "";
if ($sccp_compatible < 431) {
- $sql = "CREATE OR REPLACE
+ $sql = "
+ CREATE OR REPLACE
ALGORITHM = MERGE
VIEW sccpdeviceconfig AS
- SELECT GROUP_CONCAT( CONCAT_WS( ',', buttonconfig.type, buttonconfig.name, buttonconfig.options )
- ORDER BY instance ASC
- SEPARATOR ';' ) AS button,
- sccpdevice.type AS type,
- sccpdevice.addon AS addon,
- sccpdevice.description AS description,
- sccpdevice.tzoffset AS tzoffset,
- sccpdevice.transfer AS transfer,
- sccpdevice.cfwdall AS cfwdall,
- sccpdevice.cfwdbusy AS cfwdbusy,
- sccpdevice.imageversion AS imageversion,
- sccpdevice.deny AS deny,
- sccpdevice.permit AS permit,
- sccpdevice.dndFeature AS dndFeature,
- sccpdevice.directrtp AS directrtp,
- sccpdevice.earlyrtp AS earlyrtp,
- sccpdevice.mwilamp AS mwilamp,
- sccpdevice.mwioncall AS mwioncall,
- sccpdevice.pickupexten AS pickupexten,
- sccpdevice.pickupcontext AS pickupcontext,
- sccpdevice.pickupmodeanswer AS pickupmodeanswer,
- sccpdevice.private AS private,
- sccpdevice.privacy AS privacy,
- sccpdevice.nat AS nat,
- sccpdevice.softkeyset AS softkeyset,
- sccpdevice.audio_tos AS audio_tos,
- sccpdevice.audio_cos AS audio_cos,
- sccpdevice.video_tos AS video_tos,
- sccpdevice.video_cos AS video_cos,
- sccpdevice.conf_allow AS conf_allow,
- sccpdevice.conf_play_general_announce AS conf_play_general_announce,
- sccpdevice.conf_play_part_announce AS conf_play_part_announce,
- sccpdevice.conf_mute_on_entry AS conf_mute_on_entry,
- sccpdevice.conf_music_on_hold_class AS conf_music_on_hold_class,
- sccpdevice.conf_show_conflist AS conf_show_conflist,
- sccpdevice.setvar AS setvar,
- sccpdevice.disallow AS disallow,
- sccpdevice.allow AS allow,
- sccpdevice.backgroundImage AS backgroundImage,
- sccpdevice.ringtone AS ringtone,
- sccpdevice.name AS name
- FROM sccpdevice
- LEFT JOIN sccpbuttonconfig buttonconfig ON ( buttonconfig.device = sccpdevice.name )
- GROUP BY sccpdevice.name;";
+
+ SELECT GROUP_CONCAT( CONCAT_WS( ',', buttonconfig.type, buttonconfig.name, buttonconfig.options )
+ ORDER BY instance ASC
+ SEPARATOR ';' ) AS button,
+ `sccpdevice`.`type` AS `type`,`sccpdevice`.`addon` AS `addon`,`sccpdevice`.`description` AS `description`,`sccpdevice`.`tzoffset` AS `tzoffset`,
+ `sccpdevice`.`transfer` AS `transfer`,`sccpdevice`.`cfwdall` AS `cfwdall`,`sccpdevice`.`cfwdbusy` AS `cfwdbusy`,`sccpdevice`.`imageversion` AS `imageversion`,
+ `sccpdevice`.`deny` AS `deny`,`sccpdevice`.`permit` AS `permit`,`sccpdevice`.`dndFeature` AS `dndFeature`,`sccpdevice`.`directrtp` AS `directrtp`,
+ `sccpdevice`.`earlyrtp` AS `earlyrtp`,`sccpdevice`.`mwilamp` AS `mwilamp`,`sccpdevice`.`mwioncall` AS `mwioncall`,`sccpdevice`.`pickupexten` AS `pickupexten`,
+ `sccpdevice`.`pickupcontext` AS `pickupcontext`,`sccpdevice`.`pickupmodeanswer` AS `pickupmodeanswer`,`sccpdevice`.`private` AS `private`,
+ `sccpdevice`.`privacy` AS `privacy`,`sccpdevice`.`nat` AS `nat`,`sccpdevice`.`softkeyset` AS `softkeyset`,`sccpdevice`.`audio_tos` AS `audio_tos`,
+ `sccpdevice`.`audio_cos` AS `audio_cos`,`sccpdevice`.`video_tos` AS `video_tos`,`sccpdevice`.`video_cos` AS `video_cos`,`sccpdevice`.`conf_allow` AS `conf_allow`,
+ `sccpdevice`.`conf_play_general_announce` AS `conf_play_general_announce`,`sccpdevice`.`conf_play_part_announce` AS `conf_play_part_announce`,
+ `sccpdevice`.`conf_mute_on_entry` AS `conf_mute_on_entry`,`sccpdevice`.`conf_music_on_hold_class` AS `conf_music_on_hold_class`,
+ `sccpdevice`.`conf_show_conflist` AS `conf_show_conflist`,`sccpdevice`.`setvar` AS `setvar`,`sccpdevice`.`disallow` AS `disallow`,
+ `sccpdevice`.`allow` AS `allow`,`sccpdevice`.`backgroundImage` AS `backgroundImage`,`sccpdevice`.`ringtone` AS `ringtone`,`sccpdevice`.`name` AS `name`
+ FROM sccpdevice
+ LEFT JOIN sccpbuttonconfig buttonconfig ON ( buttonconfig.device = sccpdevice.name )
+ GROUP BY sccpdevice.name;";
} else {
- $sql = "DROP VIEW IF EXISTS sccpdeviceconfig;
- DROP VIEW IF EXISTS sccpuserconfig;";
+ /* $sql = "
+ CREATE OR REPLACE
+ ALGORITHM = MERGE
+ VIEW sccpdeviceconfig AS
+ SELECT IF(sccpdevice._profileid = 0,
+ GROUP_CONCAT(CONCAT_WS( ',', defbutton.buttontype, defbutton.name, defbutton.options ) ORDER BY defbutton.instance ASC SEPARATOR ';' ),
+ GROUP_CONCAT( CONCAT_WS( ',', userbutton.buttontype, userbutton.name, userbutton.options ) ORDER BY userbutton.instance ASC SEPARATOR ';' )
+ ) AS button,
+ sccpdevice.*
+ FROM sccpdevice
+ LEFT JOIN sccpbuttonconfig defbutton ON ( defbutton.ref = sccpdevice.name )
+ LEFT JOIN sccpbuttonconfig userbutton ON ( userbutton.ref = sccpdevice._loginname )
+ LEFT JOIN sccpline ON ( sccpline.name = sccpdevice._loginname)
+ GROUP BY sccpdevice.name;";
+*/
+ $sql = "DROP VIEW IF EXISTS `sccpdeviceconfig`;
+ DROP VIEW IF EXISTS `sccpuserconfig`;";
/// global $hw_mobil;
global $mobile_hw;
if ($mobile_hw == '1') {
- $sql .= "CREATE OR REPLACE
- ALGORITHM = MERGE
- VIEW sccpdeviceconfig AS
- SELECT GROUP_CONCAT( CONCAT_WS( ',', sccpbuttonconfig.buttontype, sccpbuttonconfig.name, sccpbuttonconfig.options )
- ORDER BY instance ASC SEPARATOR ';' ) AS sccpbutton, sccpdevice.*
- FROM sccpdevice
- LEFT JOIN sccpbuttonconfig ON (sccpbuttonconfig.reftype = 'sccpdevice' AND sccpbuttonconfig.ref = sccpdevice.name )
- GROUP BY sccpdevice.name; ";
- $sql .= "CREATE OR REPLACE ALGORITHM = MERGE VIEW sccpuserconfig AS
- SELECT GROUP_CONCAT( CONCAT_WS( ',', sccpbuttonconfig.buttontype, sccpbuttonconfig.name, sccpbuttonconfig.options )
- ORDER BY instance ASC SEPARATOR ';' ) AS button, sccpuser.*
- FROM sccpuser
- LEFT JOIN sccpbuttonconfig ON ( sccpbuttonconfig.reftype = 'sccpuser' AND sccpbuttonconfig.ref = sccpuser.id)
- GROUP BY sccpuser.name; ";
+ $sql .= "CREATE OR REPLACE ALGORITHM = MERGE VIEW sccpdeviceconfig AS
+ SELECT GROUP_CONCAT( CONCAT_WS( ',', sccpbuttonconfig.buttontype, sccpbuttonconfig.name, sccpbuttonconfig.options )
+ ORDER BY instance ASC SEPARATOR ';' ) AS sccpbutton, sccpdevice.*
+ FROM sccpdevice
+ LEFT JOIN sccpbuttonconfig ON (sccpbuttonconfig.reftype = 'sccpdevice' AND sccpbuttonconfig.ref = sccpdevice.name )
+ GROUP BY sccpdevice.name; ";
+ $sql .= "CREATE OR REPLACE ALGORITHM = MERGE VIEW sccpuserconfig AS
+ SELECT GROUP_CONCAT( CONCAT_WS( ',', sccpbuttonconfig.buttontype, sccpbuttonconfig.name, sccpbuttonconfig.options )
+ ORDER BY instance ASC SEPARATOR ';' ) AS button, sccpuser.*
+ FROM sccpuser
+ LEFT JOIN sccpbuttonconfig ON ( sccpbuttonconfig.reftype = 'sccpuser' AND sccpbuttonconfig.ref = sccpuser.id)
+ GROUP BY sccpuser.name; ";
} else {
$sql .= "CREATE OR REPLACE
ALGORITHM = MERGE
VIEW sccpdeviceconfig AS
SELECT case sccpdevice._profileid
when 0 then
- (select GROUP_CONCAT(CONCAT_WS( ',', defbutton.buttontype, defbutton.name, defbutton.options ) SEPARATOR ';') from sccpbuttonconfig as defbutton where defbutton.ref = sccpdevice.name ORDER BY defbutton.instance )
+ (select GROUP_CONCAT(CONCAT_WS( ',', defbutton.buttontype, defbutton.name, defbutton.options ) SEPARATOR ';') from `sccpbuttonconfig` as defbutton where defbutton.ref = sccpdevice.name ORDER BY defbutton.instance )
when 1 then
- (select GROUP_CONCAT(CONCAT_WS( ',', userbutton.buttontype, userbutton.name, userbutton.options ) SEPARATOR ';') from sccpbuttonconfig as userbutton where userbutton.ref = sccpdevice._loginname ORDER BY userbutton.instance )
+ (select GROUP_CONCAT(CONCAT_WS( ',', userbutton.buttontype, userbutton.name, userbutton.options ) SEPARATOR ';') from `sccpbuttonconfig` as userbutton where userbutton.ref = sccpdevice._loginname ORDER BY userbutton.instance )
when 2 then
- (select GROUP_CONCAT(CONCAT_WS( ',', homebutton.buttontype, homebutton.name, homebutton.options ) SEPARATOR ';') from sccpbuttonconfig as homebutton where homebutton.ref = sccpuser.homedevice ORDER BY homebutton.instance )
+ (select GROUP_CONCAT(CONCAT_WS( ',', homebutton.buttontype, homebutton.name, homebutton.options ) SEPARATOR ';') from `sccpbuttonconfig` as homebutton where homebutton.ref = sccpuser.homedevice ORDER BY homebutton.instance )
end as button, if(sccpdevice._profileid = 0, sccpdevice._description, sccpuser.description) as description, sccpdevice.*
FROM sccpdevice
LEFT JOIN sccpuser sccpuser ON ( sccpuser.name = sccpdevice._loginname )
@@ -715,7 +839,7 @@ function InstallDB_CreateSccpDeviceConfigView($sccp_compatible)
function CreateBackUpConfig()
{
global $amp_conf;
- outn("
" . _("Creating Config BackUp") . "
");
+ outn("
" . _("Create Config BackUp") . "
");
$cnf_int = \FreePBX::Config();
$backup_files = array('extensions','extconfig','res_mysql', 'res_config_mysql','sccp','sccp_hardware','sccp_extensions');
$backup_ext = array('_custom.conf', '_additional.conf','.conf');
@@ -724,14 +848,8 @@ function CreateBackUpConfig()
$fsql = $dir.'/sccp_backup_'.date("Ymd").'.sql';
$result = exec('mysqldump '.$amp_conf['AMPDBNAME'].' --password='.$amp_conf['AMPDBPASS'].' --user='.$amp_conf['AMPDBUSER'].' --single-transaction >'.$fsql, $output);
- try {
- $zip = new \ZipArchive();
- } catch (\Exception $e) {
- outn(" ");
- outn("PHPx.x-zip not installed where x.x is the installed PHP version. Install it before continuing !");
- die_freepbx();
- }
- $filename = $dir . "/sccp_install_backup" . date("Ymd"). ".zip";
+ $zip = new \ZipArchive();
+ $filename = $dir . "/sccp_instal_backup" . date("Ymd"). ".zip";
if ($zip->open($filename, \ZIPARCHIVE::CREATE)) {
foreach ($backup_files as $file) {
foreach ($backup_ext as $b_ext) {
@@ -745,7 +863,7 @@ function CreateBackUpConfig()
}
$zip->close();
} else {
- outn("
-
diff --git a/page.html.php b/page.html.php
index f2ac6cc..5ede85b 100644
--- a/page.html.php
+++ b/page.html.php
@@ -21,7 +21,7 @@
-
+
diff --git a/page.sccpsettings.php b/page.sccpsettings.php
index 363254b..deb8315 100644
--- a/page.sccpsettings.php
+++ b/page.sccpsettings.php
@@ -11,7 +11,7 @@ if (!defined('FREEPBX_IS_AUTH')) {
//
// Initialise page before to avoid double calls and improve performance
-$display_page = FreePBX::create()->Sccp_manager->settingsShowPage();
+$display_page = FreePBX::create()->Sccp_manager->myShowPage();
$display_info = _("SCCP Server Settings");
// standardise code to reduce base
include('page.html.php');
diff --git a/uninstall.php b/uninstall.php
index e3b2651..6974b3b 100644
--- a/uninstall.php
+++ b/uninstall.php
@@ -34,11 +34,11 @@ if (!defined('FREEPBX_IS_AUTH')) {
die('No direct script access allowed');
}
-global $db;
-$version = FreePBX::Config()->get('ASTVERSION');
+ global $db;
+ $version = FreePBX::Config()->get('ASTVERSION');
-out('Removing all Sccp_manager tables');
-$tables = array('sccpdevmodel', 'sccpsettings');
+ out('Removing all Sccp_manager tables');
+ $tables = array('sccpdevmodel', 'sccpsettings');
foreach ($tables as $table) {
$sql = "DROP TABLE IF EXISTS {$table}";
$result = $db->query($sql);
@@ -63,6 +63,7 @@ if (!empty($version)) {
if (DB::IsError($result)) {
die_freepbx($result->getDebugInfo());
}
+ unset($result);
/* Comment: Maybe save in sccpsettings, if the chan_sccp tables already existed in the database or if they were created by install.php */
/* So that you know if it is safe to drop/delete them */
@@ -77,5 +78,5 @@ if (!empty($version)) {
*
*/
}
+
echo "done \n";
-?>