cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12412
Views
6
Helpful
3
Replies

SIP Normalization Script example to remove the advertised Update in the Allow

Doug von Holtz
Level 4
Level 4

Unfortunately we do not have a CUBE in the call flow. If we did I would use the following to perform what i need to accomplish:

voice service voip

sip
  sip-profiles 1

voice class sip-profiles 1
request ANY sip-header Allow-Header modify " UPDATE," ""
response ANY sip-header Allow-Header modify " UPDATE," ""

However what we have is a SIP trunk directly from a CUCM 10.5 server to the CCE CVP. I understand i could remove the UPDATE from the allow in the header with a Normalization Script, does anyone have an example.

I believe it should look like the following:

1.    M = {}
2.    function M.inbound_INVITE(msg)
3.        msg:removeHeaderValue("Allow", " UPDATE")
4.    end
5.    function M.outbound_INVITE(msg)
6.        msg:removeHeaderValue("Allow", " UPDATE")
7.    end
8.    return M

Thank you in advance for any help

-Doug

3 Replies 3

ryanticer
Level 1
Level 1

What you have looks like it should work for the initial invites, don't forget the subsequent response messages to the INVITE though:

M = {}

function M.inbound_INVITE(msg)

    msg:removeHeaderValue("Allow", "UPDATE")

end

function M.outbound_INVITE(msg)

    msg:removeHeaderValue("Allow", "UPDATE")

end

function M.inbound_ANY_INVITE(msg)

    msg:removeHeaderValue("Allow", "UPDATE")

end

function M.outbound_ANY_INVITE(msg)

    msg:removeHeaderValue("Allow", "UPDATE")

end

return M

I recommend applying the profile and testing (I recommend on the trunk - the sip profile sip normalization selection doesn't work sometimes). You can use RTMT to grab CM traces and load them in to translator X to see how the SIP messaging turns out after the transformation.

Developer Guide for SIP Transparency and Normalization - Cisco

Thanks!

Ryan Ticer

Ryan,

Thanks for the sanity check, I will test and let you know.

-Doug

 

 ryanticer post worked for me!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: