Segue abaixo um exemplo de configuração para VOIP habilitando as duas FXS:


PARA ONUS MODELO REV1

conf t

!

voice-port 1

caller-id enable

 no shutdown

!

voice-port 2

 caller-id enable

 no shutdown

!

dial-peer voice 1 voip

 destination-pattern T

 dtmf-relay rtp-nte

 codec g711alaw

 timeouts ringing 30

 session protocol sipv2

 session target sip-server

 no shutdown

!

dial-peer voice 2 pots

 authentication username 930 password 123456

 destination user-id 930

 destination-pattern 930

 port 1

 timeouts ringing 30

 no shutdown

!

dial-peer voice 4 pots

 authentication username 931 password 123456

 destination user-id 931

 destination-pattern 931

 port 2

 timeouts ringing 30

 no shutdown

!

sip-ua

 ip gateway 172.29.15.254                  -> (Atribuir IP Do Gateway da Rede de Voz caso seja IP Fixo)

 registrar ipv4:177.22.82.3 expires 60   -> (Trocar o IP pelo IP do SIP SERVER)

 sip-server ipv4:177.22.82.3                 -> (Trocar o IP pelo IP do SIP SERVER)

!

end

copy r s

!




PARA ONUS MODELO REV2 E REV3

conf t

!

sip-ua

 dtmf-relay rtp-nte

 registrar ipv4:192.168.200.240 expires 60

 sip-server ipv4:192.168.200.240

!

voice-port 0/0/0

 echo-cancel

 no shutdown

!

voice-port 0/0/1

 echo-cancel

 no shutdown

!

dial-peer voice 1 pots

 authentication username 930 password 123456

 destination-pattern 930

 port 0/0/0

 no shutdown

!

dial-peer voice 2 voip

 authentication username 930 password 123456

 codec g711alaw

 destination-pattern T

 session target sip-server

 no shutdown

!

dial-peer voice 3 pots

 authentication username 920 password 123456

 destination-pattern 920

 port 0/0/1

 no shutdown

!

dial-peer voice 4 voip

 authentication username 920 password 123456

 codec g711alaw

 destination-pattern T

 session target sip-server

 no shutdown

!

end

copy r s