Mis años de estudiante se acabaron... llevo desde 2011 trabajando con equipos de comunicaciones Cisco, y llevo peleándome varios meses para conseguir utilizar teléfonos Cisco con un router Cisco haciendo de Call Manager Express (CME) y a su vez de router para la conexión de FTTH que ofrece Movistar con VoIP. Pues eleh ya lo he conseguido, después de leer, releer y aprender.
En mi caso, al contratar la fibra óptica con Movistar me instalaron el famoso HGU
El cual no me servía para mi propósito ya que este equipo integra la ONT y el propio router, por lo que buscando en Wallapop encontré una ONT Huawei HG8240 muy económica la cual era perfecta para conectarlo contra un router Cisco y dejar de usar el de Movistar.
La configuración de la ONT es muy sencilla solo es necesario extraer el código IDont del HGU, a través de la web avanzada de configuración del router (tendrá un formato del estilo f2016xxxxxx)
Accedemos a la ONT Huawei con la Fibra óptica desconectada, solo conectando el cable de red entre el PC y el puerto 1 de la ONT, a la tarjeta de red le ponemos la IP 192.168.100.2 con mascara /24 y accedemos a través del navegador con la IP 192.168.100.1, el login telecomadmin / admintelecom.
Acceder a herramientas y en configuración ONT e introducir el IDont que hemos extraído antes.
Cualquier duda: http://movistarencuestafibra.blogspot.com.es/p/ont-hg.htm o Google.
Una vez configurada la ONT ya podemos conectar nuestro router Cisco, en mi caso he utilizado un C881, encontrado también en Wallapop (vendito Wallapop). Tiene que ser un router compatible con CME que se le pueda cargar una IOS del tipo Voice.
La conexión es muy sencilla, del puerto eth1 de la ONT al puerto Fa4 del router Cisco 881, y utilizaremos los 4 puertos desde Fa0 a Fa3 como puertos para la LAN y para los ToIP, en mi caso también adquiridos por .... Wallapop un Cisco 7921 inalámbrico y un Cisco7941 y para rematar un Access Point Cisco Aironet 1130AG adquirido en eBay
En resumen, esta es la topología que tengo montada:
La IOS utilizada: c880voice-universalk9-mz.154-3.M6a.bin
Y el txt de la configuración: MDC881-CME
Building configuration...
Current configuration : 11082 bytes
version 15.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname MDC881-CME
!
boot-start-marker
boot-end-marker
!
aqm-register-fnf
!
security authentication failure rate 3 log
security passwords min-length 6
logging buffered 51200 warnings
no logging console
enable secret 5 ******
!
no aaa new-model
memory-size iomem 10
clock timezone GMT 1 0
!
!
!
!
!
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.10
ip dhcp excluded-address 192.168.1.100 192.168.1.101
!
ip dhcp pool LAN
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
option 150 ip 192.168.1.1
!
!
!
no ip bootp server
ip domain name MDC881-CME.MD
ip name-server 8.8.8.8
ip name-server 8.8.4.4
ip cef
login block-for 180 attempts 3 within 30
no ipv6 cef
!
!
!
!
!
multilink bundle-name authenticated
vpdn enable
!
vpdn-group pppoe
!
!
!
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
no supplementary-service sip moved-temporarily
no supplementary-service sip refer
no supplementary-service sip handle-replaces
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
sip
bind control source-interface FastEthernet4.3
bind media source-interface FastEthernet4.3
registrar server expires max 3600 min 3600
asserted-id pai
outbound-proxy ipv4:10.31.255.134:5070
no update-callerid
no silent-discard untrusted
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g726r32
codec preference 4 gsmamr-nb
!
!
!
!
!
voice register global
mode cme
max-dn 10
max-pool 5
!
voice hunt-group 1 parallel
list 4000,4001
pilot 3000
!
!
!
voice translation-rule 1
rule 1 /911111111/ /3000/
!
voice translation-rule 2
rule 1 // //
!
!
voice translation-profile ENTRANTES
translate called 1
!
voice translation-profile SALIENTES
translate calling 2
!
!
license udi pid CISCO881-SEC-K9 sn xxxxxxxx
!
!
archive
log config
hidekeys
file privilege 0
username xxxxxx privilege 0 password 7 xxxxx
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
bba-group pppoe global
!
!
interface FastEthernet0
description CONEXIÓN CONTRA AP AIRONET 1130AG
no ip address
!
interface FastEthernet1
description CONEXIÓN CONTRA SWITCH
no ip address
!
interface FastEthernet2
Description CONEXIÓN CONTRA TOIP CISCO 7942
no ip address
!
interface FastEthernet3
no ip address
!
interface FastEthernet4
description Conexion ONT Movistar
no ip address
duplex auto
speed auto
!
interface FastEthernet4.3
description Subinterface VoIP
encapsulation dot1Q 3
ip dhcp client class-id 42
ip address dhcp
ip nat outside
ip virtual-reassembly in
!
interface FastEthernet4.6
description Subinterface Datos
encapsulation dot1Q 6
pppoe enable group global
pppoe-client dial-pool-number 1
!
interface Vlan1
description VLAN DATOS
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface Dialer0
ip address negotiated
ip mtu 1492
ip nat outside
ip virtual-reassembly in
encapsulation ppp
ip tcp adjust-mss 1452
dialer pool 1
ppp authentication chap pap callin
ppp chap hostname adslppp@telefonicanetpa
ppp chap password 7 03055F180A1F315C
ppp pap sent-username adslppp@telefonicanetpa password 7 1416161800143A3B
no cdp enable
!
router rip
version 2
network 10.0.0.0
no auto-summary
!
no ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip nat inside source static tcp 192.168.1.X 40500 interface Dialer0 40500
ip nat inside source route-map Datos interface Dialer0 overload
ip nat inside source route-map VOIP interface FastEthernet4.3 overload
ip route 0.0.0.0 0.0.0.0 Dialer0
ip ssh time-out 100
ip ssh version 2
!
!
!
route-map VOIP permit 10
match ip address 10
match interface FastEthernet4.3
!
route-map Datos permit 10
match ip address 10
match interface Dialer0
!
tftp-server flash:CME 10.5/Phones/7921/***
tftp-server flash:CME 10.5/Phones/7942/***
!
access-list 10 permit 192.168.1.0 0.0.0.255
access-list 10 remark SALIDA LAN
access-list 122 permit tcp 192.168.1.0 0.0.0.255 any log
access-list 122 deny tcp any any
access-list 122 deny udp any any
access-list 122 remark ACCESO VTY
!
control-plane
!
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
!
!
!
dial-peer voice 2 voip
description SALIENTES
translation-profile outgoing SALIENTES
destination-pattern .T
session protocol sipv2
session target sip-server
session transport udp
voice-class codec 1
!
dial-peer voice 1 voip
description ENTRANTES
translation-profile incoming ENTRANTES
session protocol sipv2
session target ipv4:10.31.255.134:5070
session transport udp
incoming called-number .
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
!
sip-ua
credentials username 911111111 password 911111111 realm 3600
no remote-party-id
retry invite 2
retry register 10
timers connect 100
registrar dns:telefonica.net:5070 expires 3600
sip-server dns:telefonica.net
host-registrar
!
!
telephony-service
max-ephones 5
max-dn 5
ip source-address 192.168.1.1 port 2000
max-redirect 20
calling-number initiator
timeouts interdigit 3
cnf-file location flash:
user-locale ES load CME-locale-es_ES-Spanish-10.5.3.0.tar
load 7921 CP7921G-1.1.1
load 7941 SCCP41.9-1-1SR1S
time-zone 24
time-format 24
date-format dd-mm-yy
max-conferences 0 gain -6
transfer-system full-consult
create cnf-files version-stamp 7960 Jan 09 2017 20:00:00
!
!
!
!
ephone-dn 1
number 4000
!
!
ephone-dn 2
number 4001
!
!
ephone-dn 3
number 4002
!
!
!
!
ephone 1
device-security-mode none
mac-address AAAA.BBBB.CCCC
max-calls-per-button 4
type 7921
button 1:1
!
!
!
ephone 2
device-security-mode none
mac-address BBBB.AAAA.CCCC
type 7942
button 1:2
!
!
!
ephone 3
device-security-mode none
mac-address CCCC.BBBB.AAAA
ephone-template 2
type CIPC
button 1:3
!
!
banner motd ^CCCCC
########################################################################
########################################################################
## ##
## AUTHORIZATED ACCESS ONLY! ##
## ##
## Disconnect IMMEDIATELY if you are not an authorized user ##
## All actions will be monitorized and recorded ##
## ##
## ##
########################################################################
########################################################################
^C
!
line con 0
exec-timeout 5 0
password contraseña1
no modem enable
line aux 0
exec-timeout 15 0
password contraseña1
no exec
line vty 0 4
access-class 122 in
exec-timeout 30 0
password contraseña1
logging synchronous
login local
transport input ssh
!
scheduler max-task-time 5000
ntp master
ntp update-calendar
ntp server 129.6.15.28
ntp server 216.171.112.36
ntp server 129.6.15.29
!
end
Los comandos usados para trobleshooting:
Con este comando vemos si la cuenta SIP de Movistar configurada esta registrada; nos debería devolver "yes" y los valores con el numero de teléfono, el 34 con el numero de teléfono y el IDont configurado en la ONT
sh sip-ua register status
Line peer expires(sec) reg survival P-Associ-URI ================================ ========== ============ === ======== ============ 4000 20001 79 no normal 4001 20002 80 no normal 4002 20003 95 no normal 4003 20004 80 no normal 911111111 -1 360 yes normal 911111111 3491111111 f2016xxxxx
Con este comando vemos las llamadas establecidas.
sh sip-ua call Total SIP call legs:0, User Agent Client:0, User Agent Server:0 SIP UAC CALL INFO Number of SIP User Agent Client(UAC) calls: 0 SIP UAS CALL INFO Number of SIP User Agent Server(UAS) calls: 0
Y habilitando los siguientes debug vemos el call flow de la llamada.
debug ccsip calls debug ccsip all debug ccsip error debug ccsip events debug ccsip messages debug ccsip states
PD: Tengo pendiente separar en vlanes los datos y la voz, y aplicar QoS.
1 comentario:
Hola,
Muy interesantes las cosas que publicas en tu blog al que he llegado de rebote buscando información sobre como configurar el Cisco 7941 en SIP para su uso con movistar.
Comentarte que yo consigué hacerlo con un 7940 tal y como publicaba en su día aqui: https://comunidad.movistar.es/t5/Soporte-red-fija/Configuración-Teléfono-CISCO-IP-PHONE-7940-SIP pero, con el 7941 no fui capaz y me gustaría poder hacerlo ya que tengo un par de ellos muertos de asco...
¿Me podrías echar una mano con la configuración del 7941?. Tienes los ficheros de configuración??
Gracias de antemano.
Publicar un comentario