Compare commits
62 Commits
master
...
feature/re
Author | SHA1 | Date | |
---|---|---|---|
|
d60e25d120 | ||
|
3d1121f2fb | ||
|
bc1b251248 | ||
|
4559c3fa16 | ||
|
729dccb7f8 | ||
|
5064cb3e36 | ||
|
fcf7e52370 | ||
|
3e9f731e9a | ||
|
c535113c55 | ||
|
3621e1d6e6 | ||
|
822e2e5f90 | ||
|
fcd767d290 | ||
|
7d582df212 | ||
|
3151f30a78 | ||
|
a36f459be2 | ||
|
4d0eab9693 | ||
|
3d213e6571 | ||
|
e3cea2d17c | ||
|
4f0043117a | ||
|
5134349828 | ||
|
745676bf53 | ||
|
c46dd2f134 | ||
|
7aa4524b19 | ||
|
a4ebaee776 | ||
|
2c54cf0664 | ||
|
c06cac4653 | ||
|
c150f5d4c5 | ||
|
67bf5bdca5 | ||
|
ad70913459 | ||
|
d4562e3683 | ||
|
22ae9c5ad1 | ||
|
873ab55f08 | ||
|
2c86ea62e7 | ||
|
37f9c253dd | ||
|
6ef72cda50 | ||
|
b2708e4611 | ||
|
f7924b0a94 | ||
|
1af07a905e | ||
|
6dae0556b2 | ||
|
3a4286628e | ||
|
f3e5211ed5 | ||
|
0ce2a149fc | ||
|
41516a5fc9 | ||
|
f28a90511b | ||
|
70e99148f2 | ||
|
cc3ee10aaa | ||
|
8950fb92f8 | ||
|
8ea03118c6 | ||
|
5fc7beb627 | ||
|
972beaf34b | ||
|
1f75a1dc97 | ||
|
ff7d44ce5d | ||
|
36c5b036f7 | ||
|
d039261022 | ||
|
00b1241dfc | ||
|
fcf0495a38 | ||
|
b8903f761a | ||
|
ad87422c60 | ||
|
caa3827bc6 | ||
|
31c5a69460 | ||
|
2d7f939949 | ||
|
7c03e38fec |
0
.cache/.gitkeep
Normal file
0
.cache/.gitkeep
Normal file
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
tests/ export-ignore
|
13
.gitignore
vendored
13
.gitignore
vendored
@@ -2,6 +2,17 @@
|
|||||||
env/
|
env/
|
||||||
*~
|
*~
|
||||||
*.bak
|
*.bak
|
||||||
|
*.enc
|
||||||
|
*.sgn
|
||||||
|
.requirements_satisfied
|
||||||
etc/nginx/site-available/nginx.rules
|
etc/nginx/site-available/nginx.rules
|
||||||
etc/tftpd-hpa/tftpd.rules
|
etc/tftpd-hpa/tftpd.rules
|
||||||
.requirements_satisfied
|
etc/certs/*.pem
|
||||||
|
data/settings/*.cnf.xml
|
||||||
|
data/settings/*.tlv
|
||||||
|
data/settings/authorized_keys
|
||||||
|
data/settings/*.jar
|
||||||
|
data/settings/*.json
|
||||||
|
vendor/
|
||||||
|
bak/
|
||||||
|
build/
|
||||||
|
25
Makefile
25
Makefile
@@ -1,25 +0,0 @@
|
|||||||
SHELL := /usr/bin/env bash
|
|
||||||
PIP := /usr/bin/env pip
|
|
||||||
PYTHON := /usr/bin/env python
|
|
||||||
|
|
||||||
.PHONY: bootstrap clean
|
|
||||||
.DEFAULT_GOAL := all
|
|
||||||
|
|
||||||
all:
|
|
||||||
|
|
||||||
bootstrap: .requirements_satisfied tools/generate.py
|
|
||||||
@echo "running generate"
|
|
||||||
@$(PYTHON) tools/generate.py
|
|
||||||
|
|
||||||
.requirements_satisfied: tools/requirements.txt
|
|
||||||
@echo "checking requirements"
|
|
||||||
@$(PIP) install --user -r tools/requirements.txt
|
|
||||||
@touch $@
|
|
||||||
|
|
||||||
clean:
|
|
||||||
@find . -type f -name '*.pyc' -delete
|
|
||||||
@find . -type f -name '*~' -delete
|
|
||||||
@find . -type f -name '*.bak' -delete
|
|
||||||
@find . -type f -name '.requirements_satisfied' -delete
|
|
||||||
# @find . -type f -name 'etc/tftpd-hpa/rewrite.rules' -delete
|
|
||||||
# @find . -type f -name 'etc/nginx/site-available/tftpboot' -delete
|
|
@@ -10,6 +10,11 @@ The project also serves as a repository of current / up to date cisco skinny/scc
|
|||||||
- [tftp-hpa](http://www.chschneider.eu/linux/server/tftpd-hpa.shtml)
|
- [tftp-hpa](http://www.chschneider.eu/linux/server/tftpd-hpa.shtml)
|
||||||
- [nginx](https://www.nginx.com/resources/wiki/)
|
- [nginx](https://www.nginx.com/resources/wiki/)
|
||||||
|
|
||||||
|
## PHP Dependencies
|
||||||
|
- php >= 7.x
|
||||||
|
- php-cli
|
||||||
|
- php-xml
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
- Clone the repository
|
- Clone the repository
|
||||||
- Move the tftpboot directory (depends on your operating system):
|
- Move the tftpboot directory (depends on your operating system):
|
||||||
|
36
build.xml
Normal file
36
build.xml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!-- phing build file -->
|
||||||
|
<project
|
||||||
|
name="provision_sccp"
|
||||||
|
default="build"
|
||||||
|
basedir="."
|
||||||
|
description="SCCP/Skinny Provisioner">
|
||||||
|
|
||||||
|
<target name="install">
|
||||||
|
<exec command="./composer.phar install" checkreturn="true" passthru="true"/>
|
||||||
|
<exec command="./composer.phar update" checkreturn="true" passthru="true"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean">
|
||||||
|
<delete dir="build"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="prepare">
|
||||||
|
<mkdir dir="build" mode="0755"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="fixstyle">
|
||||||
|
<exec command="phpcbf --tab-width=4 --standard=PSR2 src test"
|
||||||
|
checkreturn="true"
|
||||||
|
passthru="false"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="test">
|
||||||
|
<exec command="vendor/phpunit/phpunit/phpunit -v --debug tests"
|
||||||
|
checkreturn="true"
|
||||||
|
passthru="true"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="build" depends="clean, prepare, test"/>
|
||||||
|
|
||||||
|
</project>
|
46
composer.json
Normal file
46
composer.json
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"name": "chan-sccp/provisioner",
|
||||||
|
"type": "library",
|
||||||
|
"description": "SCCP/Skinny Provisioner",
|
||||||
|
"keywords": ["sccp","skinny","sip","cisco","tftp","http","chan-sccp"],
|
||||||
|
"homepage": "http://github.com/dkgroot/provision_sccp",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Diederik de Groot",
|
||||||
|
"email": "ddegroot@talon.nl",
|
||||||
|
"homepage": "http://github.com/chan-sccp/",
|
||||||
|
"role": "Developer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Marcello Ceschia",
|
||||||
|
"email": "marcello@ceschia.de",
|
||||||
|
"homepage": "https://github.com/marcelloceschia/",
|
||||||
|
"role": "Developer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/dkgroot/provision_sccp/issues",
|
||||||
|
"wiki": "https://github.com/dkgroot/provision_sccp/wiki",
|
||||||
|
"source": "https://github.com/dkgroot/provision_sccp"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"PROVISION\\": "lib/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.6.0",
|
||||||
|
"psr/log": ">= 1.0.0",
|
||||||
|
"myclabs/php-enum": ">= 1.7.6"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phing/phing": "*",
|
||||||
|
"phpunit/phpunit": "*",
|
||||||
|
"codeclimate/php-test-reporter": "*",
|
||||||
|
"php-coveralls/php-coveralls": "*",
|
||||||
|
"phpmd/phpmd": ">=2.5.0",
|
||||||
|
"squizlabs/php_codesniffer": ">=3.4.0",
|
||||||
|
"sebastian/phpcpd": "*"
|
||||||
|
}
|
||||||
|
}
|
67
config.ini
Normal file
67
config.ini
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
[main]
|
||||||
|
debug = TRUE ; The output in the browser window for more information
|
||||||
|
cache_filename = "/tmp/provision_sccp_resolver.cache"
|
||||||
|
default_language = English_United_States
|
||||||
|
log_type = SYSLOG ; SYSLOG|STDERR|STDOUT|NULL|FILE
|
||||||
|
log_level = LOG_INFO ; LOG_EMERG|LOG_ALERT|LOG_CRIT|LOG_ERR|LOG_WARNING|LOG_NOTICE|LOG_INFO|LOG_DEBUG
|
||||||
|
;log_filename = provision.log ; only in case of log_type = FILE
|
||||||
|
auto_generate_settings = FALSE
|
||||||
|
auto_sign = FALSE
|
||||||
|
auto_encrypt = FALSE
|
||||||
|
localnet = 192.168.178.0/24
|
||||||
|
|
||||||
|
[config]
|
||||||
|
file = /etc/asterisk/sccp.conf
|
||||||
|
database = asterisk
|
||||||
|
database_driver = postgres
|
||||||
|
|
||||||
|
[security]
|
||||||
|
cert_ca = NULL
|
||||||
|
cert_priv = NULL
|
||||||
|
cert_pub = NULL
|
||||||
|
hash = NULL
|
||||||
|
|
||||||
|
;[subdirs]
|
||||||
|
;tftproot = data
|
||||||
|
;firmware = firmware
|
||||||
|
;settings = settings
|
||||||
|
;wallpapers = wallpapers
|
||||||
|
;ringtones = ringtones
|
||||||
|
;locales = locales
|
||||||
|
;countries = countries
|
||||||
|
;languages = languages
|
||||||
|
|
||||||
|
[settings]
|
||||||
|
sshUserId = cisco
|
||||||
|
sshPassword = cisco
|
||||||
|
ipAddress = ipv4|ipv6 ; ipv4 | ipv4 | ipv4|ipv6 | ipv6|ipv4
|
||||||
|
datetime.template = M/D/YA
|
||||||
|
datetime.timezone = W. Europe Standard/Daylight Time
|
||||||
|
datetime.ipaddress = 10.x.x.x
|
||||||
|
datetime.mode = Unicast
|
||||||
|
members.myhost.hostname = myhost.domain.com
|
||||||
|
members.myhost.ipv4 = 10.x.x.x
|
||||||
|
members.myhost.ipv6 = 2001:470::x:x
|
||||||
|
members.myhost.port = 2000
|
||||||
|
;srts.
|
||||||
|
;common.
|
||||||
|
;vendor.
|
||||||
|
locale.country = United_States
|
||||||
|
locale.language = English_United_States
|
||||||
|
locale.langcode = en_US
|
||||||
|
locale.charset = utf-8
|
||||||
|
urls.security = FALSE
|
||||||
|
urls.information = NULL
|
||||||
|
urls.authentication = NULL
|
||||||
|
urls.services = NULL
|
||||||
|
urls.direcory = NULL
|
||||||
|
urls.messages = NULL
|
||||||
|
urls.proxyserver = NULL
|
||||||
|
;vpn.
|
||||||
|
;phoneservices.
|
||||||
|
|
||||||
|
[SEP001122334455]
|
||||||
|
locale.country = Netherlands
|
||||||
|
locale.language = Dutch Netherlands
|
||||||
|
locale.langcode = nl_NL
|
||||||
|
locale.charset = utf-8
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user