<?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 Re: Lua Normalization Script - Changing max-fs in 200 OK in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4874739#M3420</link>
    <description>&lt;P&gt;Thanks for your explanation and reply.&amp;nbsp; I agree to everything that you're saying and have previously voiced my concern about this.&amp;nbsp; I think the best idea is to remove this media description so the outgoing sdp accepts anything that our 3rd party platform is capable of doing.&amp;nbsp; I've tested this theory and it has worked 100% of the time.&amp;nbsp; I've also been able to remove the sdp from the initial INVITE and apply the sdp from the 200_INVITE reply but not able to 'cherry pick' just the max-fs media.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This 3rd party system keeps us on our toes.&amp;nbsp; This seems to be an on-going issue in that we have to modify certain things to accommodate their hiccups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either way, thank you greatly for your input and I'll mark your response as an acceptable solution, because it is!&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 20:16:20 GMT</pubDate>
    <dc:creator>Xisby</dc:creator>
    <dc:date>2023-07-14T20:16:20Z</dc:date>
    <item>
      <title>Lua Normalization Script - Changing max-fs in 200 OK</title>
      <link>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4872673#M3412</link>
      <description>&lt;P&gt;I'm attempting to change the SDP media description attributes under video in the 200 OK outbound INVITE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;Under m=video&lt;/P&gt;&lt;P&gt;a=fmtp:97 profile-level-id=42801F;packetization-mode=0;max-mbps=244800;&lt;STRONG&gt;max-fs=8161&lt;/STRONG&gt;;level-asymmetry-allowed=1&lt;/P&gt;&lt;P&gt;Wanting to change max-fs to 3600.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone ever needed to do this?&amp;nbsp; I'm able to modify a lot of things within normalization but can't seem to modify just this value.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 16:55:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4872673#M3412</guid>
      <dc:creator>Xisby</dc:creator>
      <dc:date>2023-07-12T16:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Lua Normalization Script - Changing max-fs in 200 OK</title>
      <link>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4872692#M3413</link>
      <description>&lt;P&gt;From the docs, it seems you would use &lt;STRONG&gt;getSdp&lt;/STRONG&gt;/&lt;STRONG&gt;setSdp&lt;/STRONG&gt; for manipulation media, though it seems you would need to 'manually' manipulate the SDP payload via Lua primitives, perhaps:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;M = {}
function M.outbound_INVITE(msg)
    local sdp = msg:getSdp()
    if sdp
        then
            sdp = sdp:gsub("max-fs=%d*", "max-fs=3600")
            msg:setSdp(sdp)
        end
    end
return M&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://www.lua.org/pil/20.2.html" target="_self"&gt;&amp;nbsp;Lua pattern matching reference&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 17:24:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4872692#M3413</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-07-12T17:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lua Normalization Script - Changing max-fs in 200 OK</title>
      <link>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4872850#M3414</link>
      <description>&lt;P&gt;Thanks for this.&amp;nbsp; Unfortunately this didn't resolve as that script doesn't change the value.&amp;nbsp; Wild cards or, Magic Characters don't seem to have much of an affect in sdp manipulation.&amp;nbsp; This script simply doesn't do anything.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 22:29:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4872850#M3414</guid>
      <dc:creator>Xisby</dc:creator>
      <dc:date>2023-07-12T22:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Lua Normalization Script - Changing max-fs in 200 OK</title>
      <link>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4873748#M3415</link>
      <description>&lt;P&gt;Appears "-" is a reserved/magic character in Lua patterns, escaping seems to work in the &lt;A href="https://www.lua.org/cgi-bin/demo" target="_self"&gt;Lua demo tool&lt;/A&gt; (I don't have an easy way to lab test:)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dstaudt_0-1689267167360.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/190434i197C37DBC59FC661/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dstaudt_0-1689267167360.png" alt="dstaudt_0-1689267167360.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 16:53:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4873748#M3415</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-07-13T16:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lua Normalization Script - Changing max-fs in 200 OK</title>
      <link>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4873867#M3416</link>
      <description>&lt;P&gt;Placing the % worked!&amp;nbsp; I'm able to manually change it to a static number. However, I've been now asked to match the attribute of the inbound.INVITE and apply it to the outbound_200_OK SDP.&amp;nbsp; &amp;nbsp;This has been a challenge..&amp;nbsp; Thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 20:22:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4873867#M3416</guid>
      <dc:creator>Xisby</dc:creator>
      <dc:date>2023-07-13T20:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lua Normalization Script - Changing max-fs in 200 OK</title>
      <link>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4873892#M3417</link>
      <description>&lt;P&gt;It might be good to understand a bit more about what you're trying to accomplish and why.&amp;nbsp; If you are modifying the SDP on SIP packets going out from CUCM via Lua, I could see that being a problem, as CUCM will not recognize/understand that you have made that change on its behalf.&amp;nbsp; E.g., if you change &lt;STRONG&gt;max-fs=3600&lt;/STRONG&gt;, the far-end will happily assume that is what CUCM intended to negotiate, but CUCM will set up its receiving device/MTP using what it &lt;EM&gt;thinks&lt;/EM&gt; it negotiated, i.e. &lt;STRONG&gt;max-fs=8161&lt;/STRONG&gt;.&lt;BR /&gt;I'm not an expert on trunking/H.323/gateways, but AFAIK CUCM handles media bandwidth/format negotiations via regions: &lt;A href="https://ciscoshizzle.blogspot.com/2015/06/regions-and-locations-in-cucm-for-video.html" target="_blank"&gt;https://ciscoshizzle.blogspot.com/2015/06/regions-and-locations-in-cucm-for-video.html&lt;/A&gt;.&lt;BR /&gt;Perhaps if you insert a CUBE tandem into the pathway, CUBE will have the capability to more finely control specific H.323 params like this (I'm not an expert on CUBE either..?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 21:23:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4873892#M3417</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-07-13T21:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lua Normalization Script - Changing max-fs in 200 OK</title>
      <link>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4874643#M3418</link>
      <description>&lt;P&gt;I'll explain better for sure.&amp;nbsp; We have a 3rd party platform that's utilized for our call center environment.&amp;nbsp; The recent update to this platform has caused video to stop working.&amp;nbsp; In working with this 3rd party platform they've identified the reason: Because the max-fs value that jabber is replying with (max-fs=8161) is causing their software to stop sending video.&amp;nbsp; They state it's because the value is too high, causing the platform to disable any attempts at a video call.&amp;nbsp; So, I can change this value manually and video is fine.&amp;nbsp; However, I'd like to prevent this problem from happening in future versions and would like to simply look at the INVITE coming from the platform, copy the max-fs value, and perform a media replacement of max-fs value in the 200_INVITE brought in from jabber.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 16:59:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4874643#M3418</guid>
      <dc:creator>Xisby</dc:creator>
      <dc:date>2023-07-14T16:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lua Normalization Script - Changing max-fs in 200 OK</title>
      <link>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4874737#M3419</link>
      <description>&lt;P&gt;AFAIK what happens in the Lua script stays in the Lua script.&amp;nbsp; It is not possible to store or transmit state/data or read data anywhere but from the immediate SIP message.&amp;nbsp; As mentioned, I'm a bit nervous about faking media negotiation parameters as then it could be possible that video starts, but is corrupted/low-quality - all the time, or just in certain circumstances (e.g. screen sharing) - because the endpoints aren't aware of the manipulation and have assumptions about e.g. max-fs.&lt;BR /&gt;I'm not finding much on google re configuring low-level params like max-fs in Jabber/CUCM...have you contacted Cisco TAC for any advice?&lt;BR /&gt;Since the problem is occurring after an upgrade to the 3rd party system, can they offer any options to (at least) revert to the previous behaviour in this scenario?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 20:05:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4874737#M3419</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-07-14T20:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Lua Normalization Script - Changing max-fs in 200 OK</title>
      <link>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4874739#M3420</link>
      <description>&lt;P&gt;Thanks for your explanation and reply.&amp;nbsp; I agree to everything that you're saying and have previously voiced my concern about this.&amp;nbsp; I think the best idea is to remove this media description so the outgoing sdp accepts anything that our 3rd party platform is capable of doing.&amp;nbsp; I've tested this theory and it has worked 100% of the time.&amp;nbsp; I've also been able to remove the sdp from the initial INVITE and apply the sdp from the 200_INVITE reply but not able to 'cherry pick' just the max-fs media.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This 3rd party system keeps us on our toes.&amp;nbsp; This seems to be an on-going issue in that we have to modify certain things to accommodate their hiccups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either way, thank you greatly for your input and I'll mark your response as an acceptable solution, because it is!&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 20:16:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-normalization-script-changing-max-fs-in-200-ok/m-p/4874739#M3420</guid>
      <dc:creator>Xisby</dc:creator>
      <dc:date>2023-07-14T20:16:20Z</dc:date>
    </item>
  </channel>
</rss>

