<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>SIP Transparency and Normalization Questions</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_category?p_l_id=&amp;mbCategoryId=3128940" />
  <subtitle />
  <id>http://developer.cisco.com/c/message_boards/find_category?p_l_id=&amp;mbCategoryId=3128940</id>
  <updated>2013-05-23T14:26:34Z</updated>
  <dc:date>2013-05-23T14:26:34Z</dc:date>
  <entry>
    <title>RE: CUCM Normalization to remove port 5060</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15422757" />
    <author>
      <name>Mark Stover</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15422757</id>
    <updated>2013-05-20T17:22:09Z</updated>
    <published>2013-05-20T17:22:09Z</published>
    <summary type="html">I personally haven't written a script to do it, but you should be able to accomplish this with SIP Normalization. 
You can use the 'getRequestLine()' function which returns the method, the request URI, and the protocol version.
You can manipulate the request URI "[b][b][b]sip:6671234@10.10.10.10:5060[/b][/b][/b]" any way that you want. Looks like you want it to be: "[b][b][b]sip:6671234@10.10.10.10[/b][/b][/b]"
You would then use the 'setRequestUri() function to put your new request URI in the INVITE.
Mark</summary>
    <dc:creator>Mark Stover</dc:creator>
    <dc:date>2013-05-20T17:22:09Z</dc:date>
  </entry>
  <entry>
    <title>CUCM Normalization to remove port 5060</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15386859" />
    <author>
      <name>ARVIND GOODING</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15386859</id>
    <updated>2013-05-18T13:23:42Z</updated>
    <published>2013-05-18T13:23:42Z</published>
    <summary type="html">Good day everyone

as mentioned above, im looking to see if there is a way to remove port 5060 from the SIP messages coming out of CUCM. We are testing a topology where CUCM 8.6 is directly integrated with a SIP provider device. 
basically this is what they have caputured and recommeded
REJECTED CALL FROM CUCM
SIP/SDP request: INVITE sip:6671234@10.10.10.10:5060 - gets a 480 temporarily unavailable
 
SUCESSFUL CALL 
SIP/SDP REQUEST: INVITE sip:6671234@10.10.10.10 - NO Port 5060 works
 
 
any assistance would be greatly appreciated.
 
thanks in advance</summary>
    <dc:creator>ARVIND GOODING</dc:creator>
    <dc:date>2013-05-18T13:23:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: SIP Normalization on Recording</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15090714" />
    <author>
      <name>Mark Stover</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15090714</id>
    <updated>2013-05-09T11:33:20Z</updated>
    <published>2013-05-09T11:33:20Z</published>
    <summary type="html">I have to start off by saying that I've never tried to use SIP normalization on a recording trunk, but I don't see any reason why it wouldn't work. To manipulate the header, you can start by determining quickly if the header for this message needs to be manipulated or not by using:
local fromtag = msg:getHeaderUriParameter("From", "x-farendaddr")
You can then retrieve the address from the header and check to see if it is ??????. If it is, you'll need to use 'modifyHeader' to change it's value; you can't update an existing Header URI Parameter (or remove &amp; add it). That means you'll have to get the entire 'From' header by doing a:
local fromheader = msg:getHeader("From")
manipulate the string by substituting 'x-farendaddr=??????' with 'x-farendaddr=anonymous', then modify the header with the updated string:
msg:modifyHeader("From", fromheader)</summary>
    <dc:creator>Mark Stover</dc:creator>
    <dc:date>2013-05-09T11:33:20Z</dc:date>
  </entry>
  <entry>
    <title>SIP Normalization on Recording</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15081266" />
    <author>
      <name>Ramonito Escarro</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15081266</id>
    <updated>2013-05-09T04:56:42Z</updated>
    <published>2013-05-09T04:52:04Z</published>
    <summary type="html">Hi All,  
We currently have an issue on our recording platform having parsing error and not recording SIP calls with farendaddr=?????? (with UNKNOWN/PRIVATE calling ID). Would like to know how we can do about changing the whole address with ?????? to anonymous or 000000 since the recording platform only can support
paramchar = param-unreserved / unreserved / escaped
param-unreserved = "[" / "]" / "/" / ":" / "&amp;" / "+" / "$"
unreserved = alphanum / mark
mark = "-" / "_" / "." / "!" / "˜" / "*" / "’"/ "(" / ")"
Below is a sample SIP Invite message that causes parsing error.
sip:11120006678@170.241.177.66:5060 SIP/2.0
Via: SIP/2.0/TCP 171.194.204.20:5060;branch=z9hG4bK432b4772fca8d3
From: "Jeffrey Lim"&lt;sip:+6566783008@171.194.204.20;x-farend;x-refci=54684567;x-nearenddevice=SEPD824BD26AEA2;x-farendrefci=54684566;x-farenddevice=21.108.52.13;x-farendaddr=???????&gt;;tag=57345144~cd085c1c-4462-4066-8252-25989229b16e-54684584


 
Any form of help would be great.  
Regards, Ramon</summary>
    <dc:creator>Ramonito Escarro</dc:creator>
    <dc:date>2013-05-09T04:52:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: Insert attach data</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15017012" />
    <author>
      <name>Mark Stover</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15017012</id>
    <updated>2013-05-07T14:14:42Z</updated>
    <published>2013-05-07T14:14:42Z</published>
    <summary type="html">CUCM should transparently pass any 'unknown' headers through from one call leg to another. If the information is in a header that is 'known' to CUCM, it will consume the header (it is a B2BUA) instead of passing it transparently. Your transparency script has to make an unknown-header item out of the known header and put it back when it leaves CUCM in order to pass through transparently. This is described in the Developer Guide section on Transparency.</summary>
    <dc:creator>Mark Stover</dc:creator>
    <dc:date>2013-05-07T14:14:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: Read Files from Normalization</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15014507" />
    <author>
      <name>Mark Stover</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15014507</id>
    <updated>2013-05-07T13:47:52Z</updated>
    <published>2013-05-07T13:47:52Z</published>
    <summary type="html">The Cisco SIP Lua environment only supports the string library in its entirety and a subset of the base library:
For the base library, the following is supported: • ipairs • pairs • next • unpack • error • type • tostring
 </summary>
    <dc:creator>Mark Stover</dc:creator>
    <dc:date>2013-05-07T13:47:52Z</dc:date>
  </entry>
  <entry>
    <title>RE: Redirecting number mask with "CUCMs external phone number mask" ?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15014410" />
    <author>
      <name>Mark Stover</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=15014410</id>
    <updated>2013-05-07T13:45:01Z</updated>
    <published>2013-05-07T13:45:01Z</published>
    <summary type="html">You are correct that LUA script can only retrieve a parameter from the SIP Normalization configuration at the SIP trunk level. You could potentially have a different SIP trunk for each number range that needs a different external mask and define a different "mask" parameter value on the SIP Normalization setting on each of those SIP trunks.</summary>
    <dc:creator>Mark Stover</dc:creator>
    <dc:date>2013-05-07T13:45:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: Redirecting number mask with "CUCMs external phone number mask" ?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9513295" />
    <author>
      <name>Christian Holst</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9513295</id>
    <updated>2012-12-18T11:45:16Z</updated>
    <published>2012-12-18T11:45:16Z</published>
    <summary type="html">Prober format if msg(can't delete the syntax par):
We need E164 number as redirecting number for outbound calls. External phonenumber mask needs to be applied to redirecting number as customer has approx. 50 number ranges. TACs only answer is LUA since CUCM can't be upgraded) CUCM is 8.6.1 (can't be upgraded at the moment since HCS) We found this bit on cisco, but as I read it it's  retrieving the mask as a parameter from the LUA script, we need it to retrieve the relevant External phone number mask.
--
M = {} local mask = scriptParameters.getValue("Diversion-Mask") function M.outbound_INVITE(message)
if mask then message:applyNumberMask("Diversion", mask) end end return M  </summary>
    <dc:creator>Christian Holst</dc:creator>
    <dc:date>2012-12-18T11:45:16Z</dc:date>
  </entry>
  <entry>
    <title>Redirecting number mask with "CUCMs external phone number mask" ?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9513237" />
    <author>
      <name>Christian Holst</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9513237</id>
    <updated>2012-12-18T11:43:59Z</updated>
    <published>2012-12-18T11:42:52Z</published>
    <summary type="html">&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:CustomDocumentProperties&gt;
  &lt;o:HTML dt:dt="boolean"&gt;1&lt;/o:HTML&gt;
  &lt;o:DocumentEncoding dt:dt="string"&gt;utf-8&lt;/o:DocumentEncoding&gt;
 &lt;/o:CustomDocumentProperties&gt;
 &lt;o:OfficeDocumentSettings&gt;
  &lt;o:AllowPNG/&gt;
 &lt;/o:OfficeDocumentSettings&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:HyphenationZone&gt;21&lt;/w:HyphenationZone&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;DA&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:EnableOpenTypeKerning/&gt;
   &lt;w:DontFlipMirrorIndents/&gt;
   &lt;w:OverrideTableStyleHps/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:DoNotOptimizeForBrowser/&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val="Cambria Math"/&gt;
   &lt;m:brkBin m:val="before"/&gt;
   &lt;m:brkBinSub m:val="&amp;#45;-"/&gt;
   &lt;m:smallFrac m:val="off"/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val="0"/&gt;
   &lt;m:rMargin m:val="0"/&gt;
   &lt;m:defJc m:val="centerGroup"/&gt;
   &lt;m:wrapIndent m:val="1440"/&gt;
   &lt;m:intLim m:val="subSup"/&gt;
   &lt;m:naryLim m:val="undOvr"/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267"&gt;
  &lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 7"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 8"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 9"/&gt;
  &lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/&gt;
  &lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/&gt;
  &lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Hyperlink"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="FollowedHyperlink"/&gt;
  &lt;w:LsdException Locked="false" SemiHidden="false" UnhideWhenUsed="false"
   QFormat="true" Name="Strong"/&gt;
  &lt;w:LsdException Locked="false" SemiHidden="false" UnhideWhenUsed="false"
   QFormat="true" Name="Emphasis"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="HTML Top of Form"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false"
   Name="HTML Bottom of Form"/&gt;
  &lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/&gt;
  &lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/&gt;
  &lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/&gt;
  &lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/&gt;
  &lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/&gt;
  &lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/&gt;
  &lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/&gt;
  &lt;w:LsdException Locked="false" Priority="37" Name="Bibliography"/&gt;
  &lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;
	mso-fareast-language:EN-US;}
&lt;/style&gt;
&lt;![endif]--&gt;
We need E164 number as redirecting number for outbound calls. External phonenumber mask needs to be applied to redirecting number as customer has approx. 50 number ranges. TACs only answer is LUA since CUCM can't be upgraded) CUCM is 8.6.1 (can't be upgraded at the moment since HCS) We found this bit on cisco, but as I read it it's  retrieving the mask as a parameter from the LUA script, we need it to retrieve the relevant External phone number mask. -- M = {} local mask = scriptParameters.getValue("Diversion-Mask") function M.outbound_INVITE(message) if mask then message:applyNumberMask("Diversion", mask) end end return M  </summary>
    <dc:creator>Christian Holst</dc:creator>
    <dc:date>2012-12-18T11:42:52Z</dc:date>
  </entry>
  <entry>
    <title>Read Files from Normalization</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9146763" />
    <author>
      <name>Lucas Vieira</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9146763</id>
    <updated>2012-12-06T17:54:54Z</updated>
    <published>2012-12-06T17:54:54Z</published>
    <summary type="html">Hi all,
I have a list of names, to insert to my P-Asserted-Identity during the ringing state.
It's working while I use it static at the Normalization body, but I have a big list of names for all my 200 DNs. I tryed to use dofile("./tftp/Oppa.lua") I put the file there, but its not working. Is this path correct? doFile work for CUCM? I will thy io.open next.
Anyone can help me? Thanks</summary>
    <dc:creator>Lucas Vieira</dc:creator>
    <dc:date>2012-12-06T17:54:54Z</dc:date>
  </entry>
  <entry>
    <title>Insert attach data</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7452669" />
    <author>
      <name>Danilo Goncalves</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7452669</id>
    <updated>2012-10-09T18:07:02Z</updated>
    <published>2012-10-09T18:07:02Z</published>
    <summary type="html">Hi ALL,

My customer has a need to sending an information in attach data to the front end CTI OS of the Agent. And I don't know anything about programming.
The flow are basically: PSTN VG -&gt; IVR Dígitro -&gt; SIP -&gt; CUCM -&gt; SIP -&gt; CVP -&gt; ICM -&gt; Agent.
The scripts are located in the IVR Digitro and the EC field (customer id) must appear on the front end CTI OS, so the IVR Dígitro needs to forward the attach data via SIP Header to CUCM. Right?
I configured the Normalization in CUCM, and the test of CUCM to the CVP works, the information goes to the agent's screen correctly.
I'm not able to do the CUCM make a bypass that attach data when the information comes from IVR Digitro. I understand that this case must to configure the transparency, right?
I used the LUA script, but still is not working. What could it be?
Thanks in advance.</summary>
    <dc:creator>Danilo Goncalves</dc:creator>
    <dc:date>2012-10-09T18:07:02Z</dc:date>
  </entry>
  <entry>
    <title>CUCM - Nortel CS1000 SIP GW Integration Modify INVITE header</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7186184" />
    <author>
      <name>UC Support</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7186184</id>
    <updated>2012-09-28T19:01:27Z</updated>
    <published>2012-09-28T19:01:27Z</published>
    <summary type="html">&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves /&gt;
  &lt;w:TrackFormatting /&gt;
  &lt;w:PunctuationKerning /&gt;
  &lt;w:ValidateAgainstSchemas /&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF /&gt;
  &lt;w:LidThemeOther&gt;EN-CA&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables /&gt;
   &lt;w:SnapToGridInCell /&gt;
   &lt;w:WrapTextWithPunct /&gt;
   &lt;w:UseAsianBreakRules /&gt;
   &lt;w:DontGrowAutofit /&gt;
   &lt;w:SplitPgBreakAndParaMark /&gt;
   &lt;w:DontVertAlignCellWithSp /&gt;
   &lt;w:DontBreakConstrainedForcedTables /&gt;
   &lt;w:DontVertAlignInTxbx /&gt;
   &lt;w:Word11KerningPairs /&gt;
   &lt;w:CachedColBalance /&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val="Cambria Math" /&gt;
   &lt;m:brkBin m:val="before" /&gt;
   &lt;m:brkBinSub m:val="&amp;#45;-" /&gt;
   &lt;m:smallFrac m:val="off" /&gt;
   &lt;m:dispDef /&gt;
   &lt;m:lMargin m:val="0" /&gt;
   &lt;m:rMargin m:val="0" /&gt;
   &lt;m:defJc m:val="centerGroup" /&gt;
   &lt;m:wrapIndent m:val="1440" /&gt;
   &lt;m:intLim m:val="subSup" /&gt;
   &lt;m:naryLim m:val="undOvr" /&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267"&gt;
  &lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal" /&gt;
  &lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /&gt;
  &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 7" /&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 8" /&gt;
  &lt;w:LsdException Locked="false" Priority="39" Name="toc 9" /&gt;
  &lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /&gt;
  &lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title" /&gt;
  &lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /&gt;
  &lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /&gt;
  &lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Strong" /&gt;
  &lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /&gt;
  &lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid" /&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /&gt;
  &lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading" /&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List" /&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid" /&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List" /&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading" /&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List" /&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid" /&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /&gt;
  &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /&gt;
  &lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /&gt;
  &lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote" /&gt;
  &lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /&gt;
  &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /&gt;
  &lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /&gt;
  &lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /&gt;
  &lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /&gt;
  &lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /&gt;
  &lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title" /&gt;
  &lt;w:LsdException Locked="false" Priority="37" Name="Bibliography" /&gt;
  &lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-qformat:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin-top:0cm;
	mso-para-margin-right:0cm;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0cm;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
&lt;/style&gt;
&lt;![endif]--&gt;
Hi Team,
I'm working in a CUCM-Nortel Integration, incoming calls from Nortel to CUCM
fails due the received INVITE from Nortel is in this format:
===========
INVITE sip:333666;phone-context=udp@test.com;user=phone SIP/2.0

.
To: &lt;sip:333666;phone-context=udp@test.com;user=phone&gt;
============
CUCM rejects the call and in the trace I see the reason:
|Digit Analysis: Host Address=test.com DOES NOT MATCH any address for this
cluster.
|Digit Analysis: Host Address=test.com DOES NOT MATCH top level org domain.
 
It makes sense since the CUCM is not named test.com nor the top level org
domain. I can fixed using the test.com in the CUCM&gt;Enterprise Parameters&gt;
but is not really the solution I would prefer to use.
I’m wondering if I can use the Normalization Script to grab the phone-context=
tag from the To: header and rename it from 
[url=mailto:phone-context=udp@test.com]phone-context=udp@test.com[/url];
to
phone-context=udp@x.x.x.x;
where x.x.x.x is the ip address of the CUCM. 
 
I read the doc and I think I can use the following function to grab the tag
 
M = {}
function M.inbound_INVITE(msg)
    local to =
msg:getHeaderUriParameter("To", "phone-context")
end
return M
 
But how can be modified?
 
Any help on this is really appreciated.
 
Regards
Carlito</summary>
    <dc:creator>UC Support</dc:creator>
    <dc:date>2012-09-28T19:01:27Z</dc:date>
  </entry>
  <entry>
    <title>Masking the Calling Name based on Calling number</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5493548" />
    <author>
      <name>WILLIAM HATCHER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5493548</id>
    <updated>2012-04-23T16:29:03Z</updated>
    <published>2012-04-20T15:36:36Z</published>
    <summary type="html">We are trying to write a normalization script to change the outbound 
calling name.  We have several companies that are tenants as well, so 
changing it just on the trunk is not an option since all tenants utilize
 the same SIP trunk.  We want to make the change based on the calling 
number.  Here is the script that we have come up with, but it does not 
seem to be working.  Also the trace is enabled on both the script and 
the trunk, but we are not seeing any trace in the sdi when we make 
calls.  Any help or suggestions would be greatly appreciated.
 
Bill
 

M = {}

trace.enable()

local function modifyMessage(msg, newstring)
    local newstring1 = '"'..newstring..'"'
    trace.format("Newstring is %s", newstring)
    trace.format("Newstring1 is %s", newstring1)

    local paivalue = msg:getHeader("P-Asserted-Identity")
    local painewuri = newstring1.." "..string.match(value, "(&lt;.+&gt;)")
    trace.format("PAIValue is %s", paivalue)
    trace.format("PAINewuri is %s", painewuri)
    msg:modifyHeader("P-Asserted-Identity", painewuri)
    local fromvalue = msg:getHeader("From")
    local fromnewuri = newstring1.." "..string.match(value, "(&lt;.+&gt;)")
    trace.format("FromValue is %s", fromvalue)
    trace.format("FromNewuri is %s", fromnewuri)
    msg:modifyHeader("From", fromnewuri)
    local rpivalue = msg:getHeader("Remote-Party-ID")
    local rpinewuri = newstring1.." "..string.match(value, "(&lt;.+&gt;)")
    trace.format("RPIValue is %s", rpivalue)
    trace.format("RPINewuri is %s", rpinewuri)
    msg:modifyHeader("Remote-Party-ID", rpinewuri)

end
function M.outbound_ANY(msg)
    local from = msg:getHeader("From")
    if(from.find('636827...') not -1)
    then
        modifyMessage(msg, "Maritz")
    end
   if(from.find('6362262[0-5]..') not -1)
    then
        modifyMessage(msg, "Intellispend")
    end
end

return M</summary>
    <dc:creator>WILLIAM HATCHER</dc:creator>
    <dc:date>2012-04-20T15:36:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: Adding a "user" in "From" header ?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5036121" />
    <author>
      <name>William Delgado</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5036121</id>
    <updated>2012-01-20T15:13:44Z</updated>
    <published>2012-01-20T15:13:44Z</published>
    <summary type="html">HI BengT Anderson,

I am an user and definitely not a developer. I ran into a similar issue as well, my sip uri looked like: &lt;sip:ipv4:5060&gt; I was able to get this routed the right way in call manager but not on my cisco voice gateway.

What I did was to add a "SIP Route Pattern". I am running CM 8.6 and this is located in: http://callmanager/ccmadmin then go to; Call Routing &gt; SIP Route Pattern.

In my call flow, here is how I am setup:

PSTN &gt; 2pri &gt; Voice GW &gt; (h323) &gt; CM

What I did was that I created a sip trunk from CM to the voice gateway (cisco 2811) and then in the configuration of the sip route patern, I entered the IP address in the first field and in the bottom I selected the new sip trunk I created above and then CM started to route the calls the right way. 

THere might be an easier way of getting this done, I am not an expert. IF you happen to know how to get this done in the gateway please DO share though!..lol It would really help me on another project that I am working on.</summary>
    <dc:creator>William Delgado</dc:creator>
    <dc:date>2012-01-20T15:13:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Adding a "user" in "From" header ?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5036120" />
    <author>
      <name>William Delgado</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=5036120</id>
    <updated>2012-01-20T15:13:44Z</updated>
    <published>2012-01-20T15:13:44Z</published>
    <summary type="html">HI BengT Anderson,

I am an user and definitely not a developer. I ran into a similar issue as well, my sip uri looked like: &lt;sip:ipv4:5060&gt; I was able to get this routed the right way in call manager but not on my cisco voice gateway.

What I did was to add a "SIP Route Pattern". I am running CM 8.6 and this is located in: http://callmanager/ccmadmin then go to; Call Routing &gt; SIP Route Pattern.

In my call flow, here is how I am setup:

PSTN &gt; 2pri &gt; Voice GW &gt; (h323) &gt; CM

What I did was that I created a sip trunk from CM to the voice gateway (cisco 2811) and then in the configuration of the sip route patern, I entered the IP address in the first field and in the bottom I selected the new sip trunk I created above and then CM started to route the calls the right way. 

THere might be an easier way of getting this done, I am not an expert. IF you happen to know how to get this done in the gateway please DO share though!..lol It would really help me on another project that I am working on.</summary>
    <dc:creator>William Delgado</dc:creator>
    <dc:date>2012-01-20T15:13:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: New Message from Charles Ragan in Cisco Unified Communications Manager</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4727078" />
    <author>
      <name>Charles Ragan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4727078</id>
    <updated>2011-11-08T20:56:06Z</updated>
    <published>2011-11-08T20:56:06Z</published>
    <summary type="html">Rune ¿ if the pai is there (it would be the original To:  I believe) ¿ you should be able to do something similar to...

M = {}
function M.outbound_INVITE(msg)
    local uri = msg:getUri("P-Asserted-Identity")
msg:removeHeader("Diversion")
msg:addHeader("Diversion", uri)
end
return M

Rune Heggelund has created a new message in the forum "SIP Transparency and Normalization Questions":

--------------------------------------------------------------
Thank you for replying.

The setup is as follow;
pstn-----sip----cucm-----sip------trio-vmail

I can apply the script at the outgoing invite to the trio-vmail.
I still need some help to create the script.

Here is what sendt in the Invite header;
Diversion: "nn" &lt;sip:4981@172.29.1.12&gt;;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" &lt;sip:4983@172.29.1.12&gt;;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" &lt;sip:4986@172.29.1.12&gt;;reason=unconditional;privacy=off;screen=yes

If I convert the diversion headers into History-Info headers for outbound INVITE messages. And then remove the Diversion header. This is what I got;

M = {}
function M.outbound_INVITE(msg)
if msg:getHeader("Diversion")
then
msg:convertDiversionToHI()
msg:removeHeader("Diversion")
end
end
return M

History-Info: &lt;sip:4980@172.29.1.12?Reason=sip;cause=302;text="unconditional"&gt;;index=1
History-Info: &lt;sip:4981@172.29.1.12?Reason=sip;cause=302;text="unconditional"&gt;;index=1.1
History-Info: &lt;sip:9999@172.29.1.17:5060&gt;;index=1.1.1

The Trio System understands both diversion headers and History-Info headers.

If I first convert the diversion headers into History-Info headers, then I got information I need in index=1.
If I now remove all other index lines everything should be ok.
--
To respond to this post, please click the following link:

&lt;http://developer.cisco.com/web/sip/forums/-/message_boards/view_message/4725147&gt;

or simply reply to this email.
--
To respond to this post, please click the following link:

&lt;http://developer.cisco.com/web/sip/forums/-/message_boards/view_message/4727040&gt;

or simply reply to this email.</summary>
    <dc:creator>Charles Ragan</dc:creator>
    <dc:date>2011-11-08T20:56:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: New Message from Rune Heggelund in Cisco Unified Communications Manager</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4727040" />
    <author>
      <name>Charles Ragan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4727040</id>
    <updated>2011-11-08T20:28:06Z</updated>
    <published>2011-11-08T20:28:06Z</published>
    <summary type="html">Ahh..okay.  So trio can¿t choose between 1st redirect or last redirect?  ¿

In the values below ¿ what is the numbering scheme for the ¿nn¿ on the dh¿s?



From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, November 08, 2011 1:30 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Rune Heggelund in Cisco Unified Communications Manager SIP (SIP) - SIP Transparency and Normalization Questions: RE: Delete the top-most diversion header or change order of Multiple Divers

Rune Heggelund has created a new message in the forum "SIP Transparency and Normalization Questions":

--------------------------------------------------------------
Thank you for replying.

The setup is as follow;
pstn-----sip----cucm-----sip------trio-vmail

I can apply the script at the outgoing invite to the trio-vmail.
I still need some help to create the script.

Here is what sendt in the Invite header;
Diversion: "nn" &lt;sip:4981@172.29.1.12&gt;;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" &lt;sip:4983@172.29.1.12&gt;;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" &lt;sip:4986@172.29.1.12&gt;;reason=unconditional;privacy=off;screen=yes

If I convert the diversion headers into History-Info headers for outbound INVITE messages. And then remove the Diversion header. This is what I got;

M = {}
function M.outbound_INVITE(msg)
if msg:getHeader("Diversion")
then
msg:convertDiversionToHI()
msg:removeHeader("Diversion")
end
end
return M

History-Info: &lt;sip:4980@172.29.1.12?Reason=sip;cause=302;text="unconditional"&gt;;index=1
History-Info: &lt;sip:4981@172.29.1.12?Reason=sip;cause=302;text="unconditional"&gt;;index=1.1
History-Info: &lt;sip:9999@172.29.1.17:5060&gt;;index=1.1.1

The Trio System understands both diversion headers and History-Info headers.

If I first convert the diversion headers into History-Info headers, then I got information I need in index=1.
If I now remove all other index lines everything should be ok.
--
To respond to this post, please click the following link:

&lt;http://developer.cisco.com/web/sip/forums/-/message_boards/view_message/4725147&gt;

or simply reply to this email.</summary>
    <dc:creator>Charles Ragan</dc:creator>
    <dc:date>2011-11-08T20:28:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: Delete the top-most diversion header or change order of Multiple Divers</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4725147" />
    <author>
      <name>Rune Heggelund</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4725147</id>
    <updated>2011-11-08T19:30:09Z</updated>
    <published>2011-11-08T19:30:09Z</published>
    <summary type="html">Thank you for replying. 

The setup is as follow;
pstn-----sip----cucm-----sip------trio-vmail

I can apply the script at the outgoing invite to the trio-vmail.
I still need some help to create the script. 

Here is what sendt in the Invite header;
Diversion: "nn" &lt;sip:4981@172.29.1.12&gt;;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" &lt;sip:4983@172.29.1.12&gt;;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" &lt;sip:4986@172.29.1.12&gt;;reason=unconditional;privacy=off;screen=yes

If I convert the diversion headers into History-Info headers for outbound INVITE messages. And then remove the Diversion header.  This is what I got;

M = {}
function M.outbound_INVITE(msg) 
if msg:getHeader("Diversion") 
then 
msg:convertDiversionToHI() 
msg:removeHeader("Diversion") 
end
end
return M

[b]History-Info: &lt;sip:4980@172.29.1.12?Reason=sip;cause=302;text="unconditional"&gt;;index=1[/b]
History-Info: &lt;sip:4981@172.29.1.12?Reason=sip;cause=302;text="unconditional"&gt;;index=1.1
History-Info: &lt;sip:9999@172.29.1.17:5060&gt;;index=1.1.1

The Trio System understands both diversion headers and History-Info headers.

If I first convert the diversion headers into History-Info headers, then I got information I need in index=1. 
If I now remove all other index lines everything should be ok.</summary>
    <dc:creator>Rune Heggelund</dc:creator>
    <dc:date>2011-11-08T19:30:09Z</dc:date>
  </entry>
  <entry>
    <title>RE: Delete the top-most diversion header or change order of Multiple Divers</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4726842" />
    <author>
      <name>Charles Ragan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4726842</id>
    <updated>2011-11-08T18:59:36Z</updated>
    <published>2011-11-08T18:59:36Z</published>
    <summary type="html">Okay, but the call flow is what?

pstn-----sip----cucm-----sip?------trio-vmail


Is your integration from cucm to trio a sip trunk as well?

Obviously, this will determine where you apply your script.

Also, the next thing you need to do is set up a place where you can make packet captures.  This will give you an idea of what values you have for attempting to repopulate the dh with the original called number.

For example, a way to reach back into the originally called number, may be the PAI header.  At this point, you could possibly do logic similar to:

-gather pai header
-remove dh 
-add dh
-repopulate dh with pai

A lot will depend on your call flow.
Charles</summary>
    <dc:creator>Charles Ragan</dc:creator>
    <dc:date>2011-11-08T18:59:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: Delete the top-most diversion header or change order of Multiple Divers</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4724492" />
    <author>
      <name>Rune Heggelund</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=4724492</id>
    <updated>2011-11-08T14:14:32Z</updated>
    <published>2011-11-08T14:14:32Z</published>
    <summary type="html">Hi!

This is an attendant system (Trio Enterprise). 
The system is not able to interoperate the diversion header different. I need a SIP Normalization Scripts that change the header. 
Support both diversion and history header.</summary>
    <dc:creator>Rune Heggelund</dc:creator>
    <dc:date>2011-11-08T14:14:32Z</dc:date>
  </entry>
</feed>

