[SR-Users] Textops and Multipart Body - adding ISUP segfaults Kamailio

Victor Seva linuxmaniac at torreviejawireless.org
Tue Jul 7 21:23:54 CEST 2015


On 07/07/2015 04:07 PM, andre second wrote:
> 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(acm) = "7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c";
>                 append_body_part("$var(acm)","application/isup;
> version=itu-t92+","signal; handling=optional");
>        xlog("L_INFO", "ISUP Changes Applied Succesfully");
>         }
> }
> ...
> And getting the following error:

I would say if you don't have modified the message already:

if(has_body("application/sdp"))
{
  set_body_multipart();
  $var(acm) = "7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c";

append_body_part("$var(acm)","application/isup;version=itu-t92+","signal; handling=optional");
  xlog("L_INFO", "ISUP Changes Applied Succesfully");
}

and only call msg_apply_changes() if you need to modify the message later

Anyhow, can you please create an issue at github with a minimal
kamailio.cfg that crash and a backtrace? We should not crash.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150707/76236bb3/attachment.sig>


More information about the sr-users mailing list