jed
New Contributor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2015
06:14 PM
How do i select <sip:541xxxxxxx@xxx.xxx.xxx.xxx> from a header into a HMR private-variable?
I want to use it to add a P-Asserted-Identity header
1 Reply

ftwrobert
New Contributor III
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Accept as Solution
- Report Inappropriate Content
03-12-2015
06:45 PM
Re: How do i select <sip:541xxxxxxx@xxx.xxx.xxx.xxx> from a header into a HMR private-variable?
Something like this may work?
set private-variable MatchedURI header From position first match-value /.*(<sip:541[0-9]{7}@[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}>).*/ new-value /\1/
Note: I haven't had any need to rewrite headers within AOS as that's something I would do on our SBC.
For reference: https://supportforums.adtran.com/servlet/JiveServlet/previewBody/5041-102-2-5478/6AOSCG0026-29A.pdf