Remotizzare telefoni.

Voice su IP

Moderatore: Federico.Lagni

Rispondi
lucaspag
Cisco fan
Messaggi: 47
Iscritto il: sab 28 mar , 2009 11:14 am

Buonasera ragazzi mi dareste una mano per remotizzare dei telefoni su due router 1751V con cme 4.1? Un router funziona con Eutelia Voip l'altro monta un vic FXO collegata a rete Telecom Italia. La mia esigenza è quella di passare le telefonate che arrivano su Eutelia verso l'altro router. Appena posso posto la configurazione, a presto. :D
lucaspag
Cisco fan
Messaggi: 47
Iscritto il: sab 28 mar , 2009 11:14 am

Router A Cisco 1751 V con cme 4.1 ed ecco la configurazione:


version 12.4
service timestamps debug datetime msec
service timestamps log uptime
service password-encryption
!
hostname Super4Mega-EuteliaVoip
!
boot-start-marker
boot-end-marker
!
enable password 7 030D5F0A
!
no aaa new-model
memory-size iomem 15
clock timezone CET 1
clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00
voice-card 2
!
ip cef
!
!
no ip dhcp use vrf connected
!
ip dhcp pool APPLE_AIRPORT
network 172.31.43.0 255.255.255.0
default-router 172.31.43.254
dns-server 151.99.125.1 151.99.0.100 8.8.8.8 8.8.4.4
!
ip dhcp pool iMac_G5
host 172.31.43.1 255.255.255.0
client-identifier 0100.1124.badb.2b
!
ip dhcp pool iMac_G4
host 172.31.43.2 255.255.255.0
client-identifier 0100.16cb.f294.a8
!
ip dhcp pool iBook_G4
host 172.31.43.3 255.255.255.0
client-identifier 0100.0a95.f532.d0
!
ip dhcp pool AirPort
host 172.31.43.252 255.255.255.0
client-identifier 0100.0d93.018f.79
!
ip dhcp pool AirPort
host 172.31.43.251 255.255.255.0
client-identifier 0100.1e52.f5f9.35
!
ip dhcp pool AirPort
host 172.31.43.253 255.255.255.0
client-identifier 0100.0393.e562.8f
!
ip dhcp pool AppleTV
host 172.31.43.5 255.255.255.0
client-identifier 0100.19e3.0cd3.42
!
ip dhcp pool MacBook
host 172.31.43.6 255.255.255.0
client-identifier 0100.236c.87e2.c6
!
ip dhcp pool WIRELESS
default-router 172.31.43.254
dns-server 151.99.125.1 151.99.0.100 8.8.8.8 8.8.4.4
!
ip dhcp pool iPad
host 172.31.43.7 255.255.255.0
client-identifier 01d8.3062.9315.da
!
ip dhcp pool Cisco_IP_Phone
network 172.16.43.0 255.255.255.0
default-router 172.16.43.254
option 150 ip 172.16.43.254
dns-server 151.99.125.1 151.99.0.100 62.94.0.42 62.94.0.41
domain-name voip.eutelia.it
!
ip dhcp pool iPhone2G
host 172.31.43.4 255.255.255.0
client-identifier 0100.1ec2.ed83.4f
!
ip dhcp pool iPhone4
host 172.31.43.8 255.255.255.0
client-identifier 017c.c537.cee9.72
!
ip dhcp pool AirPort
host 172.31.43.250 255.255.255.0
client-identifier 0100.1124.01a4.fc
!
!
ip vrf forwarding
!
!
multilink bundle-name authenticated
!
!
voice call disc-pi-off
!
voice service pots
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
supplementary-service h450.12
no supplementary-service sip moved-temporarily
no supplementary-service sip refer
h323
call start slow
sip
registrar server expires max 3600 min 180
localhost dns:voip.eutelia.it
outbound-proxy ipv4:83.211.227.21
!
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
!
!
!
!
!
!
voice register global
mode cme
source-address 172.16.43.254 port 5060
max-dn 10
max-pool 20
call-forward system redirecting-expanded
!
voice register dn 1
number 201
allow watch
name Studio
!
voice register dn 2
number 202
allow watch
name Camera
!
voice register dn 3
number 203
allow watch
name Salotto
!
voice register pool 1
id mac 001B.D45F.E2A0
number 1 dn 1
codec g711ulaw
!
voice register pool 2
id mac FCFB.FBCA.AC89
number 2 dn 2
codec g711ulaw
!
voice register pool 3
id mac 001E.BE91.9669
number 3 dn 3
codec g711ulaw
!
!
voice translation-rule 1
rule 1 /2../ /XXXXXXXX288/
!
voice translation-rule 2
rule 1 /XXXXXXXX288/ /288/
!
!
voice translation-profile in-Sip
translate called 2
!
voice translation-profile out-SipTrunk
translate calling 1
!
!
!
!
!
!
username lucaspag password 7 08245E400C0A1118
archive
log config
hidekeys
!
!
!
!
!
!
!
!
interface Tunnel0
ip address 172.17.44.1 255.255.255.0
no ip redirects
ip mtu 1400
ip nhrp authentication test
ip nhrp map multicast dynamic
ip nhrp network-id 100000
ip nhrp holdtime 360
ip nhrp server-only
ip tcp adjust-mss 1360
cdp enable
tunnel source IP PUBBLICO
tunnel mode gre multipoint
!
interface ATM0/0
no ip address
no ip mroute-cache
no atm ilmi-keepalive
dsl operating-mode auto
hold-queue 224 in
pvc 8/35
encapsulation aal5snap
protocol ppp dialer
dialer pool-member 1
!
!
interface FastEthernet0/0
ip address 172.31.43.254 255.255.255.0
ip nat inside
ip virtual-reassembly
no ip route-cache cef
no ip route-cache
no ip mroute-cache
speed auto
pppoe enable group global
pppoe-client dial-pool-number 1
!
interface FastEthernet1/1
description Siemens C450IP
!
interface FastEthernet1/2
description Cisco IP Phone 7961G Salotto
bandwidth 256
!
interface FastEthernet1/3
description Cisco IP Phone 7945 Camera
bandwidth 256
!
interface FastEthernet1/4
description Cisco IP Phone 7970G Studio
bandwidth 256
!
interface Vlan1
ip address 172.16.43.254 255.255.255.0
ip nat inside
ip nat enable
ip virtual-reassembly
!
interface Dialer0
ip address negotiated
ip nat outside
ip virtual-reassembly
encapsulation ppp
dialer pool 1
dialer-group 1
ppp pap sent-username [email protected] password 7 120B0A0F080D0E
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Dialer0
!
!
no ip http server
no ip http secure-server
ip nat inside source list 101 interface Dialer0 overload
ip nat inside source list 102 interface Dialer0 overload
ip nat inside source static udp 172.16.43.254 5060 interface Dialer0 5060
ip nat inside source static tcp 172.31.43.13 8080 IP PUBBLICO 8080 extendable
!
access-list 101 permit ip 172.31.43.0 0.0.0.255 any
access-list 102 permit ip 172.16.43.0 0.0.0.255 any
dialer-list 1 protocol ip permit
!
!
!
!
tftp-server flash:apps70.8-3-0-50.sbn
tftp-server flash:cnu70.8-3-0-50.sbn
tftp-server flash:cvm70sccp.8-3-0-50.sbn
tftp-server flash:jar70sccp.8-3-0-50.sbn
tftp-server flash:SCCP70.8-3-1S.loads
tftp-server flash:term70.default.loads
tftp-server flash:term71.default.loads
tftp-server flash:dsp70.8-3-0-50.sbn
tftp-server flash:/g3-tones.xml alias Italy/g3-tones.xml
tftp-server flash:it-td-sccp.jar alias Italian_Italy/td-sccp.jar
tftp-server flash:/it-mk-sccp.jar alias Italian_Italy/mk-sccp.jar
control-plane host
!
!
control-plane
!
!
!
voice-port 2/0
operation 4-wire
echo-cancel coverage 32
no vad
playout-delay mode fixed
cptone IT
timeouts initial 120
timeouts interdigit 3
timeouts call-disconnect 0
bearer-cap Speech
!
voice-port 2/1
auto-cut-through
operation 4-wire
signal immediate
description Musica di Attesa iPod
!
!
!
!
!
!
dial-peer voice 1 pots
answer-address 2..
destination-pattern XXXXXXXX288
port 2/0
forward-digits all
authentication username XXXXXXXX288 password 7 051D0F0E264241071C5144 realm voip.eutelia.it
supported-language it
!
dial-peer voice 2 pots
port 2/1
supported-language it
!
dial-peer voice 3 voip
translation-profile incoming in-Sip
translation-profile outgoing out-SipTrunk
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 voice 7777 pots
destination-pattern 7777
port 2/1
no sip-register
!
dial-peer voice 200 voip
description Telefoni Router B
destination-pattern 2..
session target ipv4:172.17.44.2
codec g711ulaw
!
gateway
timer receive-rtp 1200
!
sip-ua
credentials username XXXXXXXX288 password 095A47081E0B181C0E5857 realm voip.eutelia.it
no remote-party-id
retry invite 4
retry response 3
retry bye 2
retry cancel 2
registrar dns:voip.eutelia.it:5060 expires 600
sip-server dns:voip.eutelia.it:5060
host-registrar
!
!
telephony-service
video
maximum bit-rate 256
load 7914 S00105000200
load 7941 SCCP41.8-2-2SR1S
load 7961 SCCP41.8-2-2SR1S
load 7945 SCCP45.8-3-3SR2S
load 7970 SCCP70.8-3-1S.loads
max-ephones 5
max-dn 100
ip source-address 172.16.43.254 port 2000
auto assign 1 to 5
service phone displayIdleTimeout 00:10
service phone daysDisplayNotActive 1,2,3,4,5,6,7
service phone displayOnWhenIncomingCall 1
service phone videoCapability 1
timeouts interdigit 3
system message Luca Spagnoli
user-locale IT
network-locale IT
time-zone 23
time-format 24
date-format dd-mm-yy
max-conferences 2 gain -6
call-forward pattern .T
call-forward system redirecting-expanded
dn-webedit
time-webedit
transfer-system full-consult
transfer-pattern .T
night-service code *1234
night-service everyday 20:00 08:00
create cnf-files version-stamp 7960 Dec 11 2010 21:18:39
!
!
ephone-template 1
service phone daysDisplayNotActive 1,2,3,4,5,6,7
service phone backlightIdleTimeout 00.10
service phone displayOnWhenIncomingCall 1
!
!
ephone-dn 1 dual-line
number 201 no-reg primary
pickup-group 200
label XXXXXXX225
description
name Studio
allow watch
call-forward night-service 204
huntstop channel
night-service bell
!
!
ephone-dn 2 dual-line
number 202 no-reg primary
pickup-group 200
label XXXXXXX225
description
name Camera
allow watch
huntstop channel
!
!
ephone-dn 3 dual-line
number 203 no-reg primary
pickup-group 200
label XXXXXXX225
description
name Salotto
allow watch
huntstop channel
!
!
ephone-dn 4 dual-line
number 204 no-reg primary
pickup-group 200
label XXXXXXX225
description Telefono Router B
allow watch
huntstop channel
!
!
ephone-dn 5 dual-line
number 200 no-reg primary
label Chiamata di Gruppo
name Chiamata di Gruppo
allow watch
huntstop channel
!
!
ephone-dn 55
number 5555 no-reg primary
moh out-call 7777
!
!
ephone 1
description Cisco IP Phone 7970G Studio
video
mac-address 001B.D45F.E2A0
ephone-template 1
type 7970
auto-line 1
button 1:1 2:5
night-service bell
!
!
!
ephone 2
description Cisco IP Phone 7945 Camera
video
mac-address FCFB.FBCA.AC89
ephone-template 1
type 7945
button 1:2 2:5
!
!
!
ephone 3
description Cisco IP Phone 7961G Salotto
video
mac-address 001E.BE91.9669
type 7961 addon 1 7914
auto-line 1
button 1:3 2:5
!
!
ephone-hunt 1 sequential
pilot 288
list 201, 203, 202, 204
final 200
timeout 10, 10, 10, 10
no-reg pilot
!
!
!
line con 0
line aux 0
line vty 0 4
login local
!
sntp server 193.204.114.232
end

Ed ecco la configurazione del Router B:

version 12.4
service timestamps debug datetime msec
service timestamps log uptime
service password-encryption
!
hostname Super4Mega-EuteliaVoip
!
boot-start-marker
boot-end-marker
!
enable password 7 030D5F0A
!
no aaa new-model
clock timezone CET 1
clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00
voice-card 2
!
ip cef
!
!
no ip dhcp use vrf connected
!
ip dhcp pool Aironet
network 172.31.45.0 255.255.255.0
default-router 172.31.45.254
dns-server 151.99.125.1 151.99.0.100 8.8.8.8 8.8.4.4
!
ip dhcp pool Cisco_IP_Phone
network 172.16.45.0 255.255.255.0
default-router 172.16.45.254
option 150 ip 172.16.45.254
dns-server 151.99.125.1 151.99.0.100 62.94.0.42 62.94.0.41
domain-name voip.eutelia.it
!
!
ip vrf forwarding
!
!
multilink bundle-name authenticated
!
!
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
sip
registrar server expires max 3600 min 180
!
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
!
!
!
!
voice class dualtone-detect-params 1
freq-max-power 0
freq-min-power 35
freq-power-twist 15
freq-max-delay 40
cadence-variation 20
!
!
voice class custom-cptone 1
dualtone busy
dualtone ringback
dualtone reorder
dualtone out-of-service
dualtone number-unobtainable
dualtone disconnect
frequency 425 425
cadence 200 200 200 200
!
!
!
voice register global
mode cme
source-address 172.16.45.254 port 5060
max-dn 10
max-pool 20
!
voice register dn 1
number 204
allow watch
name Mamma
label Mamma
!
voice register pool 1
id mac 001E.136C.4F53
number 1 dn 1
codec g711ulaw
!
!
!
!
!
!
!
username lucaspag password 7 08245E400C0A1118
archive
log config
hidekeys
!
!
!
!
!
class-map match-any voice-signaling
!
!
!
!
!
interface Tunnel0
ip address 172.17.44.2 255.255.255.0
no ip redirects
ip mtu 1400
ip nhrp authentication test
ip nhrp map multicast IP PUBBLICO
ip nhrp map 172.17.44.1 IP PUBBLICO
ip nhrp network-id 100000
ip nhrp holdtime 360
ip nhrp nhs 172.17.44.1
ip nhrp registration no-unique
no ip mroute-cache
delay 1000
cdp enable
tunnel source Dialer0
tunnel destination IP PUBBLICO
!
interface ATM0/0
no ip address
no ip mroute-cache
no atm ilmi-keepalive
dsl operating-mode auto
hold-queue 224 in
pvc 8/35
encapsulation aal5snap
protocol ppp dialer
dialer pool-member 1
!
!
interface FastEthernet0/0
ip address 172.31.45.254 255.255.255.0
ip nat inside
ip virtual-reassembly
no ip route-cache cef
no ip route-cache
no ip mroute-cache
speed auto
!
interface Ethernet1/0
description Cisco IP Phone
ip address 172.16.45.254 255.255.255.0
ip nat inside
ip nat enable
ip virtual-reassembly
half-duplex
hold-queue 100 out
!
interface Dialer0
ip address negotiated
ip nat outside
ip virtual-reassembly
encapsulation ppp
dialer pool 1
dialer-group 1
ppp pap sent-username [email protected] password 7 0946410A160614
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Dialer0
!
!
no ip http server
no ip http secure-server
ip nat inside source list 101 interface Dialer0 overload
ip nat inside source static udp 172.16.45.254 5060 interface Dialer0 5060
ip nat inside source list 102 interface Dialer0 overload
!
access-list 101 permit ip 172.31.45.0 0.0.0.255 any
access-list 102 permit ip 172.16.45.0 0.0.0.255 any
!
!
!
!
tftp-server flash:/g3-tones.xml alias Italy/g3-tones.xml
tftp-server flash:it-td-sccp.jar alias Italian_Italy/td-sccp.jar
tftp-server flash:apps41.8-2-2ES1.sbn
tftp-server flash:cnu41.8-2-2ES1.sbn
tftp-server flash:cvm41sccp.8-2-2ES1.sbn
tftp-server flash:dsp41.8-2-2ES1.sbn
tftp-server flash:jar41sccp.8-2-2ES1.sbn
tftp-server flash:SCCP41.8-2-2SR1S.loads
tftp-server flash:term41.default.loads
tftp-server flash:term61.default.loads
tftp-server flash:/it-mk-sccp.jar alias Italian_Italy/mk-sccp.jar
control-plane host
!
!
control-plane
!
!
!
voice-port 2/0
supervisory disconnect dualtone mid-call
cptone IT
timeouts interdigit 5
timeouts call-disconnect 1
connection plar opx 551
impedance complex2
description Linea Telecom Italia
!
voice-port 2/1
impedance complex2
!
!
!
!
!
!
dial-peer voice 200 voip
description Telefoni Router A
destination-pattern 2..
session target ipv4:172.17.44.1
codec g711ulaw
!
dial-peer voice 551 pots
destination-pattern .T
port 2/0
supported-language IT
!
!
telephony-service
video
maximum bit-rate 256
load 7941GE SCCP41.8-2-2SR1S.loads
max-ephones 5
max-dn 100
ip source-address 172.16.45.254 port 2000
auto assign 1 to 5
service phone videoCapability 1
system message Teresa Provenzali
user-locale IT
network-locale IT
time-zone 23
time-format 24
date-format dd-mm-yy
max-conferences 2 gain -6
call-forward pattern .T
dn-webedit
time-webedit
transfer-system full-consult
transfer-pattern .T
create cnf-files version-stamp Jan 01 2002 00:00:00
!
!
ephone-dn 1
number 551
label XXXXXXX551
description XXXXXXXXX
!
!
ephone-dn 2 dual-line
number 204
label Luca
allow watch
huntstop channel
!
!
ephone-dn 3 dual-line
number 201
!
!
ephone 1
video
mac-address 001E.136C.4F53
type 7941GE
auto-line 1
button 1:1 2:2
!
!
!
line con 0
line aux
line vty 0 4
login local
!
sntp server 193.204.114.232
end

Quindi vorrei che le telefonate del router a arrivassero al router b, per il momento riesco solo a chiamare con numero interno dal router b al router a e non viceversa. E' consigliabile far registrare il telefono 7941 sul primo router? Preferirei che si registrasse sul secondo in modo che poi nel caso di malfunzionamento del router a non rimanga isolato. Chiedo troppo? Ringrazio chiunque mi aiuti, a presto.
lucaspag
Cisco fan
Messaggi: 47
Iscritto il: sab 28 mar , 2009 11:14 am

Ho fatto delle modifiche ma ancora niente o meglio adesso pingo la Vlan del router A dal router B ma non succede il contrario. Ecco le modifiche,

Router A


interface Vlan1
ip address 172.16.43.254 255.255.255.0
ip helper-address 172.16.45.255
ip nat inside
ip nat enable
ip virtual-reassembly


ip route 172.16.45.0 255.255.255.0 Tunnel0



Router B



interface Ethernet1/0
description Cisco IP Phone
ip address 172.16.45.254 255.255.255.0
ip helper-address 172.16.43.255
ip nat inside
ip nat enable
ip virtual-reassembly
half-duplex
hold-queue 100 out


ip route 172.16.43.0 255.255.255.0 Tunnel0


Suggerimenti? A presto :D
lucaspag
Cisco fan
Messaggi: 47
Iscritto il: sab 28 mar , 2009 11:14 am

Intanto sono riuscito ad effettuare una chiamata nei due sensi, avevo sbagliato gli ephone-dn, nel senso che avevo inserito nelle due configurazioni un tasto personalizzato con il dn del telefono remoto e quindi ho tolto:

dal Router A

ephone-dn 4 dual-line
number 204 no-reg primary
pickup-group 200
label XXXXXXX225
description Telefono Router B
allow watch
huntstop channel

modificato anche ephone-hunt così:

ephone-hunt 1 sequential
pilot 288
list 201, 203, 202
final 204
timeout 10, 10, 10
no-reg pilot
!

e dal Router B


ephone-dn 3 dual-line
number 201

adesso l'unico problema (non da poco) è che la telefonata che arriva al 204 (deviata) è priva di fonia!!!!

Avete un suggerimento?
:D :D
lucaspag
Cisco fan
Messaggi: 47
Iscritto il: sab 28 mar , 2009 11:14 am

Buon Natale a tutti :D :D :D
Rispondi