Compare commits

...

8 commits

Author SHA1 Message Date
Phantom c46adee2ba
Merge pull request #37 from dkgroot/master
Fix links in README.md
2019-04-26 10:13:15 +03:00
Diederik de Groot b87496621c Fix links in README.md 2019-04-25 16:38:25 +02:00
Phantom 0da6430b22
Update Sccp_manager.class.php 2018-10-31 17:31:01 +03:00
Phantom cb9f9673cf
Update Sccp.class.php.v431 2018-10-31 17:29:51 +03:00
Phantom 41417601c2
Update Sccp_manager.class.php 2018-10-08 10:56:54 +03:00
Phantom eeba1d86de
Update README.md 2018-08-15 15:10:58 +03:00
Phantom d4798c4fa8
Update README.md 2018-08-15 12:12:39 +03:00
Phantom 1570cb9059
Update README.md 2018-08-15 12:05:45 +03:00
3 changed files with 22 additions and 26 deletions

View file

@ -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
```
![Gif](https://github.com/PhantomVl/sccp_manager/raw/develop/.dok/image/Demo_1s5.gif)
### 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
[![Download Sccp-Mamager](https://img.shields.io/badge/SccpGUI-build-ff69b4.svg)](https://github.com/PhantomVl/sccp_manager/archive/master.zip)
[![Download Chan-SCCP channel driver for Asterisk](https://img.shields.io/sourceforge/dt/chan-sccp-b.svg)](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)
[![Chan-SCCP Documentation](https://img.shields.io/badge/docs-wiki-blue.svg)](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 [![SCCP Manager Wiki](https://img.shields.io/badge/Wiki-new-blue.svg)](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.

View file

@ -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"];

View file

@ -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")),