cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
664
Views
0
Helpful
1
Replies

SIP Normalization - Remove Header

gpsriramdc
Level 4
Level 4

Hi All,

Just try to remove the Contact Header from the Inbound Messages to CUCM. I tried with the following syntax but there is no normalization happened.

Option 1:

M = {}

function M.inbound_ANY(msg)

msg:removeHeader("Contact")

end

return M

Option 2:

M = {}

function M.inbound_ANY(msg)

if msg:getHeader("Contact")

then

msg:removeHeader("Contact")

end

return M

1 Reply 1

Ayodeji Okanlawon
VIP Alumni
VIP Alumni

Hi,

Option should work...Did you apply the script to the sip trunk?

Can you send a sample trace from cucm..Perhaps the sytax for the contact field is different in the received invite.

The syntax for option two is not correct and you dont need to over complicate the script

Please rate all useful posts

"opportunity is a haughty goddess who waste no time with those who are unprepared"

Please rate all useful posts