Recording Calls Study
Recording Calls Study
Recording Calls Study
troubleshooting call
recording infrastructure
BRKCOL-3672
Cisco Webex Teams
Questions?
Use Cisco Webex Teams to chat
with the speaker after the session
How
1 Find this session in the Cisco Events Mobile App
2 Click “Join the Discussion”
3 Install Webex Teams or go directly to the team space
4 Enter messages/questions in the team space
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
Agenda
• Introduction
• Phone-based Call Recording with BiB
• GW-based Call Recording via XMF
• Call Recording redundancy with Media-Proxy
• Conclusion
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Introduction
Call recording infrastructure
What’s in scope for this session
• CUCM-based, UC centric
• Voice-only recording (compliance, analytics, review)
• Secure and non-secure calls
• Recording software agnostic
• Design, deployment, troubleshooting
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
Call recording infrastructure
Existing solutions
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Call recording terminology
Network-based recording solutions
• Calling Party
• Person initiating the call - customer
• Called Party
• Person answering the call - agent
• Recorder
• Software capturing and storing conversation media
• XMF-enabled Gateway
• Voice GW or CUBE with XMF-based media forking enabled
• Media-Proxy (MPS)
• CUBE with MPS feature configured
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
Call recording infrastructure
Features timeline XE16.10.1
15.6(1)T CUCM 12.5
XE3.17 CUBE Media-
CUCM 10.0 SIPREC Proxy
GW-Based Compliance Recording of
15.3(3)M Recording Authenticated
Calls
15.3(1)T XE3.10
XE3.8 UC GW
CUCM 9.0 Services, XMF
CUBE Media
Softkey and Forking, ORA
CUCM 8.5 PLK support
SIP Header
CUCM 8.0
Enhancements
Secure
CUCM 6.0
Recording
Basic Call
Recording
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Call recording infrastructure
Supported devices
https://developer.cisco.com/site/uc-manager-sip/documents/supported/
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Call recording infrastructure
Supported devices
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
Phone-based Call
Recording with BiB
Phone-based call recording
Built-in Bridge fundamentals
Remote User
Spkr Decoder
Encoder
Call Recording
Mixer Encoder
Mic
Call Monitoring
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Phone-based call recording
Built-in Bridge fundamentals
When Endpoint is registered CUCM creates BiB Device with Unique Name/DN
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
Phone-based call recording
Device support for Built-in Bridge
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
Phone-based call recording
Architecture
SIP/SCCP
BiB
PSTN
Voice GW IP Phone
Recorder
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
Phone-based call recording
Call recording metadata
x-nearend: call with outgoing
IP Phone media
From: <sip:30107@10.62.150.183; x-farend: call with incoming
x-nearend/x-farend; IP Phone media
x-refci=75831761;
x-nearendclusterid=hulk; Call IDs for incoming and
x-nearenddevice=SEPC40ACB4C5A48; outgoing call legs
x-nearendaddr=30107;
x-farendrefci=75831760; Cluster IDs for incoming and
x-farendclusterid=hulk; outgoing call legs
x-farenddevice=DE-SME-1Z;
x-farendaddr=231110; Calling and Called numbers
tag=6698668~5f282315-ee6f
Calling and Called Device
names
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
Phone-based call recording
Recording modes
• Automatic recording
• Selective recording
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
Phone-based call recording
Call modification behavior
• Media for recording calls is torn down during call modifications
BiB
IP Phone A IP Phone B
Recorder
Resume Connect
with same codec
BiB
IP Phone A IP Phone B
Recorder
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
Phone-based call recording
Known issues – Unidirectional streams on the Recorder
Recorder 2 Recorder 2
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
Phone-based call recording
Known issues – Unidirectional streams on the Recorder
Redundancy without load balancing
Sub 1 Rec 1
Recording RL
DC 1 Recording RG1
DC 2 Rec1
Sub 2 Rec 2
Recording RG2
Rec 2
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
Phone-based call recording
Known issues – Unidirectional streams on the Recorder
Redundancy with load balancing
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
Phone-based call recording
Known issues - Call Recording via Service URL in EMCC scenario
Visiting Cluster Home Cluster
IP Phone Recorder
http://10.2.4.1/ccmcip/authenticate.jsp?UserID=rec&Password=xxx&devicename=SEP2C31246A03C5
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
Phone-based call recording
Known issues - Call Recording via Service URL in EMCC scenario
Visiting Cluster Home Cluster
Proxy Server
Recorder
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
Phone-based call recording
Known issues - Built-in Bridge slow memory leak
Modify CallManager Service Parameter "Dialing Forest Dump Enabled" under the
Clusterwide Parameters (System - General) section, and set it to True.
**##*02 - terse/verbose toggle
**##*04 - dump patterns
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
Phone-based call recording
Known issues – Calls InProgress spiking
Calls InProgress
11:20:17 > INVITE
400
250
11:24:43 > CANCEL
200
150
100
50
0
11:20 11:21 11:22 11:23 11:24 11:25 11:26 11:27 11:28 11:29 11:30 11:31 11:32 11:33 11:34 11:35 11:36 11:37
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
Phone-based call recording
Known issues - Transcoder engagement
G.722 G.722
BiB
IP Phone A IP Phone B
Recorder
MOH Disconnect
Transfer G.711
BiB
IP Phone A IP Phone B
Recorder
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
Phone-based call recording
Known issues - Transcoder engagement
Connect
with same codec
G.729
BiB
Region A Region B
Transcoder
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
Phone-based call recording
Known issues – TRP + Transcoder = TRP Port leak
XCoder OpenLogicalChannel/StartMediaTransmission
Calling Party Voice
Called Party Voice
Secure Zone
Call Signaling SIP/SCCP
TRP
G.711
G.722
G.711, G.729
BiB
PSTN
CUBE
IP Phone
Recorder
MTP-TRP# show sccp connections | include inac
sess_id conn_id type state local_ip local_port remote_port remote_ip
43927109 33604999 mtp inactive UNKNOWN 25330 0 UNKNOWN
43927132 33605236 mtp inactive UNKNOWN 25410 0 UNKNOWN
43927237 33606036 mtp inactive UNKNOWN 25558 0 UNKNOWN
43927246 33606090 mtp inactive UNKNOWN 25620 0 UNKNOWN
43927094 33604923 mtp inactive UNKNOWN 25332 0 UNKNOWN
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
Phone-based call recording
Recorder SIP Trunk best practices
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
GW-based Call
Recording via XMF
Gateway-based call recording via XMF
Use cases
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
Gateway-based call recording via XMF
Architecture
CTI/JTAPI
Call Recording
HTTP/XMF Control App
SIP/SCCP
PSTN
Voice GW IP Phone
Recorder
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
Gateway-based call recording via XMF
UC WSAPI – Unified Communications Web Services API
UC WSAPI
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
Gateway-based call recording via XMF
eXtended Media Forking Interface
XMF connection
XMF Provider
act as a server, monitor calls and deliver notifications of call states,
triggers media forking
XMF Application
acts as client, registers with provider, subscribes for notifications,
requests for media forking
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
Gateway-based call recording via XMF
eXtended Media Forking Interface
XMF Provider XMF Application
XMF connection
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Gateway-based call recording via XMF
Basic XMF Provider Configuration
XMF Provider
1. Enable HTTP on IOS
ip http server
ip http max-connections 100
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Gateway-based call recording via XMF
Basic XMF Provider Configuration
XMF Provider
MS-P1-3900(config)# uc wsapi
MS-P1-3900(config-uc-wsapi)# source-address 10.48.52.170
MS-P1-3900(config-wsapi-xmf)# provider xmf
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
Gateway-based call recording via XMF
Basic XMF Provider Configuration
XMF Provider
HTTP Server settings Enables HTTP Server
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
Gateway-based call recording via XMF
Basic XMF Provider Configuration
Set maximum number of failed XMF Provider
UC WSAPI settings message delivery before
unregistering Application
uc wsapi
message-exchange max-failures 1
probing max-failures 3 Set maximum number of
failed probes before
probing interval keepalive 120 unregistering Application
probing interval negative 10
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
Gateway-based call recording via XMF
Basic XMF Provider Configuration
XMF Provider
CUCM Gateway
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
Gateway-based call recording via XMF
Basic XMF Provider Configuration
XMF Provider
Gateway CUCM
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
Gateway-based call recording via XMF
Basic XMF Application Configuration
XMF Application
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
Gateway-based call recording via XMF
XMF Registration process
RequestXmfRegister
CREATED/DISCONNECTED XMF Application
XMF Application
Registration
ResponseXmfRegister
CUCM
XMF Provider
SolicitXmfProbing
XMF Provider
Voice GW ResponseXmfProbing Keepalives
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
Gateway-based call recording via XMF
XMF Registration process – GW debugs
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
Gateway-based call recording via XMF
XMF Registration process – CUCM traces
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<RequestXmfRegister xmlns="http://www.cisco.com/schema/cisco_xmf/v1_0">
<applicationData>
<name>Unified CM 11.5.1.14900-11</name>
<url>http://10.62.150.183:8090/ucm_xmf</url>
</applicationData>
<connectionEventsFilter>CREATED DISCONNECTED </connectionEventsFilter>
<mediaEventsFilter/>
<msgHeader>
<transactionID>Cisco:UCM:CayugaIf:2:2</transactionID>
</msgHeader>
<providerData>
<url>http://10.62.150.156:8090/xmf</url>
</providerData>
</RequestXmfRegister>
</soapenv:Body>
</soapenv:Envelope>
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
Gateway-based call recording via XMF
XMF Registration process – CUCM traces
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
Gateway-based call recording via XMF
XMF Registration process – verify registrations
csr1000v#sh wsapi registration xmf
Provider XMF
=====================================================
registration index: 1
id: CCDEDF16:XMF:Unified CM 11.5.1.14900-11:1
appUrl:http://10.62.150.183:8090/ucm_xmf
appName: Unified CM 11.5.1.14900-11
provUrl: http://10.62.150.156:8090/xmf
prober state: STEADY
connEventsFilter: CREATED|DISCONNECTED
mediaEventsFilter:
registration index: 2
id: CCDEDF55:XMF:Unified CM 11.5.1.14900-11:2
appUrl:http://10.62.150.184:8090/ucm_xmf
appName: Unified CM 11.5.1.14900-11
provUrl: http://10.62.150.156:8090/xmf
prober state: STEADY
connEventsFilter: CREATED|DISCONNECTED
mediaEventsFilter:
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
Gateway-based call recording via XMF
Recording call walk-through
GW is sending XMF message for the First leg (Near End):
Jan 12 14:52:39.252: //WSAPI/XMF/OUTGOING_MESSAGE:: msg_type[21] NotifyXmfConnectionData
Jan 12 14:52:39.252: registrationID 22DCCD6C:XMF:Unified CM 11.5.1.14900-11:2
Jan 12 14:52:39.252: callID: 13
Jan 12 14:52:39.252: connID: 15762
Jan 12 14:52:39.252: guid: 0x56B44800-0x00010000-0x00000037-0x832E300A
Jan 12 14:52:39.252: callingAddrData:
Jan 12 14:52:39.252: addr 30120
Jan 12 14:52:39.252: calledAddrData:
Jan 12 14:52:39.252: addr 30107
SIP INVITE
200OK
Call Setup
PSTN Call Estab
Voice GW IP Phone
Recorder
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
Gateway-based call recording via XMF
Recording call walk-through
GW is sending XMF message for the Second leg (Far End):
Jan 12 14:52:39.252: //WSAPI/XMF/OUTGOING_MESSAGE:: msg_type[21] NotifyXmfConnectionData
Jan 12 14:52:39.252: registrationID 22DCCD6C:XMF:Unified CM 11.5.1.14900-11:2
Jan 12 14:52:39.252: callID: 13
Jan 12 14:52:39.252: connID: 15763
Jan 12 14:52:39.252: guid: 0x56B44800-0x00010000-0x00000037-0x832E300A
Jan 12 14:52:39.252: callingAddrData:
Jan 12 14:52:39.252: addr 30120
Jan 12 14:52:39.252: calledAddrData:
Jan 12 14:52:39.252: addr 30107
SIP INVITE
200OK
Call Setup
PSTN Call Estab
Voice GW IP Phone
Recorder
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 51
Gateway-based call recording via XMF
Recording call walk-through
CUCM is sending Media Forking request for connection:
Jan 12 14:52:41.728: //WSAPI/XMF/INCOMING_MSG:: msg_type[13] RequestXmfConnectionMediaForking
Jan 12 14:52:41.728: registrationID 22DCCD6C:XMF:Unified CM 11.5.1.14900-11:2
Jan 12 14:52:41.728: callID: 13
Jan 12 14:52:41.728: connID: 17464
Jan 12 14:52:41.728: nearEndAddr:
Jan 12 14:52:41.728: ipv4 10.48.46.129
Jan 12 14:52:41.728: port 50752
Jan 12 14:52:41.728: tone 0
Jan 12 14:52:41.728: farEndAddr:
Jan 12 14:52:41.728: ipv4 10.48.46.129
SIP INVITE
Jan 12 14:52:41.728: port 50754
200OK
Jan 12 14:52:41.728: tone 0
Jan 12 14:52:41.728: preserve: 1
Call Setup
PSTN Call Estab
Voice GW
IP Phone
Recorder
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
Gateway-based call recording via XMF
Recording call walk-through
RequestXmfConnectionMediaForking message attributes:
Jan 12 14:52:41.728: nearEndAddr:
Jan 12 14:52:41.728: tone 0
Jan 12 14:52:41.728: farEndAddr:
Jan 12 14:52:41.728: tone 0
SIP INVITE
200OK
Call Setup
PSTN Call Estab
Voice GW
IP Phone
Recorder
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
Gateway-based call recording via XMF
XMF Call correlation
22:09:23.327 |AppInfo |CayugaInterface - processInd - Parsed
Msg{MessageType=MSG_NOTIFY_XMF_CONNECTION_DATA RegId=467428:XMF:Unified CM 11.5.1.14900-11 :19
TransId=6E4590:293 ProbeRegStatus=false CallId=18 ConnId=291 NotificationEventType = CREATED guid =
3393161472-0000065536-0000000117-2710978058 IntfType = CONN_SIP CallDirection= INCOMING}
22:09:24.787 |AppInfo |SIPTcp - wait_SdlReadRsp: Incoming SIP TCP message from 10.48.52.170 on port 30658
index 292:
INVITE sip:730120@10.62.150.183:5061 SIP/2.0
Via: SIP/2.0/TLS 10.48.52.170:5061;branch=z9hG4bK291DB
From: <sip:1001@10.48.52.170>;tag=6E4594-1B89
To: <sip:730120@10.62.150.183>
Date: Fri, 24 Jan 2020 20:32:48 GMT
Call-ID: 84CC5B16-3E1F11EA-8181C2E2-B6CA21F4@10.48.52.170
Cisco-Guid: 3393161472-0000065536-0000000117-2710978058
Supported: 100rel,timer,resource-priority,replaces,sdp-anat,X-cisco-srtp-fallback
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
Gateway-based call recording via XMF
Inter-cluster recording information pass-through - configuration
SME Cluster
Cisco recording
QSIG
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
Gateway-based call recording via XMF
Inter-cluster recording information pass-through – QSIG APDU
07787405.004 |16:32:48.010 |AppInfo |Recording::- (0000009) 07787405.012 |16:32:48.010 |AppInfo |CCQSIGASN -
-encodeRecordingAPDU- apduType=[1]. RawByteOutput:AA068001 00820100
07787405.005 |16:32:48.010 |AppInfo |RCD_Qsig 07787405.013 |16:32:48.013 |AppInfo |RECORDQSIGASN -
-- RecordingQsigInfo -- StructuredInput:value RecordingStart ::= invoke :
mApdutype = 1 {
mInvokeID = 6 invokeID 6,
mRecordingRequestor = 7 operationValue localValue : 60,
mPlayToneDirection = 3 argument
mReqDeviceType = 0 {
mReqRefCI = 29601406 pilotNumber '3735303031'H,
mfrkRefCI =0 requesterDN '32393031'H,
mCtiEventType = 0 requestorType 7,
mCause = 0 toneDirection 3,
mRecorderDn = 75001 requestorDevType 0,
mReqDeviceName =SEPD824BDBA7134 requestorDevName '534550443832344244424137313334'H,
mReqClusterName = cucm193 requestorClusterID '6375636D313933'H,
mRecorderDevName = requestorRefCI 29601406,
mRecorderPartition = frkDevPosition 2,
mfrkDeviceName = restartRecording FALSE,
mfrkClusterID = locale 64,
[…] transactionID 0
mLocale = 64 }
-- End -- }
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
Gateway-based call recording via XMF
Inter-cluster recording information pass-through – missing Recording Info
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
Gateway-based call recording via XMF
Inter-cluster recording information pass-through – no Rerouting CSS
07787452.007 |16:32:48.146 |AppInfo |RECORDQSIGASN -
StructuredOutput:value RecordingStart ::= retError :
{
invokeID 6,
errorValue localValue : 6160,
argument
{
eventType 27,
recorderDeviceName ''H,
recorderPartition ''H,
frkDeviceName ''H,
frkClusterID '48554C4B'H,
frkRefCI 0,
frkDeviceGUID '3434413841383830303030313030303030 ...'H,
cCcause 1114112,
recordingFailurecause 1,
transactionID 0
}
}
07787452.009 |16:32:48.146 |AppInfo |Recording::- (0000009) -sendCTIErrorWithQsigRes: causeTag=[1]. ssCause[1114112]
07787452.011 |16:32:48.147 |AppInfo |GenAlarm: AlarmName = RecordingCallSetupFail, subFac =
CALLMANAGERKeyParam = , severity = 3, AlarmMsg = RecordedDeviceName : SEPD824BDBA7134
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Gateway-based call recording via XMF
Deployment models – centralized call recording
SME Cluster
Cisco
Voice GW recording IP Phones
QSIG
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
Gateway-based call recording via XMF
Deployment models – distributed call recording
SME Cluster
Cisco
Voice GW recording IP Phones
QSIG
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Gateway-based call recording via XMF
Deployment models – optimized call recording
SME Cluster
Cisco
Voice GW recording IP Phones
QSIG
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
Gateway-based call recording via XMF
Deployment models – optimized call recording
<Request xmlns="urn:oasis:names:tc:xacml:2.0:context:schema:os">
<Attribute AttributeId="urn:Cisco:uc:1.0:callingnumber">
<AttributeValue>b0018601001</AttributeValue></Attribute>
<Attribute AttributeId="urn:Cisco:uc:1.0:callednumber">
<AttributeValue>75001</AttributeValue></Attribute>
<Attribute AttributeId="urn:Cisco:uc:1.0:transformedcgpn">
IP Phones <AttributeValue>b0018601001</AttributeValue></Attribute>
<Attribute AttributeId="urn:Cisco:uc:1.0:transformedcdpn">
<AttributeValue>75001</AttributeValue></Attribute>
<Attribute AttributeId="urn:Cisco:uc:1.0:callingdevicename">
<AttributeValue>SEPC40ACB4C5A48</AttributeValue></Attribute>
75001 75002
<Response><Result><Decision>Permit</Decision>
<Obligations><Obligation FulfilOn="Permit" obligationId="divert.simple">
<AttributeAssignment AttributeId="Policy:divert.simple">
<AttributeValue>
<cixml version="1.0”>
<divert><destination>75002</destination></divert>
</cixml>
Branch </AttributeValue></AttributeAssignment>
Central </Obligation></Obligations></Result></Response>
Recorder Recorder
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
Gateway-based call recording via XMF
Known limitation – no call recording after transfer to conference
SIP INVITE
200OK
Call Setup
PSTN Call Estab
Voice GW IP Phone
Recorder
Conference IP Phone
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 63
Gateway-based call recording via XMF
Known limitation – secure calls are not supported by CUCM
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
Gateway-based call recording via XMF
Troubleshooting GW-based recording issues
1: Gateway Preferred
2: Device Preferred
3: Device BIB Only
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
Gateway-based call recording via XMF
Troubleshooting GW-based recording issues
IP Phone registration with Gateway-based recording supported
00607862.004 |14:37:40.528 |AppInfo |SIPTcp - wait_SdlReadRsp: Incoming SIP TCP message from 10.229.68.143
on port 49474 index 2505 with 2371 bytes:
[129636,NET]
REGISTER sip:10.62.150.183 SIP/2.0
Via: SIP/2.0/TCP 10.229.68.143:49474;branch=z9hG4bK551f1cf1
From: <sip:30120@10.62.150.183>;tag=c40acb4c5a4800047265d8ce-4de61f01
To: <sip:30120@10.62.150.183>
Call-ID: c40acb4c-5a480003-1cb8a40d-44ca6840@10.229.68.143
Max-Forwards: 70
Date: Sun, 12 Jan 2020 13:37:32 GMT
CSeq: 101 REGISTER
User-Agent: Cisco-CP9951/9.4.2
[…]
<?xml version="1.0" encoding="UTF-8"?>
<x-cisco-remotecc-request>
[...]
<gatewayrecording></gatewayrecording>
<conferenceDisplayInstance></conferenceDisplayInstance>
</optionsind>
</x-cisco-remotecc-request>
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
Gateway-based call recording via XMF
Troubleshooting GW-based recording issues
CUCM is not able to register with Gateway
Jan 12 11:15:25.411: //WSAPI/XMF/INCOMING_MSG:: msg_type[6] RequestXmfRegister
Jan 12 11:15:25.411: transactionID Cisco:UCM:CayugaIf:4:1
connectionEventsFilter: CREATED|DISCONNECTED
mediaEventsFilter:
Jan 12 11:15:25.411: app url http://10.62.150.183:8090/ucm_xmf
Jan 12 11:15:25.411: app name Unified CM 11.5.1.14900-11
Jan 12 11:15:25.411: prov url http://10.62.150.156:8090/xmf
Jan 12 11:15:25.412: //WSAPI/XMF/registration_base_add_registration: remote url
(http://10.62.150.183:8090/ucm_xmf) not configured
Jan 13 11:15:25.412: //WSAPI//OUTGOING_EXCEPTION:: registrationID[] transactionID[Cisco:UCM:CayugaIf:4:1]
errorCode[ServiceException011], reason[Authentication fail] text[Application URL is not configured on the router.]
uc wsapi
source-address 10.62.150.156
!
provider xmf
remote-url 1 http://10.62.150.183:8090/ucm-xmf << Wrong URL configured
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
Gateway-based call recording via XMF
Troubleshooting GW-based recording issues
CUCM SIP Trunk destination should match WSAPI source-address on GW
uc wsapi
source-address 10.62.150.156
!
provider xmf
remote-url 1 http://10.62.150.183:8090/ucm_xmf
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
Gateway-based call recording via XMF
Monitoring Gateway status
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
Gateway-based call recording via XMF
Troubleshooting GW-based recording issues – trace collection
Show commands
show wsapi registration xmf ! List of Registered CUCMs
show call media-forking ! Displays the forked stream information
Debug commands
debug voip application ! App framework debug
debug voip application media forking ! RTP forking info
debug ccsip message ! SIP signaling
debug wsapi xmf message ! XMF signaling
debug voip rtp packet ! RTP packet flow
Packet captures
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Gateway-based call recording via XMF
Troubleshooting GW-based recording issues – trace collection
Packet captures
utils network capture file xmf-capture size 1500 host ip 10.62.150.156
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Call Recording
Redundancy with
Media-Proxy
Call recording redundancy with Media-Proxy
Use cases
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 73
Call recording redundancy with Media-Proxy
Architecture with Phone-Based recording
Recorder 1
Media Proxy
CUBE
Recorder 2
Signaling
Media
CUCM
Recorder 3
IP Phone
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 74
Call recording redundancy with Media-Proxy
Architecture with Gateway-Based recording
Recorder 1
Media Proxy
CUBE
Recorder 2
Signaling
Media
CUCM
Recorder 3
IP Phone
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 75
Call recording redundancy with Media-Proxy
Feature highlights
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
Call recording redundancy with Media-Proxy
Mandatory recorder policy
Recorder 2
Recorder 3
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 77
Call recording redundancy with Media-Proxy
Media Latching with Gateway
• Media coming from the Gateway is on different IP/Port then advertised in SDP
Media Proxy
INVITE SDP
has a dummy
port 4000
RTP stream coming from GW
has different IP/Port then was
sent by CUCM in SDP
CUCM
Media
Gateway/CUBE
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
Call recording redundancy with Media-Proxy
Media Latching with IP Phone
• Media coming from the SCCP Phone is on different IP/Port then advertised in SDP
Media Proxy
INVITE SDP
has Phone IP
but dummy
port 4000
RTP/SRTP coming from Phone
have different port then was
sent by CUCM in SDP
CUCM
Signaling
Internal/External Media
Party
SCCP Phone
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 79
Call recording redundancy with Media-Proxy
Configuring solution elements
CUBE/Gateway Configuration
ip http server
ip http max-connection 100
ip http timeout-policy idle 600 life 86400 requests 86400
uc wsapi
Gateway/CUBE source-address 10.62.150.156
CUBE: 10.62.150.156
provider xmf
remote-url 1 http://10.62.150.183:8090/ucm_xmf
remote-url 2 http://10.62.150.184:8090/ucm_xmf
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 80
Call recording redundancy with Media-Proxy
Configuring solution elements
Media Proxy configuration: Dial-peer
tagging
media profile recorder 1
media-recording proxy 4 5
proxy policy mandatory 4
Mandatory
Recorder
media class 1
Media Proxy recorder profile 1
Incoming
dial-peer voice 3 voip dial-peer for
MPS: 10.62.154.116 CUCM
incoming called-number 75001
voice-class codec 1
media-class 1
dtmf-relay rtp-nte
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 81
Call recording redundancy with Media-Proxy
Configuring solution elements
Media Proxy configuration:
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 82
Call recording redundancy with Media-Proxy
Configuring solution elements
Recording Profile with DN:
Trunk to Gateway/CUBE:
CUCM
CUCM: 10.62.150.183
CUCM: 10.62.150.184
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
Call recording redundancy with Media-Proxy
Redundancy options – Recorder Hunting dial-peer voice 4 voip
destination-pattern 75001
session protocol sipv2
session target ipv4:10.62.150.171
session transport tcp
voice-class codec 1
Recorder 1 dtmf-relay rtp-nte
Media Proxy no vad
INVITE !
dial-peer voice 5 voip
destination-pattern 75001
Recorder 2
session protocol sipv2
session target ipv4:10.62.150.172
session transport tcp
voice-class codec 1
dtmf-relay rtp-nte
no vad
Recorder 3
MS-P2-4351(config)# voice hunt user-busy
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 87
Call recording redundancy with Media-Proxy
Redundancy options - Load-balancing with CUSP
Recorder 1
Media Proxy
CUBE
Recorder 2
CUSP
Signaling
Media
CUCM
Recorder 3
IP Phone
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 88
Call recording redundancy with Media-Proxy
Redundancy options- Fully redundant architecture
Recorder 1 Recorder 2 Recorder 3 Recorder 4 Recorder 5
CUSP
Media Proxy
Media Proxy Box-to-Box HA
Box-to-Box HA
Signaling
Media
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
Call recording redundancy with Media-Proxy
Restrictions and Limitations
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 90
Call recording redundancy with Media-Proxy
Troubleshooting Media-Proxy
INFO sip:Username@10.62.150.47:5060;transport=tcp SIP/2.0
Via: SIP/2.0/TCP 10.62.150.91:5060;branch=z9hG4bK761A9B
From: <sip:123456@10.62.150.91>;tag=F8C3EE1-129F
To: ”Username" <sip:Username@10.62.150.47;x-nearend;x-refci=25579597;x-nearendclusterid=StandAloneCluster
Call-ID: ade62980-b8c1ede8-23e06-2f69410a@10.62.150.47
User-Agent: Cisco-SIPGateway/IOS-16.11.20180827.020621
Content-Type: application/x-cisco-proxy-recording-status+xml
Content-Length: 348
<recorderList>
<recorder>
<uri>sip:75001@10.62.150.71:5060</uri>
<recorderType>Optional</recorderType>
<status>Success</status>
</recorder>
<recorder>
<uri>sip:75001@10.62.150.72:5060</uri>
<recorderType>Optional</recorderType>
<status>Success</status>
</recorder>
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
Call recording redundancy with Media-Proxy
Troubleshooting Media-Proxy
INFO sip:Username@10.62.150.47:5060;transport=tcp SIP/2.0
Via: SIP/2.0/TCP 10.62.150.91:5060;branch=z9hG4bK761A9B
From: <sip:123456@10.62.150.91>;tag=F8C3EE1-129F
To: ”Username" <sip:Username@10.62.150.47;x-nearend;x-refci=25579597;x-nearendclusterid=StandAloneCluster
Call-ID: ade62980-b8c1ede8-23e06-2f69410a@10.62.150.47
User-Agent: Cisco-SIPGateway/IOS-16.11.20180827.020621
Content-Type: application/x-cisco-proxy-recording-status+xml
Content-Length: 348
<recorderList>
<recorder>
<uri>sip:75001@10.62.150.71:5060</uri>
<recorderType>Optional</recorderType>
<status>Success</status>
</recorder>
<recorder>
<uri>sip:75001@10.62.150.72:5060</uri>
<recorderType>Optional</recorderType>
<status>Failure</status>
<errormessage>503 Service Unavailable</errormessage>
</recorder>
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
Call recording redundancy with Media-Proxy
Troubleshooting Media-Proxy
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
Conclusion
Call recording infrastructure
Callout for action
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
Call recording infrastructure
Look ahead
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
Complete your
online session
survey • Please complete your session survey
after each session. Your feedback
is very important.
• Complete a minimum of 4 session
surveys and the Overall Conference
survey (starting on Thursday) to
receive your Cisco Live t-shirt.
• All surveys can be taken in the Cisco Events
Mobile App or by logging in to the Content
Catalog on ciscolive.com/emea.
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 97
Continue your education
Demos in the
Walk-In Labs
Cisco Showcase
BRKCOL-3672 © 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public 98
Thank you