<div dir="ltr">Matt,<div><br></div><div>I took a look at your script and there's definitely a couple of problems.</div><div><br></div><div>Try using this:</div><div><div>M = {}</div><div><br></div><div>local function process_outbound_invite(msg)</div>
<div><span class="" style="white-space:pre"> </span>local method, ruri, ver = msg:getRequestLine()</div><div><span class="" style="white-space:pre"> </span>ruri = ruri.gsub("5060", "5061") </div><div><span class="" style="white-space:pre"> </span>msg:setRequestUri(ruri)</div>
<div>end</div><div><br></div><div>M.outbound_INVITE = process_outbound_invite</div><div><br></div><div>return M</div></div><div><br></div><div>Remember to reset the SIP Trunk after applying the new script.</div><div><br></div>
<div>Brian</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 14, 2014 at 11:29 AM, Brian Meade <span dir="ltr"><<a href="mailto:bmeade90@vt.edu" target="_blank">bmeade90@vt.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Matt,<div><br></div><div>Cisco TAC doesn't support SIP Normalization Scripts. Developer support has to be used for things like this.</div>
<span class="HOEnZb"><font color="#888888"><div><br></div><div>Brian</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Fri, Mar 14, 2014 at 10:13 AM, Matt Slaga (AM) <span dir="ltr"><<a href="mailto:matt.slaga@dimensiondata.com" target="_blank">matt.slaga@dimensiondata.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It’s the request line (INVITE <a>sip:firstname.lastname@domain.com:<b>5060</b></a> SIP/2.0<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">We attempted to open a TAC case on this issue, and I’ve never seen Cisco toss a hot potato that fast in my 15 years of dealing with them. It’s like I clicked ‘send’ and got a reply back from an engineer saying ‘not supported’. That’s the first I’ve seen a viable option with the CUCM interface rejected as not supported.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Bernhard Albler [mailto:<a href="mailto:bernhard.albler@gmail.com" target="_blank">bernhard.albler@gmail.com</a>] <br>
<b>Sent:</b> Friday, March 14, 2014 10:06 AM</span></p><div><br><b>To:</b> Matt Slaga (AM)<br><b>Cc:</b> 'Cisco-Voip-Puck' (<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a>)<br>
<b>Subject:</b> Re: [cisco-voip] UCM 9.1 SIP Normalization Rules<u></u><u></u></div><p></p></div></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p><div><p class="MsoNormal">
Hi matt,<u></u><u></u></p><div><div><div><p class="MsoNormal">which line are you trying to change? The To Field(<a href="http://TO:blabla@blabla.com:5060" target="_blank">TO:blabla@blabla.com:5060</a> or the request Line (INVITE...)<u></u><u></u></p>
</div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">thanks<u></u><u></u></p></div><div><p class="MsoNormal">bernhard<u></u><u></u></p></div></div></div></div><div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
<u></u> <u></u></p><div><p class="MsoNormal">On Fri, Mar 14, 2014 at 2:18 PM, Matt Slaga (AM) <<a href="mailto:matt.slaga@dimensiondata.com" target="_blank">matt.slaga@dimensiondata.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="MsoNormal">I’m attempting to apply a SIP Normalization rule to make a port adjustment on SIP calls between UCM and Lync 2013.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">In the header, UCM sends the port number as 5060. Lync has problems digesting this when referring the call to another pool and wants to see the header at 5061.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">The script we are attempting to use is below. It has been applied to the various SIP trunks between UCM and Lync.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">When reviewing traces, the port is not being adjusted. Either the LUA script is wrong below, or for some reason it is not being applied.<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">
Any thoughts?<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#333333">M = {}<br>
function M.outbound_INVITE(msg)<br>local method, ruri, ver = msg:getRequestLine()<br>local uri = string.gsub(ruri, "5060", "5061") <br>msg:setRequestUri(uri)<br>end<br>return M</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><img border="0" width="861" height="295" src="cid:image001.png@01CF3F6D.FEF57CC0"><u></u><u></u></p><p class="MsoNormal">
<u></u><u></u></p><p class="MsoNormal"><img border="0" width="843" height="525" src="cid:image002.png@01CF3F6D.FEF57CC0"><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">
<u></u><u></u></p><p class="MsoNormal">Matt Slaga<u></u><u></u></p><p class="MsoNormal">Dimension Data<u></u><u></u></p><p class="MsoNormal"><a href="Tel:+1-571-203-4132" target="_blank">Tel:+1-571-203-4132</a><u></u><u></u></p>
<p class="MsoNormal"><a href="mailto:Matt.Slaga@DimensionData.com" target="_blank">Matt.Slaga@DimensionData.com</a><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom:12.0pt">
<br>_______________________________________________<br>cisco-voip mailing list<br><a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br><a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><u></u><u></u></p>
</blockquote></div><p class="MsoNormal"><br><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <br>Bernhard Albler, <a href="tel:%2B4369917207384" value="+4369917207384" target="_blank">+4369917207384</a><br>
--<br>"Was Nachwelt! Wie komm' ich dazu was für die Nachwelt zu tun? Was hat denn die Nachwelt für mich getan?"<br>--Carl Friedrich Zelter <u></u><u></u></p></div></div></div><p class="MsoNormal"><br><br><span style="color:white">itevomcid</span> <u></u><u></u></p>
</div></div><br>_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>