[sr-dev] [kamailio] Textops and Multipart Body - adding ISUP segfaults Kamailio (#240)

andreikabeliy notifications at github.com
Thu Jul 9 16:51:13 CEST 2015




Hi,

I am using Kamailio version: kamailio 4.3.0 (x86_64/linux) c6aa95 on CentOS 6

I am trying to encapsulate ISUP in the INVITE:
```
...
if(has_body("application/sdp"))
{
      set_body_multipart();
        if(msg_apply_changes())
        {
              $var(isup) = "7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c";
                append_body_part("$var(isup)","application/isup; version=itu-t92+","signal; handling=optional");
       	xlog("L_INFO", "ISUP Changes Applied Succesfully");
        }
}

ds_select_dst("2","8");
...
```
And getting the following error:
```
 kamailio: DEBUG: <core> [msg_translator.c:1691]: get_boundary(): boundary is <--unique-boundary-1>
...
 kamailio: DEBUG: <core> [msg_translator.c:1808]: check_boundaries(): last bondary without -- at the end
 kamailio: DEBUG: <core> [msg_translator.c:1612]: replace_body(): old size body[365] actual[534]
 kamailio: CRITICAL: <core> [data_lump.c:463]: free_lump(): non free-able lump: 0x7f7a33d5ae40 flags=1
```
and then Kamailio crashes.

DEBUG:
```
Jul  9 15:21:56 kamailiohost kamailio: DEBUG: <core> [msg_translator.c:1808]: check_boundaries(): last bondary without -- at the end
Jul  9 15:21:56 kamailiohost kamailio: DEBUG: <core> [msg_translator.c:1612]: replace_body(): old size body[365] actual[513]
Jul  9 15:21:56 kamailiohost kamailio: CRITICAL: <core> [data_lump.c:463]: free_lump(): non free-able lump: 0x7fc340edc270 flags=1
```

Can you please recommend?

p.s. as per: http://lists.sip-router.org/pipermail/sr-users/2015-July/089018.html

Thanks,
Andrei



---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/240
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150709/8a8fb4eb/attachment.html>


More information about the sr-dev mailing list