<?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 PAI Field Modification with LUA Script in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/pai-field-modification-with-lua-script/m-p/4752508#M3372</link>
    <description>&lt;P&gt;We have a CUCM SIP Trunk connected to a 3rd Party&amp;nbsp;Automatic Call Distributor System (ACD). Some of the numbers of the Agents on the ACD are PSTN numbers and there are issues with calls coming in from the PSTN to the ACD, which are then forwarded back to the PSTN numbers of the Agents as the ACD is not sending an appropriate number in the PAI field in the invites. I'm looking for a simple LUA script, with which I can insert a particular number in the PAI field for all calls coming from the ACD. Any suggestions?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 22:51:48 GMT</pubDate>
    <dc:creator>Emmanuel Akum</dc:creator>
    <dc:date>2023-01-10T22:51:48Z</dc:date>
    <item>
      <title>PAI Field Modification with LUA Script</title>
      <link>https://community.cisco.com/t5/call-control/pai-field-modification-with-lua-script/m-p/4752508#M3372</link>
      <description>&lt;P&gt;We have a CUCM SIP Trunk connected to a 3rd Party&amp;nbsp;Automatic Call Distributor System (ACD). Some of the numbers of the Agents on the ACD are PSTN numbers and there are issues with calls coming in from the PSTN to the ACD, which are then forwarded back to the PSTN numbers of the Agents as the ACD is not sending an appropriate number in the PAI field in the invites. I'm looking for a simple LUA script, with which I can insert a particular number in the PAI field for all calls coming from the ACD. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 22:51:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/pai-field-modification-with-lua-script/m-p/4752508#M3372</guid>
      <dc:creator>Emmanuel Akum</dc:creator>
      <dc:date>2023-01-10T22:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: PAI Field Modification with LUA Script</title>
      <link>https://community.cisco.com/t5/call-control/pai-field-modification-with-lua-script/m-p/4759115#M3377</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/322344"&gt;@Emmanuel Akum&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Almost all the Lua Scripts I have seen are for SIP Normalization:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Lua Scripting&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. &lt;U&gt;Configure SIP Normalization Script in CCM&lt;/U&gt; -&amp;nbsp;Configuration Examples and TechNotes&lt;BR /&gt;&lt;A href="https://www.cisco.com/c/en/us/support/docs/unified-communications/unified-communications-manager-callmanager/213516-configure-sip-normalization-script-in-cc.html" target="_blank"&gt;https://www.cisco.com/c/en/us/support/docs/unified-communications/unified-communications-manager-callmanager/213516-configure-sip-normalization-script-in-cc.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2. &lt;U&gt;A guide to SIP Normalization on CUCM and Lua Scripting&lt;/U&gt;&amp;nbsp;- Examples given (please note this discussion is several pages long)&lt;BR /&gt;&lt;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"&gt;https://community.cisco.com/t5/collaboration-voice-and-video/a-guide-to-sip-normalization-on-cucm-and-lua-scripting/ba-p/3099409&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;3. &lt;U&gt;CUCM-Lua&lt;/U&gt; - An&amp;nbsp;External&amp;nbsp;GitHub repo with 5 Lua script examples&lt;BR /&gt;&lt;A href="https://github.com/gj0nyg/CUCM-Lua" target="_blank"&gt;https://github.com/gj0nyg/CUCM-Lua&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These may not be exactly what you need but may provide a starting point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also found this blog, which may be helpful:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Using LUA Script to Allow SIP-Based Phones to Dial from the CUCM Corporate Directory&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://goziro.com/using-lua-script-to-allow-sip-based-phones-to-dial-from-the-cucm-corporate-directory/" target="_blank"&gt;https://goziro.com/using-lua-script-to-allow-sip-based-phones-to-dial-from-the-cucm-corporate-directory/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 16:04:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/pai-field-modification-with-lua-script/m-p/4759115#M3377</guid>
      <dc:creator>Alexander Stevenson</dc:creator>
      <dc:date>2023-01-21T16:04:56Z</dc:date>
    </item>
  </channel>
</rss>

