[SR-Users] Regex issue with subst_body

Kristijan Vrban vrban.lkml at gmail.com
Wed Feb 20 16:00:56 CET 2019


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



More information about the sr-users mailing list