From: sr-users on behalf of Kristijan
Vrban
Sent: Wednesday, February 20, 2019 6:00 PM
To: Kamailio (SER) - Users Mailing List
Subject: [SR-Users] Regex issue with subst_body
Hi, in a sdp i need to rewrite a a=sendrecv to a=sendonly
but onyl for the for the video stream. I made a reg
Hello,
is that posix regex? Or extended format?
The subst functions work with posix regex.
Cheers,
Daniel
On 20.02.19 16:00, Kristijan Vrban wrote:
> Hi, in a sdp i need to rewrite a a=sendrecv to a=sendonly
> but onyl for the for the video stream. I made a regex like this:
>
>
Hi, in a sdp i need to rewrite a a=sendrecv to a=sendonly
but onyl for the for the video stream. I made a regex like this:
(?<=m=video)(?s)(.*)(a=sendrecv)
Full version here: https://regex101.com/r/rovecJ/1
But if have problems to translate this into kamailio config via
subst_body function. I