<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">...and I just realized I did it in 12.5. <br><br><div id="AppleMailSignature" dir="ltr">Sent from my iPhone</div><div dir="ltr"><br>On 1 Aug 2019, at 18:32, Anthony Holloway <<a href="mailto:avholloway+cisco-voip@gmail.com">avholloway+cisco-voip@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">I tried the double quote trick at first, based on a forum post I saw, but it didn't work for me.<div><br></div><div>In the same post, someone posted a sample Lua script, but that also did not work for me, so I wrote my own.</div><div><br></div><div>Post in question:</div><div><a href="https://community.cisco.com/t5/unified-communications/hunt-pilot-alerting-name-not-working-in-11-5-su6/td-p/3867489">https://community.cisco.com/t5/unified-communications/hunt-pilot-alerting-name-not-working-in-11-5-su6/td-p/3867489</a> <br></div><div><br></div><div>YMMV.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 1, 2019 at 12:09 PM James Buchanan <<a href="mailto:james.buchanan2@gmail.com">james.buchanan2@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div 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="gmail-m_5274446921335173441AppleMailSignature" 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" target="_blank">jalakkal@uoguelph.ca</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr">
<div class="gmail-m_5274446921335173441WordSection1">
<p class="MsoNormal"><span style="color:rgb(47,84,150)">Thanks for sharing this Anthony, cool stuff. I am also sharing a link which might be helpful for everyone.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(47,84,150)"><u></u> <u></u></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" target="_blank">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:rgb(47,84,150)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(47,84,150)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(47,84,150)">Jinto.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(47,84,150)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(47,84,150)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b>From:</b> cisco-voip <<a href="mailto:cisco-voip-bounces@puck.nether.net" target="_blank">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" target="_blank">cisco-voip@puck.nether.net</a>><br>
<b>Subject:</b> [cisco-voip] PSA: Hunt Groups and Alerting Names<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I found a defect (<a href="https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvn39109" target="_blank"><span style="color:rgb(5,99,193)">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.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></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.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">That Lua script looks like this:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">M = {}</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">local function hunt_uri_rollback(msg)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> local old_call_info = msg:getHeader("Call-Info")</span><u></u><u></u></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><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> msg:modifyHeader("Call-Info", new_call_info)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">end</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">M.outbound_INVITE = hunt_uri_rollback</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">M.outbound_UPDATE = hunt_uri_rollback</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">return M</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Again, you apply it to a SIP Profile, which you then apply to the phone. Then restart the phone.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The Pre-Lua script Call-Info header looks like this:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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" target="_blank">16125551212@10.1.1.10</a>>";</b> isVoip; call-instance= 1</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The Post-Lua script Call-Info header looks like this:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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" target="_blank">16125551212@10.1.1.10</a>>;</b> isVoip; call-instance= 1 </span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">PS Make sure you have the CM Advanced Service Parameter set to True (default): <span style="font-size:12pt;font-family:Arial,sans-serif">Display Hunt Pilot Name or DN for Hunt Group Calls When Alerting.</span><u></u><u></u></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" target="_blank">cisco-voip@puck.nether.net</a></span><br><span><a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a></span><br></div></blockquote></div></blockquote></div>
</div></blockquote></body></html>