Addpac AP200DЦена: 11374 руб.
Рассмотрим настройку FXO-портов для шлюзы Addpac на примере AP200 (2 x FXO). По умолчанию AP200 получает адрес по DHCP на порт LAN0. Все настройки производятся в командной строке по TELNET.
Логин - root, пароль - router.
Для начала нужно установить статический IP-адрес
AP200 # conf t Enter configuration commands, one per line. End with CNTL/Z AP200 (config)# interface ether0.0 AP200 (config-ether0.0)# ip address 192.168.0.150 255.255.255.0 AP200 (config-ether0.0)ex
После этого необходимо создать на 3CX аналоговый шлюз.

После этого настраиваем SIP-сервер. 192.168.0.3 - адрес сервера 3CX.
AP200 (config)#sip-ua AP200 (config-sip-ua)#user-register AP200 (config-sip-ua)#sip-server 192.168.0.3 AP200 (config-sip-ua)#remote-party-id AP200 (config-sip-ua)#register e164
Настроим порт FXO 0/1. 10052 - ID шлюза заданный на 3CX.
AP200 (config)#voice-port 0/1 AP200 (config-voice-port-0/1)#connection plar 10052 AP200 (config-voice-port-0/1)#ring detect-timeout 70 AP200 (config-voice-port-0/1)#no caller-id enable
Теперь нужно сконфигурировать маршрутизацию исходящих вызовов.
AP200 (config)#dial-peer voice 10 pots AP200 (config-dialpeer-pots-10)#destination-pattern T (Т значит что маршрутизируются вызовы с любыми номерами) AP200 (config-dialpeer-pots-10)#port 0/1 (это порт FXO0/1) AP200 (config-dialpeer-pots-10)#user-name 10052 (ID - заданный на 3CX) AP200 (config-dialpeer-pots-10)#user-password 10052 (пароль заданный на 3CX)
И входящих, но сначала нужно задать список кодеков.
AP200 (config)#voice class codec 1 AP200 (config-vclass-codec#1)#codec preference 1 g711ulaw AP200 (config-vclass-codec#1)#codec preference 2 g711alaw AP200 (config-vclass-codec#1)#codec preference 3 g7231r53
Теперь маршрут для входящих вызовов.
AP200 (config)#dial-peer voice 101 voip AP200 (config-dialpeer-voip-101)#destination-pattern T AP200 (config-dialpeer-voip-101)#session target sip-server (все звонки идут на ip-адрес 3CX, мы его указали выше) AP200 (config-dialpeer-voip-101)#session protocol sip AP200 (config-dialpeer-voip-101)#voice-class codec 1 AP200 (config-dialpeer-voip-101)#no vad AP200 (config-dialpeer-voip-101)#no dtmf-relay
Добавялем параметры для приема факсов на 3CX Fax Service.
AP200 (config)#voice service voip AP200 (config-vservice-voip)#fax protocol t38 redundancy 0 AP200 (config-vservice-voip)#fax rate 9600
Проверяем регистрацию шлюза.

В командной строке жмем CTRL+Z чтобы выйти из режима конфигурации, и записываем конфигурацию в startup config.
AP200 # wr Do you want to WRITE configuration ? [y|n] y Writing configuration....done AP200 #
Полный список настроек Addpac AP200 с 3CX
voice service voip
version 8.30U ! hostname AP200 ! ! no bridge spanning-tree ! dhcp-list 0 type server dhcp-list 0 address server interface ether0.0 dhcp-list 0 option dhcp-lease-time 600 ! ! ip-share enable ip-share interface net-side ether0.0 ip-share interface local-side ether1.0 ! interface ether0.0 ip address 192.168.0.150 255.255.255.0 ip stun-server 212.53.35.219 ! interface ether1.0 no ip address ip dhcp-group 0 ! snmp name AP200D ! no arp reset ! ! ! ! ! ! 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 announcement language english busyout monitor voip-interface ! ! ! Voice port configuration. ! ! FXO voice-port 0/0 ! ! ! FXO voice-port 0/1 connection plar 10052 ring detect-timeout 70 no caller-id enable ! ! ! ! ! Pots peer configuration. ! dial-peer voice 10 pots destination-pattern T port 0/1 user-name 10052 user-password 10052 ! ! ! ! Voip peer configuration. ! dial-peer voice 101 voip destination-pattern T session target sip-server session protocol sip voice-class codec 1 no vad no dtmf-relay ! ! ! dial-peer call-hold h ! ! ! ! Gateway configuration. ! gateway h323-id voip.192.168.1.34 no ignore-msg-from-other-gk ! ! ! Codec classes configuration. ! voice class codec 1 codec preference 1 g711ulaw codec preference 2 g711alaw codec preference 3 g7231r53 ! ! ! ! SIP UA configuration. ! sip-ua user-register sip-server 192.168.0.3 remote-party-id register e164 ! ! ! MGCP configuration. ! mgcp no codec vad ! ! ! Tones voice class clear-down-tone 0 350 460 250 250 ! ! ! ! ! AP200 #
|