ā06-04-2019 08:08 AM
We upgraded from CUCM 11.5 SU5 to SU6 recently and have discovered that alerting for the hunt pilot name is not being displayed on the phone any more. We tested with 88xx, 78xx, and 79xx series phones.
Has anyone else encountered this?
Solved! Go to Solution.
ā06-06-2019 10:59 AM
This normalization script works...
M = {}
function M.outbound_INVITE(msg)
local huntpilot = msg:getHeader("Call-Info")
local output = string.gsub(huntpilot,'huntpiloturi=\"(.*)<sip:(.*)>\"','huntpiloturi=\"%1\"<sip:%2>')
msg:modifyHeader("Call-Info",output)
end
return M
ā06-05-2019 11:12 AM
So I found in the sdl logs that the format of the huntpiloturi tag in the Call-Info field on the SIP invite changed between SU5 and SU6. The position of the double quotes has changed...
SU5:
huntpiloturi="Test Hunt Group"<sip:12345@192.0.0.1>
SU6:
huntpiloturi="Test Hunt Group<sip:12345@192.0.0.1>"
This might be related to CSCvn39109, but that states the update was made in SU5.
I am trying to work around this with a SIP normalization, but am running into an error with the gsub (string expected, got nil).
Any assistance would be appreciated. My script is...
M = {}
function M.outbound_INVITE(msg)
local huntpilot = msg:getHeaderValueParameter("Call-Info", "huntpiloturi")
local output = string.gsub(huntpilot,'\"(.*)<sip:(.*)>\"', '\"%1\"<sip:%2>')
msg:addHeaderUriParameter("Call-Info", "huntpiloturi", output)
end
return M
ā06-06-2019 10:59 AM
This normalization script works...
M = {}
function M.outbound_INVITE(msg)
local huntpilot = msg:getHeader("Call-Info")
local output = string.gsub(huntpilot,'huntpiloturi=\"(.*)<sip:(.*)>\"','huntpiloturi=\"%1\"<sip:%2>')
msg:modifyHeader("Call-Info",output)
end
return M
ā06-13-2019 11:00 AM
Hello! I have a silly question. I am experiencing this behavior as well and it sounds like you have a good fix. My question is where do you apply this? I was under the impression that normalization rules got applied to SIP trunks. In our situation the connection from the PSTN is still H.323 but the phones are SIP. I apologize if this is foolish but I would appreciate some direction.
Thanks!
Justin
ā06-13-2019 11:04 AM
My mistake, I should have known the SIP profile.
Thanks All
ā06-13-2019 11:44 AM
As an alternative to this script, I found that encapsulating the hunt pilot alerting name in CUCM with a double quote at the start and end also works.
ā09-26-2019 06:45 AM
That is also exactly what the Script does. IMO this is a Bug and should be fixed. We upgraded to 12.5 last weekend and the issue still persists.
ā08-01-2019 02:06 AM - edited ā08-01-2019 10:31 AM
I am seeing this problem in CUCM 11.5(1)SU5, so it's not just SU6.
Also, your script wasn't working for me, but this modified version does:
M = {} local function hunt_uri_rollback(msg) local old_call_info = msg:getHeader("Call-Info") local new_call_info = string.gsub(old_call_info, "huntpiloturi=\"%%22(.*)%%22(.*)\";", "huntpiloturi=\"%1\"%2;") msg:modifyHeader("Call-Info", new_call_info) end M.outbound_INVITE = hunt_uri_rollback M.outbound_UPDATE = hunt_uri_rollback return M
ā08-30-2019 04:45 AM
That didn't work for me on 11.5SU6 but I ended up just quoting the alerting name.
ā01-15-2020 11:18 AM
It worded for 12.5.1.11900-146 also.
ā09-06-2019 06:53 AM
I can also confirm putting the descriptive name within the alerting name field in double quotes works around this issue.
Thanks for posting and sharing
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide