PARA ONUS MODELO REV1
conf t
!
codec group primary
!
voice-port 1
no shutdown
!
voice-port 2
no shutdown
!
dial-peer voice 1 voip
destination-pattern T
codec g711alaw
timeouts ringing 30
session protocol sipv2
session target ipv4:177.155.208.130
no shutdown
!
dial-peer voice 2 pots
authentication username 556632111915 password 8299819932
destination user-id 556632111915
destination-pattern 556632111915
port 1
timeouts ringing 30
no shutdown
!
dial-peer voice 3 pots
authentication username 2017 password 115514
destination user-id 2017
destination-pattern 2017
port 2
timeouts ringing 30
no shutdown
!
sip-ua
registrar ipv4:177.155.208.20 expires 60
registrar ipv4:177.155.208.130 expires 60 secondary
!
end
copy running-config startup-config
!
reload
y
PARA ONUS MODELO REV2, REV3
sip-ua
registrar dns:sip.provedor.com.br expires 180
sip-server dns:sip.provedor.com.br
voice-class codec 1
!
voice class codec 1
codec preference 0 g711alaw
!
voice service voip
!
voice-port 0/0/0
voip-context provedor
no shutdown
!
voice-port 0/0/1
voip-context condominio
no shutdown
!
dial-peer voice 1 voip
authentication username 32052100 password encrypt c0o5IRJ76SOVRa68
context provedor
destination-pattern T
session target sip-server
voice-class codec 1
no shutdown
!
dial-peer voice 2 voip
authentication username 201 password encrypt 8FRN/ZXg+0rwWEcr
context condominio
destination-pattern T
session target dns:sip.condominio.com.br
voice-class codec 1
no shutdown
!
dial-peer voice 3 pots
authentication username 32052100 password encrypt sOaEmLKBeFdi1qbg
destination-pattern 32052100
port 0/0/0
voice-class codec 1
no shutdown
!
dial-peer voice 4 pots
authentication username 201 password encrypt u2ZP0OBxt0npsZf3
destination-pattern 201
port 0/0/1
registrar dns:sip.condominio.com.br expires 240
voice-class codec 1
no shutdown
!
Se desejar pode selecionar o ip do sip server dentro do pots conforme exemplo:
dial-peer voice 100 voip
description LOCAL
destination-pattern [2-3]...T
no from-domain
session target ipv4:192.168.1.100
timeouts ringing 90
voice-class codec 1
no shutdown
!