Пререлиз 13.09.2017 Конфиги и Помощь

This commit is contained in:
PhantomVl 2017-09-13 15:06:07 +03:00
parent 972b213b68
commit 7ae24cc71a
8 changed files with 373 additions and 54 deletions

View file

@ -1,20 +1,35 @@
## Welcome to Chan_SCCP GUI Manager
## Welcome to Chan_SCCP GUI Manager for FreePBX
```
______ _____ ______ __
| ____| | __ \| _ \ \ / /
| |__ _ __ ___ ___| |__) | |_) \ V /
| __| '__/ _ \/ _ \ ___/| _ < > <
| | | | | __/ __/ | | |_) / . \
|_| |_| \___|\___|_| |____/_/ \_\
Your Open Source Asterisk PBX GUI Solution
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
```
SCCP Manager is free software. Please see the file COPYING for details.
For documentation, please see the files in the doc subdirectory.
For building and installation instructions please see the INSTALL file.
[![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)
[![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.
The idea of creating a module is borrowed from (https://github.com/Cynjut/SCCP_Manager)
SCCP Manager is free software. Please see the file COPYING for details.
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.
This module will suit you if you are planing the to migrate from CallManager to Asterisk (or did it), SCCP-Manager allows you to administer SCCP extensions and a wide range of Cisco phone types (including IP Communicator).
You can control phone buttons (depending on the phone model) assigning multiple lines, speeddials and BLFs.
And you can use the driver functions "sccp_chain" from the GUI module.
### Prerequisites
Make sure you have the following installed on your system:
@ -27,32 +42,44 @@ Make sure you have the following installed on your system:
- asterisk >= 13.7 or asterisk >= 14.0 recommended
- gui:
- freepbx >= 13.0.192
- Chan_SCCP module:
- configure flags ./configure --enable-conference --enable-advanced-functions --enable-distributed-devicestate
- creating mysql DB from sorce (mysql -u root asterisk < mysql-v5.sql)
- cofigure TFTP server
- cofigure DHCP server
- 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)
- configure flags ./configure --enable-conference --enable-advanced-functions --enable-distributed-devicestate
- Real Time cofiguration for Chan_SCCP
- Creating mysql DB from sorce (mysql -u root asterisk < mysql-v5.sql)
- 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"
sample: copy /usr/src/chan-sccp/conf/tftp/*.xml* /tftpboot/templets/
- cofigure DHCP server [See our WIKI] (https://github.com/chan-sccp/chan-sccp/wiki/setup-dhcp-service)
### Setting up a FreePBX system
[See our WIKI](http://wiki.freepbx.org/display/FOP/Install+FreePBX)
### Setting up a Sccp manager
### Setting up a Sccp
[See our WIKI] https://github.com/chan-sccp/chan-sccp/wiki/How-to-setup-the-chan_sccp-Module
### Module requred
SCCP channel driver Compiling:
./configure --enable-conference --enable-advanced-functions --enable-distributed-devicestate
or
./configure --enable-indications --enable-conference --enable-advanced-functions --enable-distributed-devicestate
copy all from sorce/conf/tftp to /tftpboot-directory
create mysql-db
cd sorce/conf
mysql -u root asterisk < mysql-v5.sql
### Module installation
1. Download module into your local system. (/var/www/html/admin/module/)
2. Goto FreePBX Admin -> Module Admin.
3. Click Upload Modules.
4. Browse to the location of the module on your computer and select Upload.
5. Click Manage Local Modules.
6. Find and click SCCP Manager. Check Install. Click Process button.
7. Confirm installation.
8. Close Status window.
9. Apply Config to FreePBX.
### IMPORTANT NOTE:
- This system assumes you are using the SCCP Real-time Database. If you are
not yet using the RTD, you will need to set it up for this module to be
effective.
- For the correct operation of the cisco-phones you will be tempted cisco phone firmware (recomended v 8.1 or later)
- You can also use cisco language profiles to personalize sysnem and any cisco phones.

View file

@ -1614,7 +1614,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
if (!(empty($var_hw_config['nametemplet']))) {
$xml_templet = $this->sccppath["tftp_templets"] . '/' . $var_hw_config['nametemplet'];
} else {
$xml_templet = $this->sccppath["tftp_templets"] . '/SEP0000000000.cnf.xml_791x_template';
$xml_templet = $this->sccppath["tftp_templets"] . '/SEP0000000000.cnf.xml_79df_template';
}
$xml_name = $this->sccppath["tftp_path"] . '/' . $dev_id . '.cnf.xml';
if (file_exists($xml_templet)) {

View file

@ -0,0 +1,88 @@
<?xml version="1.0"?>
<device>
<sshUserId>cisco</sshUserId>
<sshPassword>cisco</sshPassword>
<devicePool>
<dateTimeSetting>
<dateTemplate>D-M-YA</dateTemplate>
<timeZone>W. Europe Standard/Daylight Time</timeZone>
<ntps>
<ntp>
<name>x.x.x.x</name>
<ntpMode>Unicast</ntpMode>
</ntp>
</ntps>
</dateTimeSetting>
<callManagerGroup>
<members>
<member priority="0">
<callManager>
<ports>
<ethernetPhonePort>2000</ethernetPhonePort>
</ports>
<processNodeName>x.x.x.x</processNodeName>
</callManager>
</member>
</members>
</callManagerGroup>
<srstInfo>
<srstOption>Enable</srstOption>
<ipAddr1>x.x.x.x</ipAddr1>
<port1>2000</port1>
<ipAddr2/>
<port2>2000</port2>
<ipAddr3/>
<port3>2000</port3>
</srstInfo>
</devicePool>
<loadInformation>SCCP11.8-5-2S</loadInformation>
<vendorConfig>
<disableSpeaker>false</disableSpeaker>
<disableSpeakerAndHeadset>false</disableSpeakerAndHeadset>
<forwardingDelay>1</forwardingDelay>
<pcPort>0</pcPort>
<settingsAccess>1</settingsAccess>
<garp>0</garp>
<voiceVlanAccess>0</voiceVlanAccess>
<videoCapability>0</videoCapability>
<autoSelectLineEnable>0</autoSelectLineEnable>
<webAccess>0</webAccess>
<daysDisplayNotActive>1,7</daysDisplayNotActive>
<displayOnTime>08:30</displayOnTime>
<displayOnDuration>11:30</displayOnDuration>
<displayIdleTimeout>01:00</displayIdleTimeout>
</vendorConfig>
<userLocale>
<name>Netherlands</name>
<langCode>nl</langCode>
<version>4.0(1)</version>
<winCharSet>iso-8859-1</winCharSet>
</userLocale>
<networkLocale>Netherlands</networkLocale>
<networkLocaleInfo>
<name/>
<uid>64</uid>
<version>4.0(1)</version>
</networkLocaleInfo>
<deviceSecurityMode>1</deviceSecurityMode>
<idleTimeout>3600</idleTimeout>
<authenticationURL>http://x.x.x.x/cisco_menu/authentication.php</authenticationURL>
<idleURL>http://x.x.x.x/cisco_menu/idle.php</idleURL>
<informationURL>http://x.x.x.x/cisco_menu/help/help.php</informationURL>
<messagesURL/>
<proxyServerURL/>
<servicesURL>http://x.x.x.x/cisco_menu/menu.php</servicesURL>
<directoryURL>http://x.x.x.x/cisco_menu/directory/menu.php</directoryURL>
<dscpForSCCPPhoneConfig>104</dscpForSCCPPhoneConfig>
<dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices>
<dscpForCm2Dvce>184</dscpForCm2Dvce>
<transportLayerProtocol>4</transportLayerProtocol>
<capfAuthMode>0</capfAuthMode>
<capfList>
<capf>
<phonePort>3804</phonePort>
</capf>
</capfList>
<certHash/>
<encrConfig>false</encrConfig>
</device>

View file

@ -0,0 +1,90 @@
<?xml version="1.0"?>
<device>
<sshUserId>cisco</sshUserId>
<sshPassword>cisco</sshPassword>
<devicePool>
<dateTimeSetting>
<name>Netherlands</name>
<dateTemplate>D-M-YA</dateTemplate>
<timeZone>W. Europe Standard/Daylight Time</timeZone>
<ntps>
<ntp>
<name>x.x.x.x</name>
<ntpMode>Unicast</ntpMode>
</ntp>
</ntps>
</dateTimeSetting>
<callManagerGroup>
<members>
<member priority="0">
<callManager>
<ports>
<ethernetPhonePort>2000</ethernetPhonePort>
</ports>
<processNodeName>x.x.x.x</processNodeName>
</callManager>
</member>
</members>
</callManagerGroup>
<srstInfo>
<name>Enable</name>
<srstOption>Enable</srstOption>
<userModifiable>true</userModifiable>
<ipAddr1>x.x.x.x</ipAddr1>
<port1>2000</port1>
<ipAddr2/>
<port2>2000</port2>
<ipAddr3/>
<port3>2000</port3>
</srstInfo>
</devicePool>
<loadInformation>P00308010100</loadInformation>
<vendorConfig>
<disableSpeaker>false</disableSpeaker>
<disableSpeakerAndHeadset>false</disableSpeakerAndHeadset>
<forwardingDelay>1</forwardingDelay>
<pcPort>0</pcPort>
<settingsAccess>1</settingsAccess>
<garp>0</garp>
<voiceVlanAccess>0</voiceVlanAccess>
<videoCapability>0</videoCapability>
<autoSelectLineEnable>0</autoSelectLineEnable>
<webAccess>0</webAccess>
<daysDisplayNotActive>1,7</daysDisplayNotActive>
<displayOnTime>08:30</displayOnTime>
<displayOnDuration>11:30</displayOnDuration>
<displayIdleTimeout>01:00</displayIdleTimeout>
</vendorConfig>
<userLocale>
<name>Dutch_Netherlands</name>
<langCode>nl</langCode>
<winCharSet>iso-8859-1</winCharSet>
</userLocale>
<networkLocale>Netherlands</networkLocale>
<networkLocaleInfo>
<name/>
<uid>64</uid>
<version>4.0(1)</version>
</networkLocaleInfo>
<deviceSecurityMode>1</deviceSecurityMode>
<idleTimeout>3600</idleTimeout>
<authenticationURL>http://x.x.x.x/cisco_menu/authentication.php</authenticationURL>
<idleURL>http://x.x.x.x/cisco_menu/idle.php</idleURL>
<informationURL>http://x.x.x.x/cisco_menu/help/help.php</informationURL>
<messagesURL/>
<proxyServerURL/>
<servicesURL>http://x.x.x.x/cisco_menu/menu.php</servicesURL>
<directoryURL>http://x.x.x.x/cisco_menu/directory/menu.php</directoryURL>
<dscpForSCCPPhoneConfig>104</dscpForSCCPPhoneConfig>
<dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices>
<dscpForCm2Dvce>184</dscpForCm2Dvce>
<transportLayerProtocol>4</transportLayerProtocol>
<capfAuthMode>0</capfAuthMode>
<capfList>
<capf>
<phonePort>3804</phonePort>
</capf>
</capfList>
<certHash/>
<encrConfig>false</encrConfig>
</device>

View file

@ -0,0 +1,88 @@
<?xml version="1.0"?>
<device>
<sshUserId>cisco</sshUserId>
<sshPassword>cisco</sshPassword>
<devicePool>
<dateTimeSetting>
<dateTemplate>D-M-YA</dateTemplate>
<timeZone>W. Europe Standard/Daylight Time</timeZone>
<ntps>
<ntp>
<name>x.x.x.x</name>
<ntpMode>Unicast</ntpMode>
</ntp>
</ntps>
</dateTimeSetting>
<callManagerGroup>
<members>
<member priority="0">
<callManager>
<ports>
<ethernetPhonePort>2000</ethernetPhonePort>
</ports>
<processNodeName>x.x.x.x</processNodeName>
</callManager>
</member>
</members>
</callManagerGroup>
<srstInfo>
<srstOption>Enable</srstOption>
<ipAddr1>x.x.x.x</ipAddr1>
<port1>2000</port1>
<ipAddr2/>
<port2>2000</port2>
<ipAddr3/>
<port3>2000</port3>
</srstInfo>
</devicePool>
<loadInformation>SCCP11.8-5-2S</loadInformation>
<vendorConfig>
<disableSpeaker>false</disableSpeaker>
<disableSpeakerAndHeadset>false</disableSpeakerAndHeadset>
<forwardingDelay>1</forwardingDelay>
<pcPort>0</pcPort>
<settingsAccess>1</settingsAccess>
<garp>0</garp>
<voiceVlanAccess>0</voiceVlanAccess>
<videoCapability>0</videoCapability>
<autoSelectLineEnable>0</autoSelectLineEnable>
<webAccess>0</webAccess>
<daysDisplayNotActive>1,7</daysDisplayNotActive>
<displayOnTime>08:30</displayOnTime>
<displayOnDuration>11:30</displayOnDuration>
<displayIdleTimeout>01:00</displayIdleTimeout>
</vendorConfig>
<userLocale>
<name>Netherlands</name>
<langCode>nl</langCode>
<version>4.0(1)</version>
<winCharSet>iso-8859-1</winCharSet>
</userLocale>
<networkLocale>Netherlands</networkLocale>
<networkLocaleInfo>
<name/>
<uid>64</uid>
<version>4.0(1)</version>
</networkLocaleInfo>
<deviceSecurityMode>1</deviceSecurityMode>
<idleTimeout>3600</idleTimeout>
<authenticationURL>http://x.x.x.x/cisco_menu/authentication.php</authenticationURL>
<idleURL>http://x.x.x.x/cisco_menu/idle.php</idleURL>
<informationURL>http://x.x.x.x/cisco_menu/help/help.php</informationURL>
<messagesURL/>
<proxyServerURL/>
<servicesURL>http://x.x.x.x/cisco_menu/menu.php</servicesURL>
<directoryURL>http://x.x.x.x/cisco_menu/directory/menu.php</directoryURL>
<dscpForSCCPPhoneConfig>104</dscpForSCCPPhoneConfig>
<dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices>
<dscpForCm2Dvce>184</dscpForCm2Dvce>
<transportLayerProtocol>4</transportLayerProtocol>
<capfAuthMode>0</capfAuthMode>
<capfList>
<capf>
<phonePort>3804</phonePort>
</capf>
</capfList>
<certHash/>
<encrConfig>false</encrConfig>
</device>

View file

@ -0,0 +1,24 @@
<?xml version="1.0"?>
<Default>
<callManagerGroup>
<members>
<member priority="0">
<callManager>
<ports>
<ethernetPhonePort>2000</ethernetPhonePort>
</ports>
<processNodeName>10.0.0.3</processNodeName>
</callManager>
</member>
</members>
</callManagerGroup>
<authenticationURL>http://10.0.0.3/authentication.php</authenticationURL>
<idleURL>http://10.0.0.3/idle.php</idleURL>
<informationURL>http://10.0.0.3/help/help.php</informationURL>
<messagesURL></messagesURL>
<proxyServerURL></proxyServerURL>
<servicesURL>http://10.0.0.3/menu.php</servicesURL>
<directoryURL>http://10.0.0.3/directory.php</directoryURL>
</Default>

View file

@ -62,7 +62,10 @@ if ($h_show==1) {
<?php
}
foreach ($items as $child) {
if (empty($child->help)) {
$child->help = 'Help is not available.';
}
if ($child['type'] == 'IE') {
$res_input = '';
$res_name = '';
@ -221,8 +224,9 @@ foreach ($items as $child) {
}
if ($child['type'] == 'IS') {
$res_n = (string)$child->name;
$res_id = $npref.$child->name;
$res_n = (string)$child->name;
$res_id = $npref.$child->name;
echo '<!-- Begin '.$child->label.' -->';
?>
<div class="element-container">
@ -282,6 +286,7 @@ foreach ($items as $child) {
if (empty($child->class)) {
$child->class = 'form-control';
}
if ($child['type'] == 'SLD') {
$select_opt= $day_format;
}

View file

@ -33,9 +33,6 @@ and open the template in the editor.
<page_group name="sccp_general">
<label>SCCP Server config</label>
<item type="DS" id="1"><label>Display</label>
<help>Help.</help>
</item>
<item type="IE" id="2"><label>SCCP Server Name</label>
<input>
<name>servername</name>
@ -264,7 +261,7 @@ and open the template in the editor.
<default>pool.ntp.org</default>
<value>pool.ntp.org</value>
</input>
<help>Help.</help>
<help>NTP Server name or IP </help>
</item>
<item type="IS" id="3" seq="10"><name>ntp_server_mode</name> <label>Call Answer Order</label>
<default>unicast</default>
@ -272,7 +269,7 @@ and open the template in the editor.
<button value="broadcast">Broadcast</button>
<button value="multicast">Multicast</button>
<button value="manycast">Manycast</button>
<help>.</help>
<help>Configure NTP Server protocol time syncronization</help>
</item>
</page_group>
@ -289,7 +286,7 @@ and open the template in the editor.
<select>
<default>UTC</default>
</select>
<help></help>
<help>Date Format: Time zone</help>
</item>
</page_group>
@ -303,7 +300,7 @@ and open the template in the editor.
<options placeholder="http://x.x.x.x/cisco_menu/authentication.php"></options>
</input>
<help>Help.</help>
<help></help>
</item>
<item type="IE" id="2" seq="10"><label>Phone authentication URL</label>
<input>
@ -312,7 +309,7 @@ and open the template in the editor.
<default></default>
<value></value>
</input>
<help>Help.</help>
<help> 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)</help>
</item>
<item type="IE" id="3" seq="10"><label>Phone Idle information URL</label>
<input>
@ -321,7 +318,7 @@ and open the template in the editor.
<default></default>
<value></value>
</input>
<help>Help.</help>
<help>URL of CiscoIPPhoneImage. Requires a non-zero setting in idleTimeout.</help>
</item>
<item type="IE" id="4" seq="10"><label>Phone information URL</label>
<input>
@ -329,7 +326,7 @@ and open the template in the editor.
<options placeholder="http://x.x.x.x/cisco_menu/authentication.php"></options>
<default></default>
</input>
<help>Help.</help>
<help></help>
</item>
<item type="IE" id="5" seq="10"><label>Phone messages URL</label>
<input>
@ -337,7 +334,7 @@ and open the template in the editor.
<options placeholder="http://x.x.x.x/cisco_menu/authentication.php"></options>
<default></default>
</input>
<help>Help.</help>
<help></help>
</item>
<item type="IE" id="6" seq="10"><label>Phone directory service URL</label>
<input>
@ -345,7 +342,7 @@ and open the template in the editor.
<options placeholder="http://x.x.x.x/cisco_menu/authentication.php"></options>
<default></default>
</input>
<help>Help.</help>
<help>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)</help>
</item>
<item type="IE" id="7" seq="10"><label>Phone proxyServer URL</label>
<input>
@ -354,7 +351,7 @@ and open the template in the editor.
<default></default>
<value></value>
</input>
<help>Help.</help>
<help></help>
</item>
<item type="IE" id="8" seq="10"><label>Phone Idle Timeout</label>
@ -365,7 +362,7 @@ and open the template in the editor.
<type>number</type>
<options min="0" max="3600"></options>
</input>
<help>Help.</help>
<help></help>
</item>
</page_group>
@ -460,7 +457,7 @@ and open the template in the editor.
<default>no</default>
<button value="yes">Enabled</button>
<button value="no">Disabled</button>
<help>Help.</help>
<help>Enables and disables auto line selection.</help>
</item>
<item type="IS-disabled" id="8" seq="0"><name>meetme</name> <label>Meetme Conference</label>
<default>no</default>
@ -483,7 +480,7 @@ and open the template in the editor.
<default>no</default>
<button value="yes">Enabled</button>
<button value="no">Disabled</button>
<help>Help.</help>
<help></help>
</item>
<item type="IS" id="11" seq="98"><name>backgroundImageAccess</name> <label>Background Image</label>
<default>no</default>
@ -500,7 +497,7 @@ and open the template in the editor.
<default>/tftpboot</default>
<class>sccp-custom</class>
</input>
<help>Help.</help>
<help>Path to tftp home directory</help>
</item>
<item type="SL" id="2"><label>SCCP SERVER MySQL Device Table Name</label>
<name>devicetable</name>
@ -525,7 +522,7 @@ and open the template in the editor.
<default>no</default>
<button value="yes">Yes</button>
<button value="no">No</button>
<help>Help.</help>
<help>Say "yes" if you need to create cisco default language directory in tftp path.</help>
</item>
</page_group>
@ -606,7 +603,7 @@ and open the template in the editor.
<name>softkeyset</name>
<default>default</default>
<select></select>
<help>Help.</help>
<help>System default softkey</help>
</item>
<item type="SLZ" id="3" seq="98"><label>Time Zone offset</label>
<name>tzoffset</name>
@ -651,7 +648,7 @@ and open the template in the editor.
<default>000000000</default>
<class>sccp-custom</class>
</input>
<help>Help.</help>
<help></help>
</item>
</page_group>