visto che ero fermo, ho tentato di autenticare via dial-peer e non via sip-ua per vedere come reagisce.
Ricordo che questo potrebbe servire nel caso vogliamo avere 1 autenticazione diversa per ogni interfacia... spero
Per adesso sono arrivato ad autenticare via dial-peer ma non funziona comunque il telefono ... da ocupate se provo a chiamare.
Codice: Seleziona tutto
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname routervoip
!
boot-start-marker
boot system flash c1700-sv8y7-mz.123-11.T7.bin
boot-end-marker
!
no logging console
enable secret 5 $1$P/zt$xxx
enable password xxx
!
memory-size iomem 15
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
voice-card 2
!
aaa new-model
!
!
aaa authentication login h323 group radius
aaa authorization exec h323 group radius
aaa accounting connection h323 start-stop group radius
aaa session-id common
ip subnet-zero
!
!
!
!
ip cef
ip name-server 195.110.128.1
ip name-server 212.48.4.11
!
!
voice call carrier capacity active
!
voice service pots
!
voice service voip
!
!
voice class codec 1
codec preference 1 g729r8
codec preference 2 g711ulaw
codec preference 5 g726r16
codec preference 6 g726r24
codec preference 7 g726r32
codec preference 8 g723ar53
codec preference 9 g723ar63
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.0.200 255.255.255.0
ip access-group 101 out
speed auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.0.1
ip http server
!
ip nat service sip udp port 5061
!
!
access-list 101 permit ip any any
!
!
control-plane
!
!
voice-port 2/0
echo-cancel coverage 32
no vad
cptone IT
timeouts interdigit 3
bearer-cap Speech
station-id name 5308xxx ! il numero interno di messagenet
station-id number 5308xxx
caller-id enable
!
voice-port 2/1
!
!
!
!
dial-peer cor custom
!
!
!
dial-peer voice 1 pots
application session
destination-pattern 5308xxx
port 2/0
authentication username 5308xxx password xxxxxxx realm sip.messagenet.it
!
dial-peer voice 11 voip
application session
destination-pattern 5308xxx
session protocol sipv2
session target dns:sip.messagenet.it:5061
incoming called-number 5308xxx
!
sip-ua
retry invite 4
retry response 3
retry bye 2
retry cancel 2
registrar dns:sip.messagenet.it:5061 expires 3600
sip-server dns:sip.messagenet.it:5061
!
!
line con 0
exec-timeout 0 0
password xxx
line aux 0
line vty 0 4
exec-timeout 0 0
password xxx
!
sntp server 193.204.114.232
end
Come dicevo per adesso se chiamo da ocupato appena dopo aver fato il numero di tel.
L'output del commando:
Codice: Seleziona tutto
routervoip#sh sip-ua register status
Line peer expires(sec) registered
============ ============= ============ ===========
5308xxx 1 2008 yes
Se qualcuno vuole smanetarci, che ben venga.
Denis