[OpenSIPS-Devel] [opensips] add_body() doesn't insert content-type (#698)

Ionut Ionita notifications at github.com
Tue Nov 17 10:44:17 CET 2015


@achalkov I guess you get the bug because the new body has the same Content-Type with the one you strip. Because of this, there is an incompatibility between strip_body() and add_body() functions, because of the lumps(opensips message editing mechanism). Anyhow, isn't the add_body() function enough for what you need? Don't know whether you read the docs, but they state that " If a body already exists, it will be replaced with the new one."[0] So you don't need to call the strip_body() function.

[0]http://www.opensips.org/html/docs/modules/2.2.x/sipmsgops.html#id294297

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/698#issuecomment-157321476
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20151117/3a93b8cc/attachment.htm>


More information about the Devel mailing list