Telephoniya — различия между версиями
Admin (обсуждение | вклад) |
Admin (обсуждение | вклад) |
||
Строка 61: | Строка 61: | ||
! | ! | ||
hostname AP200 | hostname AP200 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
! | ! | ||
! | ! | ||
Строка 75: | Строка 68: | ||
! | ! | ||
interface ether0.0 | interface ether0.0 | ||
− | ip address | + | ip address 192.168.10.201 255.255.255.0 |
+ | description WAN | ||
! | ! | ||
interface ether1.0 | interface ether1.0 | ||
ip address 192.168.0.1 255.255.255.0 | ip address 192.168.0.1 255.255.255.0 | ||
+ | description LAN | ||
! | ! | ||
snmp name AP200B | snmp name AP200B | ||
Строка 84: | Строка 79: | ||
no arp reset | no arp reset | ||
! | ! | ||
− | route 0.0.0.0 0.0.0.0 | + | route 0.0.0.0 0.0.0.0 192.168.10.1 |
! | ! | ||
! | ! | ||
Строка 109: | Строка 104: | ||
! FXS | ! FXS | ||
voice-port 0/0 | voice-port 0/0 | ||
+ | caller-id enable | ||
! | ! | ||
! | ! | ||
! FXS | ! FXS | ||
voice-port 0/1 | voice-port 0/1 | ||
+ | caller-id enable | ||
! | ! | ||
! | ! | ||
Строка 120: | Строка 117: | ||
! | ! | ||
dial-peer voice 2 pots | dial-peer voice 2 pots | ||
− | destination-pattern | + | destination-pattern 7690 |
port 0/0 | port 0/0 | ||
− | user-password | + | user-password UWb7ImId3j |
! | ! | ||
dial-peer voice 3 pots | dial-peer voice 3 pots | ||
− | destination-pattern | + | destination-pattern 7691 |
port 0/1 | port 0/1 | ||
− | user-password | + | user-password UWb7ImId3j |
! | ! | ||
! | ! | ||
Строка 150: | Строка 147: | ||
! | ! | ||
gateway | gateway | ||
− | h323-id voip. | + | h323-id voip.192.168.10.201 |
! | ! | ||
! | ! | ||
Строка 172: | Строка 169: | ||
! | ! | ||
AP200# | AP200# | ||
+ | |||
=== Записать изменения в энергонезависимую память === | === Записать изменения в энергонезависимую память === | ||
write | write |
Версия 09:23, 22 декабря 2020
Audiocodes настройка
Сброс на заводские настройки
1. Все сетевые кабели (из портов LAN и WAN) должны быть отключены от шлюза. В противном случае сброса не произойдет. После отключения сетевых кабелей от шлюза нужно острым тонким предметом (Разогнутой скрепкой, булавкой, и т.д. ) зажать кнопку RST при выключенном питании на шлюзе. После этого нужно включить питание шлюза. Через 4-5 секунд после включения питания кнопку RST надо опустить.
2. После надо включить кабель от компьютера в LAN порт шлюза.
3. Далее вам необходимо либо присвоить вашему компьютеру статические настройки: Либо установить назначение IP адресов автоматически (по DHCP)
Через любой браузер зайдите по ссылке http://192.168.2.1
Полная инструкция по настройке Audiocodes 20x
Работа с телефонией, полезные мелочи
Присоединяемся по SSH
IP адрес сервера Asterisk: 77.73.24.11
Login: смотри Password Manager
Password: смотри Password Manager
Далее набрать:
su
Ввести пароль СуперАдминистратора: смотри Password Manager
Запустить оболочку:
mc
Свернуть/развернуть оболочку
Ctrl+o
Переходим в папку:
/etc/asterisk/
Основной рабочий файл с учётками пользователей: gp_users.conf
F4 - редактирование
F3 - просмотр
Генерация пароля MD5
echo-n "7744:asterisk:пароль" | md5
где 7744 - это короткий номер абонента (в место него может быть длинный номер типа 4951112233), пароль - берём из Password Manager путём его генерации средствами Password Manager
Посмотреть информацию о статусе номера
asterisk -rx 'sip show peer 7744'
Просмотр Бан листа
ipfw table 20 list
Удалить адрес из Бан листа
ipfw table 20 delete 77.73.26.110
Addpac AP200
Пример конфига
AP200# sh run ! version 8.238 ! hostname AP200 ! ! ip-share enable ip-share interface net-side ether0.0 ip-share interface local-side ether1.0 ! interface ether0.0 ip address 192.168.10.201 255.255.255.0 description WAN ! interface ether1.0 ip address 192.168.0.1 255.255.255.0 description LAN ! snmp name AP200B ! no arp reset ! route 0.0.0.0 0.0.0.0 192.168.10.1 ! ! ! ! ! ! VoIP configuration. ! ! ! Voice service voip configuration. ! voice service voip fax protocol t38 redundancy 0 fax rate 9600 h323 call start fast h323 call tunnel enable busyout monitor gatekeeper no busyout monitor callagent busyout monitor voip-interface ! ! ! Voice port configuration. ! ! FXS voice-port 0/0 caller-id enable ! ! ! FXS voice-port 0/1 caller-id enable ! ! ! ! ! Pots peer configuration. ! dial-peer voice 2 pots destination-pattern 7690 port 0/0 user-password UWb7ImId3j ! dial-peer voice 3 pots destination-pattern 7691 port 0/1 user-password UWb7ImId3j ! ! ! ! Voip peer configuration. ! dial-peer voice 1 voip destination-pattern .T session target sip-server session protocol sip codec g711alaw no dtmf-relay no vad fax protocol t38 redundancy 5 ! ! ! ! ! ! ! Gateway configuration. ! gateway h323-id voip.192.168.10.201 ! ! ! SIP UA configuration. ! sip-ua sip-server 77.73.24.11 register e164 ! ! ! MGCP configuration. ! mgcp codec g711ulaw ! ! ! Tones ! ! ! ! AP200#
Записать изменения в энергонезависимую память
write