<?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 script help in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/lua-script-help/m-p/4682233#M3337</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im trying to copy an unknown header (x-recording) from one SIP trunk (incoming) to another trunk via UCM, that is a recording server that needs to know if a recording should be recorded or not. Now i have copied a standard script from the UCM that copies the x-recording to CUCM (and it works no sipLUA errors and I can see the info) :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;M = {}&lt;/P&gt;
&lt;P&gt;M.allowHeaders = {"x-recording"}&lt;/P&gt;
&lt;P&gt;function M.inbound_INVITE(msg)&lt;/P&gt;
&lt;P&gt;local ntcorrid = msg:getHeader("x-recording")&lt;BR /&gt;if ntcorrid&lt;BR /&gt;then&lt;BR /&gt;pt = msg:getPassThrough()&lt;BR /&gt;pt:addHeader("x-recording", ntcorrid)&lt;BR /&gt;end&lt;/P&gt;
&lt;P&gt;end&lt;BR /&gt;return M&lt;/P&gt;
&lt;P&gt;BUT since the call that is going to the recording server is a "new" call (duplicate media stream call) im struggling with getting that "x-recording" value to the other trunk does any one have an idea if at all it is possible to get the x-recording value to the recording sip trunk?&lt;/P&gt;
&lt;P&gt;setup is (Contact center - non Cisco) SIP Trunk -&amp;gt; CUCM -&amp;gt; SIP Trunk (Recording server)&lt;/P&gt;
&lt;P&gt;THX&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Torben&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 19:32:23 GMT</pubDate>
    <dc:creator>tkm_collab</dc:creator>
    <dc:date>2022-09-06T19:32:23Z</dc:date>
    <item>
      <title>LUA script help</title>
      <link>https://community.cisco.com/t5/call-control/lua-script-help/m-p/4682233#M3337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im trying to copy an unknown header (x-recording) from one SIP trunk (incoming) to another trunk via UCM, that is a recording server that needs to know if a recording should be recorded or not. Now i have copied a standard script from the UCM that copies the x-recording to CUCM (and it works no sipLUA errors and I can see the info) :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;M = {}&lt;/P&gt;
&lt;P&gt;M.allowHeaders = {"x-recording"}&lt;/P&gt;
&lt;P&gt;function M.inbound_INVITE(msg)&lt;/P&gt;
&lt;P&gt;local ntcorrid = msg:getHeader("x-recording")&lt;BR /&gt;if ntcorrid&lt;BR /&gt;then&lt;BR /&gt;pt = msg:getPassThrough()&lt;BR /&gt;pt:addHeader("x-recording", ntcorrid)&lt;BR /&gt;end&lt;/P&gt;
&lt;P&gt;end&lt;BR /&gt;return M&lt;/P&gt;
&lt;P&gt;BUT since the call that is going to the recording server is a "new" call (duplicate media stream call) im struggling with getting that "x-recording" value to the other trunk does any one have an idea if at all it is possible to get the x-recording value to the recording sip trunk?&lt;/P&gt;
&lt;P&gt;setup is (Contact center - non Cisco) SIP Trunk -&amp;gt; CUCM -&amp;gt; SIP Trunk (Recording server)&lt;/P&gt;
&lt;P&gt;THX&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Torben&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 19:32:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/lua-script-help/m-p/4682233#M3337</guid>
      <dc:creator>tkm_collab</dc:creator>
      <dc:date>2022-09-06T19:32:23Z</dc:date>
    </item>
  </channel>
</rss>

