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 <[email protected]>: > 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 > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
