Is it possible to change the number format for P-Asserted Identity? SM 6.2 with SBC

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • mrozsits
    Aspiring Member
    .
    • Oct 2015
    • 2

    Is it possible to change the number format for P-Asserted Identity? SM 6.2 with SBC

    Headers - is it possible the “from” information to remain in E.164 format (+44 xxxxxxxx) but the P-Asserted format to be national number – eg 01482 xxxxxxx. Can this be done via Adaptations on SMGR or this can be set up only on the SBC?
  • mlombardi1
    Legend
    • Sep 2010
    • 531

    #2
    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.
    Meridian IT - Senior Engineer

    Comment

    • mrozsits
      Aspiring Member
      .
      • Oct 2015
      • 2

      #3
      mlombardi1, thank you a lot for the provided answer! I get the idea now.

      Comment

      Loading