-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# genconf | ||
|
||
Generate config for Grandstream and Yealink | ||
|
||
Это не автопровижининг, это просто генератор конфигураций. | ||
|
||
Основная поддержка направлена на телефоны Yealink, Grandstream'ы поддерживаются постольку-поскольку. | ||
|
||
## Установка и преднастройка | ||
|
||
1. Скопировать каталог `genconf` в корень веб-директории. | ||
|
||
2. В `blocks/bd.php` настроить подключение к БД asterisk: заменить пользователя `asteriskuser` на своего и на соответствующий ему пароль. | ||
|
||
3. В `blocks/values.php` заменить данные на свои. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
$db = mysql_connect("localhost","asteriskuser","+ltyd9IpCIDMyZ3Bs"); | ||
$db = mysql_connect("localhost","asteriskuser","asteriskpass"); | ||
mysql_select_db("asterisk",$db); | ||
mysql_query("set names utf8",$db); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
<?php | ||
//Глобальные параметры | ||
$exten = 1955; | ||
//Настройки для офиса | ||
$sip_serv_office = '192.168.55.250'; | ||
$ntp_serv_office = 'ntp3.vniiftri.ru'; | ||
//Настройки для VPN | ||
$sip_serv_magazin = '192.168.100.250'; | ||
$ntp_serv_magazin = 'ntp3.vniiftri.ru'; | ||
$sip_serv_overnat = '85.192.100.250'; | ||
// Настройки при подключении за NAT | ||
$sip_serv_overnat = '85.192.*.250'; | ||
$ntp_serv_overnat = 'ntp3.vniiftri.ru'; | ||
//Каталог конфигов | ||
//Каталог конфигов (веб-каталог) | ||
$filepath = "/var/www/localhost/htdocs/pbx/"; | ||
//Каталог TFTP | ||
$tftp_path = "/tftpboot/"; | ||
//Пароли админа и юзера | ||
$device_admpass = "59ajBXPh"; | ||
$device_userpass = "wosOe5I7"; | ||
?> | ||
?> |