Telephoniya — различия между версиями
Admin (обсуждение | вклад) |
Admin (обсуждение | вклад) |
||
Строка 53: | Строка 53: | ||
=== Удалить адрес из Бан листа === | === Удалить адрес из Бан листа === | ||
ipfw table 20 delete 77.73.26.110 | ipfw table 20 delete 77.73.26.110 | ||
+ | |||
+ | == Addpac AP200 == | ||
+ | === Пример конфига === | ||
+ | AP200# sh run | ||
+ | ! | ||
+ | version 8.238 | ||
+ | ! | ||
+ | hostname AP200 | ||
+ | ! | ||
+ | dhcp-list 0 type server | ||
+ | dhcp-list 0 address server 192.168.10.2 192.168.10.10 255.255.255.224 | ||
+ | dhcp-list 0 option dhcp-lease-time 600 | ||
+ | ! | ||
+ | dhcp-list 1 type server | ||
+ | dhcp-list 1 address server 10.1.1.2 10.1.1.126 255.255.255.128 | ||
+ | ! | ||
+ | ! | ||
+ | ip-share enable | ||
+ | ip-share interface net-side ether0.0 | ||
+ | ip-share interface local-side ether1.0 | ||
+ | ! | ||
+ | interface ether0.0 | ||
+ | ip address 10.1.2.108 255.255.255.248 | ||
+ | ! | ||
+ | interface ether1.0 | ||
+ | ip address 192.168.0.1 255.255.255.0 | ||
+ | ! | ||
+ | snmp name AP200B | ||
+ | ! | ||
+ | no arp reset | ||
+ | ! | ||
+ | route 0.0.0.0 0.0.0.0 10.1.2.105 | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! 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 | ||
+ | ! | ||
+ | ! | ||
+ | ! FXS | ||
+ | voice-port 0/1 | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! Pots peer configuration. | ||
+ | ! | ||
+ | dial-peer voice 2 pots | ||
+ | destination-pattern 4957880577 | ||
+ | port 0/0 | ||
+ | user-password YAWxLn3NM25 | ||
+ | ! | ||
+ | dial-peer voice 3 pots | ||
+ | destination-pattern 4957880577 | ||
+ | port 0/1 | ||
+ | user-password YAWxLn3NM25 | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! 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.10.1.2.108 | ||
+ | ! | ||
+ | ! | ||
+ | ! SIP UA configuration. | ||
+ | ! | ||
+ | sip-ua | ||
+ | sip-server 77.73.24.11 | ||
+ | register e164 | ||
+ | ! | ||
+ | ! | ||
+ | ! MGCP configuration. | ||
+ | ! | ||
+ | mgcp | ||
+ | codec g711ulaw | ||
+ | ! | ||
+ | ! | ||
+ | ! Tones | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | ! | ||
+ | AP200# |
Версия 07:10, 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 ! dhcp-list 0 type server dhcp-list 0 address server 192.168.10.2 192.168.10.10 255.255.255.224 dhcp-list 0 option dhcp-lease-time 600 ! dhcp-list 1 type server dhcp-list 1 address server 10.1.1.2 10.1.1.126 255.255.255.128 ! ! ip-share enable ip-share interface net-side ether0.0 ip-share interface local-side ether1.0 ! interface ether0.0 ip address 10.1.2.108 255.255.255.248 ! interface ether1.0 ip address 192.168.0.1 255.255.255.0 ! snmp name AP200B ! no arp reset ! route 0.0.0.0 0.0.0.0 10.1.2.105 ! ! ! ! ! ! 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 ! ! ! FXS voice-port 0/1 ! ! ! ! ! Pots peer configuration. ! dial-peer voice 2 pots destination-pattern 4957880577 port 0/0 user-password YAWxLn3NM25 ! dial-peer voice 3 pots destination-pattern 4957880577 port 0/1 user-password YAWxLn3NM25 ! ! ! ! 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.10.1.2.108 ! ! ! SIP UA configuration. ! sip-ua sip-server 77.73.24.11 register e164 ! ! ! MGCP configuration. ! mgcp codec g711ulaw ! ! ! Tones ! ! ! ! AP200#