View Single Post
  #2  
Old 02-22-2017, 08:14 AM
mlombardi1's Avatar
mlombardi1 mlombardi1 is offline
Legend
 
Join Date: Sep 2010
Location: New York
Posts: 441
mlombardi1 has 25 to 49 reputation pointsmlombardi1 has 25 to 49 reputation pointsmlombardi1 has 25 to 49 reputation points
Default

SM can change 'origination' headers but it will not treat the From and P-Asserted-Identity independently. Use SigMa in the SBC-E to manipulate just the P-Asserted-Identity header.

Code:
within session "ALL"
      {
      act on message where %DIRECTION="OUTBOUND" and %ENTRY_POINT="POST_ROUTING"
          {
          if (%HEADERS["P-Asserted-Identity"][1].URI.USER.regex_match("^+44")) then
              {
              %HEADERS["P-Asserted-Identity"][1].URI.USER.regex_replace("^+44","");
              }
          }
      }
I didn't try to parse this so it may need some tweaking, but you get the idea.
Reply With Quote