bandr Posted January 11, 2007 Posted January 11, 2007 Есть два девайса AP1005 (4FXO) + AP1002 (2FXS/2FX0). Со стороны 1005 АТС (6/16), со стороны 1002 - две линии городских прямо в него, и два внутренних телефона. Связку переброски звонков с 1005 (два внутренних номера) на 1002 и выход с 1002 на внутренние номера 1005 настроили проверили - отлично. Вопрос в переброске звонков с внутр. тел. со стороны 1005 на два внеш.номера 1002-го и выход вн. тел. подкл. к 1002 через префикс на внеш.линии. Если у кого есть готовые конфиги скиньте плиз. Привожу свои конфиги: 1005: ! version 8.234 ! hostname AP1005 ! ! 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 192.168.0.11 255.255.255.0 ! interface ether0.1 no ip address ! interface ether1.0 no ip address line-ctrl promiscuous shutdown bridge ! snmp name AP200D ! no arp reset ! route 0.0.0.0 0.0.0.0 192.168.0.1 ! ! ! ! ! ! VoIP configuration. ! ! ! Voice service voip configuration. ! voice service voip fax protocol t38 redundancy 0 fax rate 9600 h323 call start fast announcement language english ! ! ! Voice port configuration. ! voice-port 0/0 ! FXO sklad 1 kht connection plar 21 ring detect-timeout 70 forced-clear-down -55 60 ! ! voice-port 0/1 ! FXO sklad 2 kht connection plar 22 ring detect-timeout 70 forced-clear-down -55 60 ! ! voice-port 0/2 ! FXO shop kht connection plar 25 ring detect-timeout 70 forced-clear-down -55 60 ! ! ! ! ! Pots peer configuration. ! dial-peer voice 1 pots destination-pattern 21 port 0/0 ! dial-peer voice 2 pots destination-pattern 22 port 0/1 ! dial-peer voice 3 pots destination-pattern 25 port 0/2 ! ! ! ! Voip peer configuration. ! dial-peer voice 100 voip destination-pattern 21 session target 192.168.3.3 voice-class codec 4 dtmf-relay h245-alphanumeric ! dial-peer voice 200 voip destination-pattern 22 session target 192.168.3.3 voice-class codec 4 dtmf-relay h245-alphanumeric ! dial-peer voice 300 voip destination-pattern 25 session target 192.168.2.3 voice-class codec 4 dtmf-relay h245-alphanumeric ! ! ! dial-peer call-hold h dial-peer call-transfer h ! ! ! ! Gateway configuration. ! gateway h323-id voip.192.168.0.11 public-ip 192.168.0.11 ! ! ! Codec classes configuration. ! voice class codec 1 codec preference 1 g711alaw codec preference 2 g711ulaw ! voice class codec 2 codec preference 1 g726r32 ! voice class codec 3 codec preference 1 g726r16 ! voice class codec 4 codec preference 1 g729 ! voice class codec 5 codec preference 1 g7231r63 ! voice class codec 6 codec preference 1 g7231r53 ! ! ! ! SIP UA configuration. ! sip-ua ! ! ! MGCP configuration. ! mgcp epid-type codec g711ulaw ! ! ! Tones ! ! voip-interface ether0.0 ! ------------------------------------------------------ 1002 в тек. конфигурации: ! version 8.234 ! hostname AP1002 ! 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 192.168.3.3 255.255.255.0 line-ctrl promiscuous bridge ! interface ether1.0 no ip address line-ctrl promiscuous bridge ! snmp name AP200B ! no arp reset ! route 0.0.0.0 0.0.0.0 192.168.3.1 ! ! ! ! ! ! VoIP configuration. ! ! ! Voice service voip configuration. ! voice service voip fax protocol t38 redundancy 0 fax rate 9600 h323 call start fast announcement language english no busyout monitor gatekeeper no busyout monitor voip-interface ! ! ! Voice port configuration. ! voice-port 0/0 ! FXS connection plar 21 ! ! voice-port 0/1 ! FXS connection plar 22 ! ! ! ! ! Pots peer configuration. ! dial-peer voice 1 pots destination-pattern 21 port 0/0 ! dial-peer voice 2 pots destination-pattern 22 port 0/1 ! ! ! ! Voip peer configuration. ! dial-peer voice 100 voip destination-pattern 21 session target 192.168.0.11 voice-class codec 4 dtmf-relay h245-alphanumeric ! dial-peer voice 200 voip destination-pattern 22 session target 192.168.0.11 voice-class codec 4 dtmf-relay h245-alphanumeric ! ! ! dial-peer call-hold h dial-peer call-transfer h ! ! ! ! Gateway configuration. ! gateway h323-id voip.192.168.3.3 public-ip 192.168.3.3 ! ! ! Codec classes configuration. ! voice class codec 1 codec preference 1 g711alaw codec preference 2 g711ulaw ! voice class codec 2 codec preference 1 g726r32 ! voice class codec 3 codec preference 1 g726r16 ! voice class codec 4 codec preference 1 g729 ! voice class codec 5 codec preference 1 g7231r63 ! voice class codec 6 codec preference 1 g7231r53 ! ! ! ! SIP UA configuration. ! sip-ua ! ! ! MGCP configuration. ! mgcp epid-type codec g711ulaw ! ! ! Tones ! ! voip-interface ether0.0 ! Заранее спасибо за помощь! Вставить ник Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.