Hi,
I am trying to do a 'simple' SDP manipulation in the 200OK after
the invite:
Let's assume I want to remove a=ptime:20.
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).
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'.
I guess the problem is because the Content-Length has to be
adjusted as well.
I have tried the new way:
$sdp.line(a=ptime) = NULL,
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.
the 'traditional way':
replace_body("a=ptime.*\r\n","")
... 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.
What would be the 'correct' and best way? Can someone please help?
Thank you
Anestis
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users