Thanks for sharing this Anthony, cool stuff. I am also sharing a link which 
might be helpful for everyone.

https://community.cisco.com/t5/collaboration-voice-and-video/a-guide-to-sip-normalization-on-cucm-and-lua-scripting/ba-p/3099409

Jinto.


From: cisco-voip <[email protected]> On Behalf Of Anthony 
Holloway
Sent: Thursday, August 01, 2019 12:40 PM
To: Cisco VoIP Group <[email protected]>
Subject: [cisco-voip] PSA: Hunt Groups and Alerting Names

I was configuring some new stuff for a customer recently, and as I was making 
test calls, I noticed the 7800/8800 series phones were not showing the Hunt 
Pilot Alerting Name like I'm used to.

I found a defect 
(CSCvn39109<https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvn39109>) which 
basically says that CUCM 11.5(1)SU5+ was updated to change the way it presents 
the Hunt Pilot name to the phone, and the phone firmware has not been updated 
to parse it.

I implemented a SIP Normalization script on the SIP Profile applied to the 
phones, which rolls back the format to pre- CUCM 11.5(1)SU5.

That Lua script looks like this:

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

Again, you apply it to a SIP Profile, which you then apply to the phone.  Then 
restart the phone.

The Pre-Lua script Call-Info header looks like this:

Call-Info: <urn:x-cisco-remotecc:callinfo>; security= Unknown; orientation= 
from; gci= 4-166949; huntpiloturi="%22Your Hunt Pilot 
Name%22<sip:\[email protected]<mailto:[email protected]>>"; isVoip; 
call-instance= 1

The Post-Lua script Call-Info header looks like this:

Call-Info: <urn:x-cisco-remotecc:callinfo>; security= Unknown; orientation= 
from; gci= 4-166949; huntpiloturi="Your Hunt Pilot 
Name"<sip:\[email protected]<mailto:[email protected]>>; isVoip; 
call-instance= 1

Seeing the alerting name on the phone is a really useful feature in my opinion, 
and so I hope this helps you out until Cisco fixes this with a software patch.

PS Make sure you have the CM Advanced Service Parameter set to True (default): 
Display Hunt Pilot Name or DN for Hunt Group Calls When Alerting.
_______________________________________________
cisco-voip mailing list
[email protected]
https://puck.nether.net/mailman/listinfo/cisco-voip

Reply via email to