[OpenSIPS-Users] opensips 3.2 and latest github rtpengine
Artiom Druz
artiom.druz at gmail.com
Thu Mar 24 02:30:48 UTC 2022
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.rinaudo at 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 at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220324/16f28c63/attachment.html>
More information about the Users
mailing list