<div dir="ltr">Hi guys,<div><br></div><div>I'm trying to append a content type to a message that has only one content type. I tried using just set_body_multipart and now I'm using set_body multipart and append_body_part with no success too. </div><div><br></div><div>The result is a message with multipart but has "two" sdp and no gtd. It has the old sdp with no ip changed for rtpproxy and the new sdp with ip changed BUT with no content type.  And the message has not the end boundary (--unique-boundary-1.)</div><div><br></div><div>Kamailio log has an info and a warning</div><div><br></div><div><div>Dec 26 11:36:22 dwrfsd01 ./kamailio[8847]: INFO: <core> [msg_translator.c:1693]: get_boundary(): Content-Type hdr has no params <application/sdp></div><div>Dec 26 11:36:22 dwrfsd01 ./kamailio[8847]: WARNING: <core> [msg_translator.c:1959]: build_req_buf_from_sip_req(): check_boundaries error</div></div><div><br></div><div><br></div><div>kamailio.cfg</div><div><br></div><div>......</div><div><br></div><div>route[RELAY]{</div><div>$avp(ch) = 1</div><div>....</div><div><div>if ($avp(ch)){</div><div>                     set_body_multipart();</div><div>                     msg_apply_changes();</div><div>                     $var(gtd) ="IAM,\r\nGCI,asdafsdfasd\r\n\r\n";       </div><div>                     append_body_part("$var(gtd)", "application/gtd", "signal;handling=optional");</div><div>}</div></div><div>....</div><div>}</div><div><br></div><div>Ngrep</div><div><br></div><div>U 2016/12/26 11:36:22.496634 <a href="http://172.16.213.21:5060">172.16.213.21:5060</a> -> <a href="http://172.16.213.38:5060">172.16.213.38:5060</a></div><div>...</div><div>Content-Type: application/sdp.<br></div><div><div>Content-Length:   137.</div><div>.</div><div>v=0.</div><div>o=user1 53655765 2353687637 IN IP4 172.16.213.21.</div><div>s=-.</div><div>c=IN IP4 172.16.213.21.</div><div>t=0 0.</div><div>m=audio 6000 RTP/AVP 8.</div><div>a=rtpmap:8 PCMA/8000.</div></div><div><br></div><div>U 2016/12/26 11:36:22.688458 <a href="http://172.16.213.38:5060">172.16.213.38:5060</a> -> <a href="http://172.16.208.11:5060">172.16.208.11:5060</a><br></div><div>....</div><div><div>Content-Type: multipart/mixed;boundary="unique-boundary-1".</div><div>Mime-Version: 1.0.</div><div>Remote-Party-ID: <<a href="http://sip:1152565064@172.16.213.38:5060">sip:1152565064@172.16.213.38:5060</a>>;party=calling;privacy=off;screen=no.</div><div>.</div><div>--unique-boundary-1.</div><div>Content-Type: application/sdp.</div><div>.</div><div>v=0.</div><div>o=user1 53655765 2353687637 IN IP4 172.16.213.21.</div><div>s=-.</div><div>c=IN IP4 172.16.213.21.</div><div>t=0 0.</div><div>m=audio 6000 RTP/AVP 8.</div><div>a=rtpmap:8 PCMA/8000.</div><div>.</div><div>--unique-boundary-1.</div><div>v=0.</div><div>o=user1 53655765 2353687637 IN IP4 172.16.213.38.</div><div>s=-.</div><div>c=IN IP4 172.16.213.38.</div><div>t=0 0.</div><div>m=audio 58724 RTP/AVP 8.</div><div>a=rtpmap:8 PCMA/8000.</div><div>a=sendrecv.</div><div>a=rtcp:58725.</div><div>a=ice-ufrag:hhXDwrco.</div><div>a=ice-pwd:5temIXP8veOGuD8Dsllm5HXkWU.</div></div><div><br></div><div>Any help will be very very appreciated!<br></div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Diego</div></div>