cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
241
Views
2
Helpful
5
Replies

Adding P-RTP-Stat header to the BYE and 200 messages for call stats

mm322
Level 1
Level 1

Hello everyone,

I would like to do what explained in the title of this post and more in details in this guide below:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/voice/cube_sip/configuration/xe-3s/cube-sip-xe-3s-book/m_voi-report-end-cal.html#reference_7FFEE276A3FB462A94DB26A4EB0C6164

However I cannot find any example on how the headers should be specified in the specific commands: 

rule 1 request bye sip-header p-rtp-stat add "???????"

rule 2 response 200 sip-header p-rtp-stat add "???????"

Can anyone help on this?

Thanks

 

1 Accepted Solution

Accepted Solutions

You don’t need the SIP profile rule at all. CUBE will add the header on its own when it has the RTCP-provided data.

View solution in original post

5 Replies 5

Jonathan Schulenberg
Hall of Fame
Hall of Fame

That header is enabled by default but requires RTCP to have negotiated during the call to calculate the statistics. That is disabled by default in CUCM for audio-only calls. You can enable that cluster-wide under System > Enterprise Phone Config. Verify that the SDP offer/answer negotiates RTCP initially before you look for the P-RTP-Stat header.

If you have QoS fully deployed be aware that enabling RTCP adds 5% to the per-call bandwidth. See the Voice Codec Calculator.  This is not accounted for in CUCM Location Based CAC, only in IOS on the LLQ class-map. You’d need to manually adjust one or the other (Location bandwidth down or IOS class-map bandwidth up) to make room for the RTCP packets.

PS- That’s an old version of the guide. Current: Cisco Unified Border Element Configuration Guide - Cisco IOS XE 17.6 Onwards - Chapter: Call Quality Statistics 

Many thanks Jonathan, final goal is to get RTP statistics in the CMR.

Does it mean that after setting RTCP: Enabled under System > Enterprise Phone Config, I may find such fields populated also for the calls involving the CUBE in question? (bit confused on the whole process as you may notice)

 

 

Yep. I believe that will require a phone Apply Config and Reset to take effect. Also be mindful that it can be overridden at the Common Device Configuration or on individual IP Phones.

And don’t forget to remove those SIP profile rules you added. 

Didn't manage to configure those SIP profile rules as, as mentioned at the beginning of this post, could not figure out how the required header string should be specified: 

CUBE_PRI(config-class)#rule 1 request bye sip-header p-rtp-stat add ?
LINE String to add as a header

I assume it should be:

CUBE_PRI(config-class)#rule 1 request bye sip-header p-rtp-stat add "P-RTP-Stat:" --- but then? Should I specify somehow the details about packets sent/received/lost, etc?

 

---------------

As for the RTCP I actually don't find such option under Common Device Configuration or Phone configuration.

 

You don’t need the SIP profile rule at all. CUBE will add the header on its own when it has the RTCP-provided data.