[sr-dev] [kamailio/kamailio] set_body_multipart (from textops module) doesn't insert a valid closing boundary delimiter (#661)
Kamil Shakirov
notifications at github.com
Mon Jun 13 13:47:48 CEST 2016
I have some updates regarding this issue:
After several attempts to make my script work I think it is ok now:
```
route[TO_PSTN] {
xlog("L_INFO", "##### Converting to multipart...");
set_body_multipart();
if(msg_apply_changes()) {
xlog("L_INFO", "##### Adding ISUP part...");
append_body_part("7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c",
"application/ISUP;base=itu-t88;version=itu-t92+","signal;handling=required");
xlog("L_INFO", "##### Getting ready to send ISUP.");
if(msg_apply_changes()) {
xlog("L_INFO", "##### Ready to send ISUP.");
}
}
}
```
A can see a valid multipart message now. I think the `textops` documentation can be a little more clear on how to modify messages and calling `msg_apply_changes` after each modification from `textopsx` (not the same module).
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/661#issuecomment-225559006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160613/68a0fe29/attachment.html>
More information about the sr-dev
mailing list