Acme Packet (MOSC)

MOSC Banner

Recursive search in HMR

edited Nov 4, 2014 11:49AM in Acme Packet (MOSC) 1 commentAnswered

Hi

 

I have a history-info that looks like this (but there could be more redirections, so more index=):

 

HISTORY-INFO: <sip:+46123456789@test.test;user=phone>;index=1;ms-retarget-reason=forwarding,<sip:+46223456789@test.test;user=phone>;index=1.1

 

Which regexp could I use to match all the preceding of every index=1* so that I can get:

 

$0 <sip:+46123456789@test.test;user=phone>;index=1;

$1 ms-retarget-reason=forwarding,<sip:+46223456789@test.test;user=phone>;index=1.1

 

I need to remap these to diversion (unless there´s a better way to do it).

 

Thanks

Diego

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center