On 11.08.2021 16:24, Mark Farmer wrote:
Perhaps there is a better way but this seems to work for now :)
Hey Mark,
LGTM! I can't think of a better way of doing either of the SDP editing
or replacing logic from the OpenSIPS config file.
Cheers,
--
Liviu Chircu
www.twitter.com/liviuchircu
Thanks for the replies :)
I am not sure I really understand them, however I have solved the problem
like this:
rtpengine_offer($var(PSTN_TPTY),,$var(SDPbody));
$var(reg) = "/a=silenceSupp.*\n//ig";
$var(SDPbody) = $(var(SDPbody){re.subst,$var(reg)});
remove_body_part();
I noticed that when you manipulate before passing to rtpengine, the module
sends the "old" sdp to rtpengine. Does it make sense?
Em qua., 11 de ago. de 2021 às 09:07, Johan De Clercq
escreveu:
> wouldn't it be better to do first your manip and then pass it to rtpengine
> ?
>
> Op wo 11 aug.
wouldn't it be better to do first your manip and then pass it to rtpengine
?
Op wo 11 aug. 2021 om 12:39 schreef Mark Farmer :
> Hi everyone
>
> I am using rtpengine_offer() and storing the SDP in a variable which I
> then modify using the reg_exp transformation to delete a line.
>
>
Hi everyone
I am using rtpengine_offer() and storing the SDP in a variable which I then
modify using the reg_exp transformation to delete a line.
rtpengine_offer($var(PSTN_TPTY),,$var(SDPbody));
$var(SDPbody) = $(var(SDPbody){re.subst,/a=silenceSupp:off\ -\ -\ -\
-\r\n//g});
How do I then push