IsaCab ha scritto:Ciao,
qualcosa della tua conf non mi quadra. Puoi ripostarla cercando di commentare il più possibile ?
Ciao Giulio
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
no logging buffered
enable password cba
!
aaa new-model
!
!####ACCOUNTING E AUTH PER SERVER RADIUS
!
aaa authentication login default local group radius
aaa authentication login h323 group radius
aaa authentication login con none
aaa authorization exec h323 group radius
aaa accounting connection h323 start-stop group radius
!
aaa session-id common
!
resource policy
!
memory-size iomem 15
mmi polling-interval 10
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
voice-card 1
!
voice-card 2
!
ip subnet-zero
ip cef
!
!
!
!
ip name-server 100.100.100.100
!
!
voice call send-alert
voice call disc-pi-off
voice call debug short-header
voice rtp send-recv
voice dsp release early
!
voice service voip
allow-connections sip to sip
fax protocol t38 ls-redundancy 2 hs-redundancy 2 fallback pass-through g711alaw
sip
registrar server expires max 600 min 60
!
!
!
voice class codec 1
codec preference 1 g729r8
codec preference 2 g729br8
codec preference 3 g711alaw
codec preference 4 g711ulaw
!
!
!
!
!
!
!
!
!
!
!
!
!
!#### TRANSLATION RULES PER USARE LA LINEA TELECOM DIGITANDO 9 DAVANTI AL NUMERO
translation-rule 1
Rule 0 ^999 999 ANY unknown
Rule 1 ^90 0 ANY unknown
Rule 2 ^93 3 ANY unknown
Rule 3 ^900 00 ANY unknown
!
gw-accounting aaa
acct-template callhistory-detail
!
!
!
!
!
interface ATM0/0
no ip address
shutdown
no atm ilmi-keepalive
dsl operating-mode auto
!
interface FastEthernet0/0
ip address 192.168.1.142 255.255.255.0
speed 100
full-duplex
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.2
!
!
no ip http server
no ip http secure-server
!
radius-server host 192.168.1.195 auth-port 1812 acct-port 1813
radius-server key SHAREDKEY
radius-server vsa send accounting
radius-server vsa send authentication
!
control-plane
!
!
!### PORTA 1/0 FXO. QUESTA PORTA è COLLEGATA ALLA LINEA ANALOGICA TELECOM
voice-port 1/0
ring number 2
input gain 14
echo-cancel coverage 32
cptone IT
timeouts interdigit 4
connection plar 021111111
!
voice-port 1/1
!
!### porta 1 FXS, PRIMO TELEFONO
voice-port 2/0
echo-cancel coverage 32
playout-delay mode fixed
cptone IT
timeouts initial 120
timeouts interdigit 3
timeouts call-disconnect 0
caller-id enable
!
!### PORTA 2 FXS, SECONDO TELEFONO
voice-port 2/1
echo-cancel coverage 32
playout-delay nominal 100
playout-delay mode fixed
cptone IT
timeouts initial 120
timeouts interdigit 3
timeouts call-disconnect 0
caller-id enable
!
ccm-manager music-on-hold
!
!
!
!
dial-peer cor custom
!
!
!#### CON QUESTO DIAL-PEER FACENDO UN QUALSIASI NUMERO SI ESCE SULL'ACCOUNT VOIP
dial-peer voice 1 voip
destination-pattern .T
voice-class codec 1
session protocol sipv2
session target sip-server
session transport udp
dtmf-relay rtp-nte
no vad
!
!#### DIAL-PEER CHE SERVE A FAR SQUILLARE IL PRIMO TELEFONO QUANDO VIENE CHIAMATO IL NUMERO VOIP
dial-peer voice 2 pots
description LINEA VOCE
destination-pattern 021111111
port 2/0
authentication username 021111111 password kjfbhgdfhgd
!
!#### DIAL-PEER PER USARE LA LINEA TELECOM ANTEPONENDO IL 9 DAVANTI IL NUMERO
dial-peer voice 11 pots
destination-pattern 9
translate-outgoing called 1
port 1/0
!
!#### DIAL-PEER 12 E 14 SERVONO A FAR SQUILLARE TUTTI E DUE GLI FXS QUANDO VIENE CHIAMATO IL NUMERO TELECOM (NON FUNZIONA)
dial-peer voice 12 pots
destination-pattern 023333333
port 2/0
!
dial-peer voice 14 pots
destination-pattern 023333333
port 2/1
!
sip-ua
authentication username 021111111 password argyhtrhrh
set pstn-cause 57 sip-status 486
retry invite 4
retry response 3
retry bye 2
retry cancel 2
registrar dns:voip.abcdef.it:5060 expires 3600
sip-server dns:voip.abcdef.it:5060
!
!
line con 0
line aux 0
commenti dopo ####