That works, here's what I've ended up using: rtpengine_manage("loop-protect ... other things I need", , $var(body)); remove_body_part(); add_body_part($(var(body){re.subst,/^s=.*$/s=abcxxx/g}), "application/sdp");
but seems cumbersome, I was expecting to do rtpengine_manage followed by replace_body_all and don't interfere further with the flow Anyway, thanks On Thu, 24 Mar 2022 at 02:33, Artiom Druz <artiom.d...@gmail.com> wrote: > Hello, Alberto. > You can modify it by using an optional parameter in rtpengine_offer > (sdp_var - > https://opensips.org/html/docs/modules/3.2.x/rtpengine#func_rtpengine_offer > ). > Logic: > You can write new sdp body to the variable instead of rewrite of existing > SDP. After that you can modify "s" parameter in this variable. > Next - you delete existing SDP (remove_body_part()) and add new SDP with > content from variable (add_body_part()). > > Best regards, > Artiom Druz > > чт, 24 мар. 2022 г., 04:34 Alberto <alberto.rina...@gmail.com>: > >> Hi, >> >> I'm trying to change the session name, the s= line, while using rtpengine. >> >> If I remove rtpengine and do replace_body_all("^s=.*$", "s=abczzz"); it >> works just fine and I see the new session name in the second leg of the >> call. >> >> But when rtpengine_offer is called, the original sdp body is used instead >> of the modified body. >> I tried to do replace_body_all before and after rtpengine_offer, but it >> doesn't work, the second leg always has the original session name. >> >> Any advice? >> Thanks >> _______________________________________________ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users