cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1842
Views
0
Helpful
3
Replies

CUBE SIP/SDP Modification

Marek Tarnoci
Level 1
Level 1

Hello,

I would like to modify SDP on Cube, that if SDP includes crypto lines but audio/video profile is AVP, change it to SAVP and include the X-cisco-srtp-fallback supported option. I know, that this is possible on CUCM using Normalisation script, also on Cube SP edition using Lua script, but is it possible also on Cube using SIP Profiles? I have Cube connected to Third party Call control, which not allow configuration of Normalisation script. 

Thanks

3 Replies 3

Hi Marek,

It is possible to modify, add sdp header in cube using sip profiles. For more info please find the below link

http://www.cisco.com/c/en/us/support/docs/voice-unified-communications/unified-border-element/105624-cube-sip-normalization.html

Hi,

Thanks for the answer, I took a look to the documentation, but seems what I want to do is not possible. (conditional modification)

What I want to achieve is: if INVITE with RTP/AVP and crypto comes in, change RTP/AVP to RTP/SAVP, othervice leave it as it is:

RTP/AVP with crypto lines:

m=audio 3232 RTP/AVP 115 102 9 15 0 8 18 101
a=crypto:1 AES_CM_256_HMAC_SHA1_80 inline:pa3unywt2r03WbHw2rtAh02FUyJjTqpE7V+WGvO0nJkxuWq8KsCddlhYo7RghA==|2^31
a=crypto:2 AES_CM_256_HMAC_SHA1_32 inline:0eX7q06OBEPkMWhV7uJnb5HnQMhb4W6kmdUHxv0/V5nsnReS6Tr0See5dJNmcQ==|2^31
a=crypto:3 AES_CM_128_HMAC_SHA1_80 inline:22lktYUMM9+TV+fw9y3MVGlJiIm0CK1L/Z+5vLlY|2^31
a=crypto:4 AES_CM_128_HMAC_SHA1_32 inline:oDrCVyWGn91tnMe5wBpCRp6oSI+PgWZjb1t4fHH1|2^31
m=application 33183 UDP/BFCP *
a=floorctrl:c-s
a=floorid:1 m-stream:3
a=setup:actpass
a=connection:new

Change RTP/AVP to RTP/SAVP because SDP contains crypto:

m=audio 3232 RTP/SAVP 115 102 9 15 0 8 18 101
a=crypto:1 AES_CM_256_HMAC_SHA1_80 inline:pa3unywt2r03WbHw2rtAh02FUyJjTqpE7V+WGvO0nJkxuWq8KsCddlhYo7RghA==|2^31
a=crypto:2 AES_CM_256_HMAC_SHA1_32 inline:0eX7q06OBEPkMWhV7uJnb5HnQMhb4W6kmdUHxv0/V5nsnReS6Tr0See5dJNmcQ==|2^31
a=crypto:3 AES_CM_128_HMAC_SHA1_80 inline:22lktYUMM9+TV+fw9y3MVGlJiIm0CK1L/Z+5vLlY|2^31
a=crypto:4 AES_CM_128_HMAC_SHA1_32 inline:oDrCVyWGn91tnMe5wBpCRp6oSI+PgWZjb1t4fHH1|2^31
m=application 33183 UDP/BFCP *
a=floorctrl:c-s
a=floorid:1 m-stream:3
a=setup:actpass
a=connection:new

Marek,

This might be possible with the CUBe normalization scrip but if you have something specific to m=audio line when crypto is there.

So for example let's say every time SDP has crypto it will also have 115 in m=audio line.

In that case you could use example script like:

request INVITE sdp-header Audio-Media modify "m=audio(.*)RTP/AVP(.*)115(.*)" "m=audio\1RTP/SAVP\2 115 \3"

So this matches two conditions when RTP/AVP and 115 is there. But I don't know if there is anything specific to m=audio line when crypto is there in your case. Would need to compare two INVITES.

BTW: all normalization scripts can be tested on:

http://sip-profile.54.227.241.219.xip.io/

Leszek