H.323 Gateway

t1isdnprih3231
Bueno, volvamos a las cosas importantes.
Vamos a configurar un Gateway H.323 para permitir la comunicación entre CUCM y la línea PSTN, en nuestro caso emulada con dos tarjetas T1.

Para esta receta necesitaremos.
1 CUCM virtualizado en un PC con VMware.
1 Router 2801 con IOS c2801-adventerprisek9_ivs-mz.151-4.M4.bin
1 Cable T1
1 Tarjeta VWIC-2MFT-T1 en el router 2801
1 Tarjeta VWIC2-1MFT-T1/E1 en UC560

Yo utilizo el Cisco ASA 5501 porque me viene muy cómodo por los dos puertos PoE que tiene. El ASA hace de servidor DHCP.

Las ips son las siguientes:
CUCM: 10.10.0.11
Pc donde está virtualizado CUCM: 10.10.0.10

Router 2801

Router#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 10.10.0.31 YES DHCP up up

El servidor DCHP (el ASA) le ha dado ip 10.10.0.31, pero lo que se recomienda es utilizar un LoopBack para tener una ip fija.
Router#configure terminal
Router(config)#interface fa0/1
Router(config-if)#h323-gateway voip interface
Router(config-if)#h323-gateway voip bind srcaddr 10.10.0.31
Router(config-if)#end

Hay que configurar SIEMPRE un dial-peer VOIP apuntando a CUCM.

Router#configure terminal
Router(config)#dial-peer voice 1 voip
Router(config-dial-peer)#destination-pattern 1…
Router(config-dial-peer)#no vad
Router(config-dial-peer)#codec g711ulaw
Router(config-dial-peer)#session target ipv4:10.10.0.11
Router(config-dial-peer)#end

Router#configure terminal
Router(config)#voice service voip
Router(conf-voi-serv)#h323
Router(conf-serv-h323)#no h225 timeout keepalive
Router(conf-serv-h323)#exit
Router(conf-voi-serv)#allow-connections h323 to h323
Router(conf-voi-serv)#end

Router#show controller t1
T1 0/3/0 is down.

Router#configure terminal
Router(config)#isdn switch-type primary-ni
Router(config)#network-clock-participate wic 3
Router(config)#controller t1 0/3/0
Router(config-controller)#framing esf
Router(config-controller)#linecode b8zs
Router(config-controller)#clock source line
Router(config-controller)#pri-group
Router(config-controller)#no shutdown
Router(config-controller)#exit
Router(config)#interface serial 0/3/0:23
Router(config-if)#isdn protocol-emulate network
Router(config-if)#end

Router#show isdn status
Global ISDN Switchtype = primary-ni
ISDN Serial0/3/0:23 interface
******* Network side configuration *******
dsl 0, interface ISDN Switchtype = primary-ni
Layer 1 Status:
ACTIVE
Layer 2 Status:
TEI = 0, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED
Layer 3 Status:
0 Active Layer 3 Call(s)
Active dsl 0 CCBs = 0
The Free Channel Mask: 0x807FFFFF
Number of L2 Discards = 0, L2 Session ID = 0
Total Allocated ISDN CCBs = 0
Router#

Configuramos el otro dial-peer que apunta al PSTN

Router(config)#dial-peer voice 2 pots
Router(config-dial-peer)#destination-pattern 9.T
Router(config-dial-peer)#direct-inward-dial
Router(config-dial-peer)#port 0/3/0:23
Router(config-dial-peer)#end

Configuramos el Gateway en CUCM:

gatewayh3231

h323gateway2cucm1

h323gateway2cucm2

La ruta:

routeh323gateway1

 

Y probamos a ve si funciona todo.

Router#debug isdn q931
debug isdn q931 is ON.
Router#

Y llamamos de 1001 al 201. Hemos de marcar el 9 – nos da tono – y luego el número 9123456201

Router#
*Apr 22 09:50:38.223: ISDN Se0/3/0:23 Q931: Applying typeplan for sw-type 0xD is 0x0 0x0, Calling num 1003
*Apr 22 09:50:38.227: ISDN Se0/3/0:23 Q931: Sending SETUP callref = 0x0086 callID = 0x8007 switch = primary-ni interface = Network
*Apr 22 09:50:38.227: ISDN Se0/3/0:23 Q931: TX -> SETUP pd = 8 callref = 0x0086
Bearer Capability i = 0x8090A2
Standard = CCITT
Transfer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA98381
Exclusive, Channel 1
Calling Party Number i = 0x0081, ‘1003’
Plan:Unknown, Type:Unknown
Called Party Number i = 0xA1, ‘9123456201’
Plan:ISDN, Type:National
Router#
*Apr 22 09:50:38.255: ISDN Se0/3/0:23 Q931: RX <- CALL_PROC pd = 8 callref = 0x8086
Channel ID i = 0xA98381
Exclusive, Channel 1

Y también vemos si entra la llamada desde el 201 al 1003

Router#
*Apr 22 09:52:48.115: ISDN Se0/3/0:23 Q931: RX <- SETUP pd = 8 callref = 0x0083
Sending Complete
Bearer Capability i = 0x8090A2
Standard = CCITT
Transfer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA98388
Exclusive, Channel 8
Calling Party Number i = 0x2180, ‘9123456201’
Plan:ISDN, Type:National
Called Party Number i = 0xA1, ‘1003’
Plan:ISDN, Type:National
*Apr 22 09:52:48.119: ISDN Se0/3/0:23 Q931: Received SETUP callref = 0x8083 callID = 0x0004 switch = primary-ni interface = Network
Router#
*Apr 22 09:52:48.139: ISDN Se0/3/0:23 Q931: TX -> CALL_PROC pd = 8 callref = 0x8083
Channel ID i = 0xA98388
Exclusive, Channel 8
*Apr 22 09:52:48.159: ISDN Se0/3/0:23 Q931: TX -> ALERTING pd = 8 callref = 0x8083
Router#
*Apr 22 09:52:51.619: %ISDN-6-CONNECT: Interface Serial0/3/0:7 is now connected to 1003 N/A
Router#
*Apr 22 09:52:51.623: ISDN Se0/3/0:23 Q931: TX -> CONNECT pd = 8 callref = 0x8083
Connected Number i = 0x80, ‘1003’
*Apr 22 09:52:51.631: ISDN Se0/3/0:23 Q931: RX <- CONNECT_ACK pd = 8 callref = 0x0083
*Apr 22 09:52:52.047: ISDN Se0/3/0:23 Q931: TX -> DISCONNECT pd = 8 callref = 0x8083
Cause i = 0x8290 – Normal call clearing
*Apr 22 09:52:52.055: ISDN Se0/3/0:23 Q931: RX <- RELEASE pd = 8 callref = 0x0083
*Apr 22 09:52:52.059: ISDN Se0/3/0:23 Q931: TX -> RELEASE_COMP pd = 8 callref = 0x8083

Ah, perdón, las gracias a los gigantes:

Kevin Wallace
Muthurani Lavanya Paneerselvam

 

 

Comments are closed.