Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
|
c46adee2ba | ||
|
b87496621c | ||
|
0da6430b22 | ||
|
cb9f9673cf | ||
|
41417601c2 | ||
|
eeba1d86de | ||
|
d4798c4fa8 | ||
|
1570cb9059 |
33
README.md
33
README.md
|
@ -1,24 +1,17 @@
|
|||
## Welcome to Chan_SCCP GUI Manager for FreePBX
|
||||
|
||||
```
|
||||
SSSSS CCCCC CCCCC PPPP
|
||||
SS SS CC C CC CC PP P
|
||||
SS S CC CC PPPP
|
||||
SS CC CC CC CC PP
|
||||
SSS CCCCC CCCCC PP
|
||||
SSS
|
||||
SS GGGGG UU UU IIII
|
||||
SS GG UU UU II
|
||||
S SS GG GGG UU UU II
|
||||
SS SS GG G UU UU II
|
||||
SSSSS GGGGG UUUUU IIII
|
||||
```
|
||||

|
||||
|
||||
### Hot Link
|
||||
* [Installation](https://github.com/PhantomVl/sccp_manager#installation)
|
||||
* [Prerequisites](https://github.com/PhantomVl/sccp_manager#prerequisites)
|
||||
* [Links](https://github.com/PhantomVl/sccp_manager#link)
|
||||
* [Wiki](https://github.com/PhantomVl/sccp_manager/wiki)
|
||||
|
||||
## Link
|
||||
|
||||
[](https://github.com/PhantomVl/sccp_manager/archive/master.zip)
|
||||
[](https://github.com/chan-sccp/chan-sccp/releases/latest)
|
||||
[![Chan-SCCP Documentation] (https://img.shields.io/badge/docs-wiki-blue.svg)](https://github.com/chan-sccp/chan-sccp/wiki)
|
||||
[](https://github.com/chan-sccp/chan-sccp/wiki)
|
||||
|
||||
This module has been developed to help IT Staff with their Asterisk-Cisco infrastructure deployment,
|
||||
providing easily provisioning and managing Cisco IP phones and extensions in a similar way as it does with Cisco CallManager.
|
||||
|
@ -35,7 +28,7 @@ And you can use the driver functions "sccp_chain" from the GUI module.
|
|||
### Wiki
|
||||
You can find more information and documentation on our [](https://github.com/PhantomVl/sccp_manager/wiki)
|
||||
|
||||
### Prerequisites
|
||||
## Prerequisites
|
||||
Make sure you have the following installed on your system:
|
||||
- c-compiler:
|
||||
- gcc >= 4.4 (note: older not supported, higher advised)
|
||||
|
@ -49,17 +42,17 @@ Make sure you have the following installed on your system:
|
|||
- standard posix compatible applications like sed, awk, tr
|
||||
|
||||
### Requirements
|
||||
- Chan_SCCP module 4.3.0 (or later) channel driver for Asterisk: [See our WIKI] (https://github.com/chan-sccp/chan-sccp/wiki/Building-and-Installation-Guide)
|
||||
- Chan_SCCP module 4.3.0 (or later) channel driver for Asterisk: [See our WIKI](https://github.com/chan-sccp/chan-sccp/wiki/Building-and-Installation-Guide)
|
||||
- expected configure flags:
|
||||
```./configure --enable-conference --enable-advanced-functions --enable-distributed-devicestate```
|
||||
- Creating mysql DB from sorce
|
||||
```mysql -u root asterisk < mysql-v5_enum.sql```
|
||||
|
||||
- TFTP Server running under (recomended) /tftpboot/ [See our WIKI] (https://github.com/chan-sccp/chan-sccp/wiki/setup-tftp-service)
|
||||
- TFTP Server running under (recomended) /tftpboot/ [See our WIKI](https://github.com/chan-sccp/chan-sccp/wiki/setup-tftp-service)
|
||||
- You will need the phone settings templates. You can use the templates taken from the distribution "chan-sccp"
|
||||
```cp /usr/src/chan-sccp/conf/tftp/\*.xml\* /tftpboot/templates/```
|
||||
|
||||
- configure DHCP server [See our WIKI] (https://github.com/chan-sccp/chan-sccp/wiki/setup-dhcp-service)
|
||||
- configure DHCP server [See our WIKI](https://github.com/chan-sccp/chan-sccp/wiki/setup-dhcp-service)
|
||||
|
||||
### Setup
|
||||
- [Setting up a FreePBX system](http://wiki.freepbx.org/display/FOP/Install+FreePBX)
|
||||
|
@ -67,7 +60,7 @@ Make sure you have the following installed on your system:
|
|||
- The sccp_manager module will automatically setup and configure asterisk realtime database for chan-sccp.
|
||||
For more information about realtime [See chan-sccp wiki](https://github.com/chan-sccp/chan-sccp/wiki/Realtime-Configuration).
|
||||
|
||||
### Module installation
|
||||
## Installation
|
||||
|
||||
1. Download module into your local system. (/var/www/html/admin/modules/)
|
||||
2. Goto FreePBX Admin -> Module Admin.
|
||||
|
|
|
@ -360,8 +360,8 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
$request = $_REQUEST;
|
||||
$action = !empty($request['action']) ? $request['action'] : '';
|
||||
|
||||
if (!empty(($this->sccpvalues['displayconfig']))) {
|
||||
if (!empty(($this->sccpvalues['displayconfig']['data'] == 'sccpsimple'))) {
|
||||
if (!empty($this->sccpvalues['displayconfig'])) {
|
||||
if (!empty($this->sccpvalues['displayconfig']['data']) && ($this->sccpvalues['displayconfig']['data']== 'sccpsimple')) {
|
||||
$this->pagedata = array(
|
||||
"general" => array(
|
||||
"name" => _("General SCCP Settings"),
|
||||
|
@ -1460,7 +1460,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
|
|||
function init_sccp_path() {
|
||||
global $db;
|
||||
global $amp_conf;
|
||||
$driver_revision = array('0' => '', '430' => '.v431', '431' => '.v431');
|
||||
$driver_revision = array('0' => '', '430' => '.v431', '431' => '.v432');
|
||||
|
||||
|
||||
$confDir = $amp_conf["ASTETCDIR"];
|
||||
|
|
|
@ -34,8 +34,8 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
|||
"prettyName" => _("Sccp Custom Driver"),
|
||||
"shortName" => "SCCP",
|
||||
"description" => _("Sccp Device"),
|
||||
"Version" => "11.3.v431",
|
||||
"about" => "Sccp mysql class Base ver: 11.3, Sccp ver: 431"
|
||||
"Version" => "11.3.v432",
|
||||
"about" => "Sccp mysql class Base ver: 11.3, Sccp ver: 432"
|
||||
);
|
||||
}
|
||||
/*
|
||||
|
@ -91,7 +91,7 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
|||
case 'secondary_dialtone_tone':
|
||||
case 'dnd':
|
||||
$sql .= ', '.$key;
|
||||
if (!empty($settings[$val]['value'])){
|
||||
if (!$this->is_my_blank($settings[$val]['value'])){
|
||||
$sqlv .= ", '".$settings[$val]['value']."' ";
|
||||
} else {
|
||||
$sqlv .= ", NULL ";
|
||||
|
@ -409,6 +409,9 @@ class Sccp extends \FreePBX\modules\Core\Driver {
|
|||
$devopts = $tmparr;
|
||||
return $devopts;
|
||||
}
|
||||
public function is_my_blank($value) {
|
||||
return empty($value) && !is_numeric($value);
|
||||
}
|
||||
public function getDeviceHeaders() {
|
||||
return array(
|
||||
'secret' => array('identifier' => _('Secret'), 'description' => sprintf(_('Secret [Enter "%s" to regenerate]'),"REGEN")),
|
||||
|
|
Loading…
Reference in a new issue