Avaya Support Forums

Avaya Support Forums (http://support.avaya.com/forums/index.php)
-   Avaya Aura & Unified Communications (http://support.avaya.com/forums/forumdisplay.php?f=2)
-   -   Is it possible to change the number format for P-Asserted Identity? SM 6.2 with SBC (http://support.avaya.com/forums/showthread.php?t=12287)

mrozsits 01-11-2017 06:12 AM

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 02-22-2017 08:14 AM

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.

mrozsits 03-14-2017 06:04 AM

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


All times are GMT -7. The time now is 12:43 AM.