<?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: Cisco CUCM: SIP Normalization Script to change From in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/cisco-cucm-sip-normalization-script-to-change-from/m-p/3600428#M2431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to change the headers in the same 'outbound_INVITE' headers, then just add additional header manipulations in the function you are working on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2018 19:11:59 GMT</pubDate>
    <dc:creator>Mark Stover</dc:creator>
    <dc:date>2018-05-31T19:11:59Z</dc:date>
    <item>
      <title>Cisco CUCM: SIP Normalization Script to change From</title>
      <link>https://community.cisco.com/t5/call-control/cisco-cucm-sip-normalization-script-to-change-from/m-p/3600425#M2428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for SIP Normalization Script to the change the From field from Internal IP Address to Public IP Address. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at some scripts on this website and modified:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt;M={}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt;function M.outbound_INVITE(msg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt;&amp;nbsp; local from = msg:getHeader("From")&amp;nbsp; --Get FROM Header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt;&amp;nbsp; local b = string.gsub(from, "&amp;lt;&lt;A dir="ltr" href="https://community.cisco.com/" style="color: #954f72; text-decoration: underline;"&gt;sip:.+@10.10.10.1&lt;/A&gt;&amp;gt;", "&amp;lt;&lt;A dir="ltr" href="https://community.cisco.com/" style="color: #954f72; text-decoration: underline;"&gt;sip:.+@A.B.C.D&lt;/A&gt;&amp;gt;")&amp;nbsp; --New FROM Header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt;&amp;nbsp; msg:modifyHeader("From", b)&amp;nbsp; --Replace FROM Header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt;end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt;return M&lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt;When applied it doesn't show the number before @10.10.10.1. How I can let the portion before @ unchanged? (which wildcard I can use) So that the number is shown.&lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt;Any help will be highly appreciated. &lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 11pt; font-family: Calibri, sans-serif;"&gt; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2018 18:44:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/cisco-cucm-sip-normalization-script-to-change-from/m-p/3600425#M2428</guid>
      <dc:creator>SamSaul</dc:creator>
      <dc:date>2018-05-29T18:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco CUCM: SIP Normalization Script to change From</title>
      <link>https://community.cisco.com/t5/call-control/cisco-cucm-sip-normalization-script-to-change-from/m-p/3600426#M2429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gsub is greedy, so unless you capture the LHS, it will disappear after the substitution. I would try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;local b = string.gsub(from, "&lt;A _jive_internal="true" dir="ltr" href="https://community.cisco.com/message/291780" style="color: #954f72; text-decoration: underline;"&gt;@10.10.10.1&lt;/A&gt;&amp;gt;", "&lt;A _jive_internal="true" dir="ltr" href="https://community.cisco.com/message/291780" style="color: #954f72; text-decoration: underline;"&gt;@A.B.C.D&lt;/A&gt;&amp;gt;")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 15:15:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/cisco-cucm-sip-normalization-script-to-change-from/m-p/3600426#M2429</guid>
      <dc:creator>Mark Stover</dc:creator>
      <dc:date>2018-05-30T15:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco CUCM: SIP Normalization Script to change From</title>
      <link>https://community.cisco.com/t5/call-control/cisco-cucm-sip-normalization-script-to-change-from/m-p/3600427#M2430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reaction. It's working like a charm &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to add another method in this script? I want to add change in Via and Diversion in the same method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 14:16:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/cisco-cucm-sip-normalization-script-to-change-from/m-p/3600427#M2430</guid>
      <dc:creator>SamSaul</dc:creator>
      <dc:date>2018-05-31T14:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco CUCM: SIP Normalization Script to change From</title>
      <link>https://community.cisco.com/t5/call-control/cisco-cucm-sip-normalization-script-to-change-from/m-p/3600428#M2431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to change the headers in the same 'outbound_INVITE' headers, then just add additional header manipulations in the function you are working on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 19:11:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/cisco-cucm-sip-normalization-script-to-change-from/m-p/3600428#M2431</guid>
      <dc:creator>Mark Stover</dc:creator>
      <dc:date>2018-05-31T19:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco CUCM: SIP Normalization Script to change From</title>
      <link>https://community.cisco.com/t5/call-control/cisco-cucm-sip-normalization-script-to-change-from/m-p/3774134#M2640</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are using below SIP normalization for inbound and outbound in one script does it work's?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error message " Unavaliable--CVP_11.0.1" message showing for the incoming customer call and CCB calls as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have created below script, but for incoming call from customer we are not seeing the error message on IP phones,But for Courtesy Call Back calls, when they are connected it is showing as " Unavaliabl" on the IP phones.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Script #&lt;/P&gt;
&lt;P&gt;M = {}&lt;BR /&gt;function M.inbound_ANY(msg)&lt;BR /&gt;&amp;nbsp; local from = msg:getHeader("Remote-Party-ID")&lt;BR /&gt;&amp;nbsp; if (from ~= nil) then &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from = string.gsub(from, "--CVP[_0-9]*", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg:modifyHeader("Remote-Party-ID", from )&lt;BR /&gt;&amp;nbsp; end&lt;BR /&gt;end&lt;BR /&gt;function M.outbound_ANY_ANY(msg)&lt;BR /&gt;&amp;nbsp; local from = msg:getHeader("Remote-Party-ID")&lt;BR /&gt;&amp;nbsp; if (from ~= nil) then &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from = string.gsub(from, "--CVP[_0-9]*", "")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg:modifyHeader("Remote-Party-ID", from )&lt;BR /&gt;&amp;nbsp; end&lt;BR /&gt;end&lt;BR /&gt;return M&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any suggestions to fix this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 14:10:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/cisco-cucm-sip-normalization-script-to-change-from/m-p/3774134#M2640</guid>
      <dc:creator>sharath_gudimella12</dc:creator>
      <dc:date>2019-01-07T14:10:12Z</dc:date>
    </item>
  </channel>
</rss>

