Victor Seva writes:
It seems that you can already convert to non-multipart
using filter_body.
http://www.kamailio.org/docs/modules/devel/modules/textops.html#textops.f.f…
...
if (has_body("multipart/mixed")) {
if (filter_body("application/sdp") {
remove_hf("Content-Type");
append_hf("Content-Type: application/sdp\r\n");
} else {
xlog("Body part application/sdp not found\n");
}
}
that assumes that i know what the remaining bodypart is, which is not
quite the same thing as removing a known bodypart.
-- juha