<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">You can also put the alerting name in double-quotes and get the same result, but I like the LUA script better. I used it a few days ago.<br><br><div id="AppleMailSignature" dir="ltr">Sent from my iPhone</div><div dir="ltr"><br>On 1 Aug 2019, at 18:05, Jinto Alakkal Kunjumon <<a href="mailto:jalakkal@uoguelph.ca">jalakkal@uoguelph.ca</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#2F5496;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#2F5496">Thanks for sharing this Anthony, cool stuff. I am also sharing a link which might be helpful for everyone.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496"><o:p> </o:p></span></p>
<p class="MsoNormal"><a href="https://community.cisco.com/t5/collaboration-voice-and-video/a-guide-to-sip-normalization-on-cucm-and-lua-scripting/ba-p/3099409">https://community.cisco.com/t5/collaboration-voice-and-video/a-guide-to-sip-normalization-on-cucm-and-lua-scripting/ba-p/3099409</a><span style="color:#2F5496"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496">Jinto.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#2F5496"><o:p> </o:p></span></p>
<p class="MsoNormal"><b>From:</b> cisco-voip <<a href="mailto:cisco-voip-bounces@puck.nether.net">cisco-voip-bounces@puck.nether.net</a>>
<b>On Behalf Of </b>Anthony Holloway<br>
<b>Sent:</b> Thursday, August 01, 2019 12:40 PM<br>
<b>To:</b> Cisco VoIP Group <<a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a>><br>
<b>Subject:</b> [cisco-voip] PSA: Hunt Groups and Alerting Names<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I found a defect (<a href="https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvn39109"><span style="color:#0563C1">CSCvn39109</span></a>) 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.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">That Lua script looks like this:<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">M = {}</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">local function hunt_uri_rollback(msg)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> local old_call_info = msg:getHeader("Call-Info")</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> local new_call_info = string.gsub(old_call_info, "huntpiloturi=\"%%22(.*)%%22(.*)\";", "huntpiloturi=\"%1\"%2;")</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> msg:modifyHeader("Call-Info", new_call_info)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">end</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">M.outbound_INVITE = hunt_uri_rollback</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">M.outbound_UPDATE = hunt_uri_rollback</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">return M</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Again, you apply it to a SIP Profile, which you then apply to the phone. Then restart the phone.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The Pre-Lua script Call-Info header looks like this:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Call-Info: <urn:x-cisco-remotecc:callinfo>; security= Unknown; orientation= from; gci= 4-166949;
<b>huntpiloturi="%22Your Hunt Pilot Name%22<sip:\+<a href="mailto:16125551212@10.1.1.10">16125551212@10.1.1.10</a>>";</b> isVoip; call-instance= 1</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The Post-Lua script Call-Info header looks like this:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">Call-Info: <urn:x-cisco-remotecc:callinfo>; security= Unknown; orientation= from; gci= 4-166949;
<b>huntpiloturi="Your Hunt Pilot Name"<sip:\+<a href="mailto:16125551212@10.1.1.10">16125551212@10.1.1.10</a>>;</b> isVoip; call-instance= 1 </span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">PS Make sure you have the CM Advanced Service Parameter set to True (default): <span style="font-size:12.0pt;font-family:"Arial",sans-serif">Display Hunt Pilot Name or DN for Hunt Group Calls When Alerting.</span><o:p></o:p></p>
</div>
</div>
</div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>cisco-voip mailing list</span><br><span><a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a></span><br><span><a href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</a></span><br></div></blockquote></body></html>