Videollamadas en CME. Códec H.263

h263cme1

Bueno, comencemos por lo que funciona.

Para esta receta necesitamos:

1 router 2801 con Cisco IOS Software, 2801 Software (C2801-ADVENTERPRISEK9_IVS-M), Version 15.1(4)M4
1 Cisco IP Phone 7985
1 Ordenador con Softphone 3CX

 

La configuración del 7985 (SCCP)

telephony-service
video
no auto-reg-ephone
max-ephones 4
max-dn 4
ip source-address 10.10.0.11 port 2000
service phone videoCapability 1
cnf-file location flash:
cnf-file perphone
load 7985 cmterm_7985.4-1-7-0.bin
max-conferences 4 gain -6
transfer-system full-consult
create cnf-files version-stamp Jan 01 2002 00:00:00

….

tftp-server cmterm_7985.4-1-7-0.bin

….

ephone-dn 1 dual-line
number 201

ephone 1
device-security-mode none
video
mac-address 0050.600C.4AF2
type 7985
button 1:1

La configuración del softphone (SIP)

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 1800

voice register global
mode cme
source-address 10.10.0.11 port 5060
max-dn 4
max-pool 4
load 9971 sip9971.9-4-2SR1-2.loads
authenticate register
authenticate realm all
tftp-path flash:
file text
create profile sync 0000404222514375
camera
video

voice register dn 3
number 203

voice register pool 3
id mac 00A0.D168.2709
number 1 dn 3
username 203 password 123456
codec g711ulaw
camera
video

Router#debug ccsip messages
SIP Call messages tracing is enabled
Router#

Llamamos del 201 al 203:

INVITE sip:203@10.10.0.31:63046 SIP/2.0
Via: SIP/2.0/UDP 10.10.0.11:5060;branch=z9hG4bK1D24DC
Remote-Party-ID: <sip:201@10.10.0.11>;party=calling;screen=no;privacy=off
From: <sip:201@10.10.0.11>;tag=2A8C50-301
To: <sip:203@10.10.0.31>
Date: Tue, 07 Apr 2015 17:30:34 GMT
Call-ID: A1F6B882-DC8211E4-8049ABF7-214C111E@10.10.0.11
Supported: 100rel,timer,resource-priority,replaces
Min-SE: 1800
Cisco-Guid: 2681461172-3699511780-2151984119-0558633246
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1428427834
Contact: <sip:201@10.10.0.11:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 329

v=0
o=CiscoSystemsSIP-GW-UserAgent 419 2660 IN IP4 10.10.0.11
s=SIP Call
c=IN IP4 10.10.0.11
t=0 0
m=audio 16460 RTP/AVP 0 19
c=IN IP4 10.10.0.11
a=rtpmap:0 PCMU/8000
a=rtpmap:19 CN/8000
a=ptime:20
m=video 16818 RTP/AVP 34
c=IN IP4 10.10.0.11
b=TIAS:704000
a=rtpmap:34 H263/90000
a=fmtp:34 QCIF=1;CIF=1;MAXBR=7040

SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.10.0.11:5060;branch=z9hG4bK1D24DC
Contact: <sip:203@10.10.0.31:63046>
To: <sip:203@10.10.0.31>;tag=596f0509
From: <sip:201@10.10.0.11>;tag=2A8C50-301
Call-ID: A1F6B882-DC8211E4-8049ABF7-214C111E@10.10.0.11
CSeq: 101 INVITE
User-Agent: 3CXPhone 6.0.26523.0
Content-Length: 0

 

SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.0.11:5060;branch=z9hG4bK1D24DC
Contact: <sip:203@10.10.0.31:63046>
To: <sip:203@10.10.0.31>;tag=596f0509
From: <sip:201@10.10.0.11>;tag=2A8C50-301
Call-ID: A1F6B882-DC8211E4-8049ABF7-214C111E@10.10.0.11
CSeq: 101 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE
Content-Type: application/sdp
Supported: replaces
User-Agent: 3CXPhone 6.0.26523.0
Content-Length: 270

v=0
o=3cxVCE 348227760 65206290 IN IP4 10.10.0.31
s=3cxVCE Audio Call
c=IN IP4 10.10.0.31
t=0 0
m=audio 40030 RTP/AVP 0
a=rtpmap:0 PCMU/8000
m=video 40028 RTP/AVP 34
c=IN IP4 10.10.0.31
a=rtpmap:34 H263/90000
a=fmtp:34 QCIF=1;CIF=1;SQCIF=1;CIF4=1
a=sendrecv

Llamamos del 203 al 201:

Received:
INVITE sip:201@10.10.0.11:5060 SIP/2.0
Via: SIP/2.0/UDP 10.10.0.31:63046;branch=z9hG4bK-d8754z-7e5fa36b067b896a-1—d8754z-;rport
Max-Forwards: 70
Contact: <sip:203@10.10.0.31:63046>
To: <sip:201@10.10.0.11:5060>
From: “203”<sip:203@10.10.0.11:5060>;tag=54208a14
Call-ID: NjUyY2UxMWFmMjQzZTNhYjk2MDMxNjQxMTAyZTAwYzU.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE
Content-Type: application/sdp
Supported: replaces
User-Agent: 3CXPhone 6.0.26523.0
Content-Length: 398

v=0
o=3cxVCE 209186025 156225975 IN IP4 10.10.0.31
s=3cxVCE Audio Call
c=IN IP4 10.10.0.31
t=0 0
m=audio 40042 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
m=video 40040 RTP/AVP 34
c=IN IP4 10.10.0.31
a=rtpmap:34 H263/90000
a=fmtp:34 QCIF=1;CIF=1;SQCIF=1;CIF4=1
a=sendrecv

Sent:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.0.31:63046;branch=z9hG4bK-d8754z-7e5fa36b067b896a-1—d8754z-;rport
From: “203”<sip:203@10.10.0.11:5060>;tag=54208a14
To: <sip:201@10.10.0.11:5060>
Date: Tue, 07 Apr 2015 17:39:47 GMT
Call-ID: NjUyY2UxMWFmMjQzZTNhYjk2MDMxNjQxMTAyZTAwYzU.
CSeq: 1 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-12.x
Content-Length: 0

Sent:

Router#SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.10.0.31:63046;branch=z9hG4bK-d8754z-7e5fa36b067b896a-1—d8754z-;rport
From: “203”<sip:203@10.10.0.11:5060>;tag=54208a14
To: <sip:201@10.10.0.11:5060>;tag=32F92C-1977
Date: Tue, 07 Apr 2015 17:39:47 GMT
Call-ID: NjUyY2UxMWFmMjQzZTNhYjk2MDMxNjQxMTAyZTAwYzU.
CSeq: 1 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Remote-Party-ID: <sip:201@10.10.0.11>;party=called;screen=no;privacy=off
Contact: <sip:201@10.10.0.11:5060>
Server: Cisco-SIPGateway/IOS-12.x
Content-Length: 0

Sent:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.0.31:63046;branch=z9hG4bK-d8754z-7e5fa36b067b896a-1—d8754z-;rport
From: “203”<sip:203@10.10.0.11:5060>;tag=54208a14
To: <sip:201@10.10.0.11:5060>;tag=32F92C-1977
Date: Tue, 07 Apr 2015 17:39:47 GMT
Call-ID: NjUyY2UxMWFmMjQzZTNhYjk2MDMxNjQxMTAyZTAwYzU.
CSeq: 1 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Remote-Party-ID: <sip:201@10.10.0.11>;party=called;screen=no;privacy=off
Contact: <sip:201@10.10.0.11:5060>
Supported: replaces
Server: Cisco-SIPGateway/IOS-12.x
Supported: timer
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 297

v=0
o=CiscoSystemsSIP-GW-UserAgent 7560 7815 IN IP4 10.10.0.11
s=SIP Call
c=IN IP4 10.10.0.11
t=0 0
m=audio 19550 RTP/AVP 0
c=IN IP4 10.10.0.11
a=rtpmap:0 PCMU/8000
a=ptime:20
m=video 18812 RTP/AVP 34
c=IN IP4 10.10.0.11
b=TIAS:85000
a=rtpmap:34 H263/90000
a=fmtp:34 CIF=1;MAXBR=850

 

Y las gracias otra vez a Mark Holloway por este post.
Y también a la web oficial de Cisco.

Un comentario

  • Hector Salazar
    13 diciembre, 2016 - 11:55 pm | Enlace permanente

    Hola Eduardo.

    Ya revisé lo que indicas, se tienen dos CME y al parecer están configurados igual y la videollamada solo se establece cuando marca uno de los lados, cuando se llama del otro el Stream 2 no toma codec y no levanta video. Alguna sugerencia?

  • Comments are closed.