Настройка связки ADDPAC AP200B <=> Asterisk
ADDPAC AP200B представляет собой недорогой голосовой шлюз с двумя FXS портами. У меня настроен только один FXS порт. В FreePBX создадим SIP extension для FXS с номером 777:
User Extension: 777
Dislpay Name: FXS
secret: fxs_password
Теперь прошиваем шлюз прошивкой с поддержкой SIP и настраиваем его. Прошивку, а также руководство пользователя можно взять на сайте addpac.su, здесь я эти функции описывать не буду. Дальше после конфигурирования и перезагрузки должно получиться следующее:
sh run
! version 8.237 ! hostname klyaznik ! no ip routing ! ! no bridge spanning-tree ! proxy-arp ! dhcp-list 1 type server dhcp-list 1 address server 10.1.1.2 10.1.1.126 255.255.255.128 ! ! no ip-share enable ip-share interface net-side ether0.0 ip-share interface local-side ether1.0 ! interface ether0.0 ip address 10.71.27.101 255.255.248.0 qos-control 4096 2000 line-ctrl promiscuous bridge ! interface ether1.0 no ip address line-ctrl promiscuous bridge ! snmp name klyaznik ! no arp reset ! route 0.0.0.0 0.0.0.0 10.71.27.254 ! utilization cpu utilization ethernet ! ntp offset -3:00 ntp server 89.222.212.2 ! dnshost domain spnet.ru dnshost nameserver 89.222.212.129 ! ! ! ! ! ! VoIP configuration. ! ! ! Voice service voip configuration. ! voice service voip fax protocol bypass fax rate 9600 h323 call start fast h323 call channel early h323 call tunnel enable timeout tidt 2 no busyout monitor gatekeeper no busyout monitor callagent no busyout monitor voip-interface ! ! ! ! Voice port configuration. ! ! FXS voice-port 0/0 description FXS caller-id enable ! ! ! FXS voice-port 0/1 description disabled shutdown ! ! ! ! ! Pots peer configuration. ! dial-peer voice 0 pots destination-pattern 777 port 0/0 user-password fxs_password ! ! ! ! Voip peer configuration. ! dial-peer voice 1 voip destination-pattern T session target sip-server session protocol sip codec g711alaw dtmf-relay rtp-2833 no vad description pbx.spnet.ru fax protocol bypass fax rate 9600 ! ! ! dial-peer ipaddr-prefix n ! ! ! ! ! ! Gateway configuration. ! gateway h323-id voip.10.71.27.101 ! ! ! SIP UA configuration. ! sip-ua user-register sip-server pbx.spnet.ru remote-party-id register e164 ! ! ! MGCP configuration. ! mgcp codec g711alaw ! ! ! ! ! Tones ! ! ! !