[sr-dev] [tracker] Comment added: textops: add functions to convert and append multipart bodies. (Attachment added)
Juha Heinanen
jh at tutpro.com
Sat Mar 22 08:15:10 CET 2014
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.filter_body
>
> ...
> 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
More information about the sr-dev
mailing list