<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic LUA Traces for SIP Normalization in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/lua-traces-for-sip-normalization/m-p/3462135#M581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;I'm trying to figure out if i'm doing something wrong.&amp;nbsp; I'm looking to get traces for the LUA script to show in CUCM log files.&amp;nbsp; I see the system referencing my LUA script by name in the logs, but my actual attempt to write logging from within the script is not happening.&amp;nbsp; In order to isolate the script down to just to verifying logging is reliable, my script now looks like this.&amp;nbsp; the message "LUA-TRACE: INITIALIZE LUA SCRIPT" does not appear in the CUCM SDL files on the server that is processing the call.&amp;nbsp;&amp;nbsp; This lua script is applied via SIP Profile to a telepresence endpoint.&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;M = {}&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Function M.Inbound_INVITE(msg)&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace.enable()&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace.format("LUA-TRACE: INITIALIZE LUA SCRIPT")&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return M&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;Thanks, &lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;Pat. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2016 19:27:39 GMT</pubDate>
    <dc:creator>phampson</dc:creator>
    <dc:date>2016-08-01T19:27:39Z</dc:date>
    <item>
      <title>LUA Traces for SIP Normalization</title>
      <link>https://community.cisco.com/t5/call-control/lua-traces-for-sip-normalization/m-p/3462135#M581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;I'm trying to figure out if i'm doing something wrong.&amp;nbsp; I'm looking to get traces for the LUA script to show in CUCM log files.&amp;nbsp; I see the system referencing my LUA script by name in the logs, but my actual attempt to write logging from within the script is not happening.&amp;nbsp; In order to isolate the script down to just to verifying logging is reliable, my script now looks like this.&amp;nbsp; the message "LUA-TRACE: INITIALIZE LUA SCRIPT" does not appear in the CUCM SDL files on the server that is processing the call.&amp;nbsp;&amp;nbsp; This lua script is applied via SIP Profile to a telepresence endpoint.&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;M = {}&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Function M.Inbound_INVITE(msg)&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace.enable()&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace.format("LUA-TRACE: INITIALIZE LUA SCRIPT")&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return M&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;Thanks, &lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;Pat. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 19:27:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-traces-for-sip-normalization/m-p/3462135#M581</guid>
      <dc:creator>phampson</dc:creator>
      <dc:date>2016-08-01T19:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: LUA Traces for SIP Normalization</title>
      <link>https://community.cisco.com/t5/call-control/lua-traces-for-sip-normalization/m-p/3462136#M582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is pretty much the minimum script. Do you have the trace enabled in Unified CM and the log level set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 20:29:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-traces-for-sip-normalization/m-p/3462136#M582</guid>
      <dc:creator>Mark Stover</dc:creator>
      <dc:date>2016-08-01T20:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: LUA Traces for SIP Normalization</title>
      <link>https://community.cisco.com/t5/call-control/lua-traces-for-sip-normalization/m-p/3462137#M583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark!!!&amp;nbsp;&amp;nbsp; Good to hear from you (Long time, hope life is treating you well!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As near as i can tell, the prequisites should be in place.&amp;nbsp; The SIP Profile is where i have enable tracing because this is from a SIP Endpoint (i'm trying to modify incoming invite from a telepresence device).&amp;nbsp; I see an entry "getScriptNameFromSIPProfile" with the name of my Normalization script, but not the log entry i'm trying to write.&amp;nbsp; I verified the endpoint i'm dialing from has that SIP profile assigned and has been reset.&amp;nbsp;&amp;nbsp; I'm only looking on the server processing the invite.&amp;nbsp; I'm assuming the LUA work is done on CUCM server processing the call.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 21:03:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-traces-for-sip-normalization/m-p/3462137#M583</guid>
      <dc:creator>phampson</dc:creator>
      <dc:date>2016-08-01T21:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: LUA Traces for SIP Normalization</title>
      <link>https://community.cisco.com/t5/call-control/lua-traces-for-sip-normalization/m-p/3462138#M584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If what you posted matches what's in your script, then you might have some syntax errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. the word function should be all lower case&lt;/P&gt;&lt;P&gt;2. the word "inbound" should be all lower case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;M = {}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;trace.enable()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Calibri,sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-family: Calibri,sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;function M.inbound_INVITE(msg)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Calibri,sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace.format("LUA-TRACE: INITIALIZE LUA SCRIPT")&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Calibri,sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;end&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Calibri,sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-family: Calibri,sans-serif; color: #000000;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;return M&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Calibri,sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 18:06:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-traces-for-sip-normalization/m-p/3462138#M584</guid>
      <dc:creator>Mark Stover</dc:creator>
      <dc:date>2016-08-03T18:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: LUA Traces for SIP Normalization</title>
      <link>https://community.cisco.com/t5/call-control/lua-traces-for-sip-normalization/m-p/3462139#M585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How embarrasing!&amp;nbsp;&amp;nbsp; You'd think I'd been around long enough to know not to make notes in MS Word then copy them into the editor.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was it my friend!&amp;nbsp;&amp;nbsp; Now i can move on to the next failure!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2016 21:07:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-traces-for-sip-normalization/m-p/3462139#M585</guid>
      <dc:creator>phampson</dc:creator>
      <dc:date>2016-08-03T21:07:40Z</dc:date>
    </item>
  </channel>
</rss>

