Re: [SR-Users] question about replace_body_all

2018-12-07 Thread Daniel-Constantin Mierla
Hello, On 01.12.18 18:27, Wilkins, Steve wrote: > > Hello, > >   > > I am attempting to change the Message Body of an SIP message using > replace_body_all;  I want to replace all attributes that start with  rtcp. > > Here is my code => > >   > > *replace_body_all(“rtcp:{1}[0-9]{5,}”, newstring), *

Re: [SR-Users] question about replace_body_all

2018-12-01 Thread John Petrini
I've never used replace_body_all but I've done something similar using subt_body. One of the issues I've encountered is that you need to explicitly match line feed characters \n. Also in your replacement you need to include a carriage return and a new line at the end \r\n or they'll end up on one l

[SR-Users] question about replace_body_all

2018-12-01 Thread Wilkins, Steve
Hello, I am attempting to change the Message Body of an SIP message using replace_body_all; I want to replace all attributes that start with rtcp. Here is my code => replace_body_all("rtcp:{1}[0-9]{5,}", newstring), and I call msg_apply_changes() after this call. Note that I verified that the