[SR-Users] Regex issue with subst_body

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 20 21:18:12 CET 2019


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:
>
> (?<=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 always end with ERROR: fix_actions(): fixing
> failed (code=-3)
>
> Somebody sees the mistake?
>
> Kristijan
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com




More information about the sr-users mailing list