<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>I am trying to do a 'simple' SDP manipulation in the 200OK after
the invite:<br>
Let's assume I want to remove a=<a class="moz-txt-link-freetext" href="ptime:20">ptime:20</a>.<br>
This is in the onreply_route. Next step will be to involve
rtpengine (rtpengine_answer(....)) with all flags needed to adjust
the IPs (flags are correct).</p>
<p>Whatever method I've tried to remove that a= line has failed,
either with a crash or with errors like 'not enough free pkg
memory'.<br>
I guess the problem is because the Content-Length has to be
adjusted as well.</p>
<p>I have tried the new way: <br>
$sdp.line(a=ptime) = NULL, <br>
Right before the end of the route I can see in the log a correct
$sdp; the $mb is still the initial, before the sdp change.</p>
<p>the 'traditional way': <br>
replace_body("a=ptime.*\r\n","")</p>
<p>... and some other, more text based ways... including manually
setting $cl, but they are all failing, either because of those
errors or because a manually set SDP won't be changed by the
rtpengine.</p>
<p>What would be the 'correct' and best way? Can someone please
help?</p>
<p>Thank you</p>
<p>Anestis</p>
<br>
</body>
</html>