<div dir="ltr">
<p style="margin:0px">Hi list,</p><p style="margin:0px"><br></p><p style="margin:0px">I am having some issues parsing multipart INVITE  [1]  when calling force_rtp_proxy . I tried to upgrade to Kamailio 5 to see if maybe i was using too old code but seems not the case.</p><p style="margin:0px"><br></p><p style="margin:0px">Log of error is:</p><p style="margin:0px">Apr  3 18:31:21 mcptt /usr/sbin/kamailio[3232]: INFO: <script>: forcing RTP proxy for INVITE message</p><p style="margin:0px">Apr  3 18:31:21 mcptt /usr/sbin/kamailio[3232]: ERROR: <core> [core/parser/parse_content.c:370]: decode_mime_type(): ERROR:decode_mime_type: parse error near in [application/vnd.3gpp.mcptt-info+xml] char[51][3] offset=16</p><div><br></div><div><br></div><div>So seems there is some issue using Content Type application/vnd.3gpp.mcptt-info+xml in a multipart SIP message</div><div>But this content type is accepted at following 3GPP spec: <a href="http://www.etsi.org/deliver/etsi_ts/129100_129199/129165/13.06.00_60/ts_129165v130600p.pdf">http://www.etsi.org/deliver/etsi_ts/129100_129199/129165/13.06.00_60/ts_129165v130600p.pdf</a> </div><div><br></div><p style="margin:0px">Checking implementation of parse_content.c I see ". - _ +" characters are accepted so i am not sure what is failing. </p><p style="margin:0px"><br></p><p style="margin:0px"><br></p><p style="margin:0px">I did some test and if instead of that Content-Type: application/vnd.3gpp.mcptt-info+xml</p><p style="margin:0px">  i use  Content-Type: application/mcptt no errors are seen in Kamailio logs and  ports are replaced succesfully.</p><p style="margin:0px"><br></p><p style="margin:0px">So do you see something wrong on what i am doing with attached info?</p><p style="margin:0px"><br></p><p style="margin:0px"><br></p><p style="margin:0px">INVITE <a href="mailto:sip%3Amcpttparticipating@demo.net">sip:mcpttparticipating@demo.net</a> SIP/2.0</p><p style="margin:0px">Record-Route: <sip:10.1.1.123:6074;transport=tcp;lr=on;ftag=i3b01a;nat=yes></p><p style="margin:0px">Call-ID: <a href="mailto:db6b10362447354bc9819df9a9046ecb@10.1.1.222">db6b10362447354bc9819df9a9046ecb@10.1.1.222</a></p><p style="margin:0px">CSeq: 1 INVITE</p><p style="margin:0px">From: <<a href="mailto:sip%3Ablue1@demo.net">sip:blue1@demo.net</a>>;tag=i3b01a</p><p style="margin:0px">To: <<a href="mailto:sip%3Accw@demo.net">sip:ccw@demo.net</a>;poc-group=blues></p><p style="margin:0px">Via: SIP/2.0/TCP 10.1.1.123:6074;branch=z9hG4bK15a9.1c063dec40e772152f44c026a1627082.0;i=f</p><p style="margin:0px">Via: SIP/2.0/TCP 10.1.1.222:5070;received=10.1.1.222;rport=55173;branch=z9hG4bK-363135-1750dc6e97437e4788f446f2d818b60a</p><p style="margin:0px">Max-Forwards: 69</p><p style="margin:0px">Contact: <<a href="http://sip:blue1@10.1.1.222:55173">sip:blue1@10.1.1.222:55173</a>>;transport=tcp;+g.3gpp.mcptt;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mcptt";isfocus</p><p style="margin:0px">Accept-Contact: *;+g.3gpp.mcptt;require;explicit</p><p style="margin:0px">Accept-Contact: *;+g.3gpp.icsi-ref="urn:urn-7:3gpp-service.ims.icsi.mcptt";require;explicit</p><p style="margin:0px">P-Preferred-Service: urn:urn-7:3gpp-service.ims.icsi.mcptt</p><p style="margin:0px">P-Preferred-Identity: <<a href="mailto:sip%3Ablue1@demo.net">sip:blue1@demo.net</a>></p><p style="margin:0px">User-Agent: PoC-client/3GPP-Rel13 DemoClient/v2.03.01/BV6000/SDK23</p><p style="margin:0px">Session-Expires: 3600</p><p style="margin:0px">Min-SE: 90</p><p style="margin:0px">Supported: replaces, 100rel, timer, norefersub, timer, answermode, eventlist</p><p style="margin:0px">Resource-Priority: mcpttp.5</p><p style="margin:0px">Content-Type: multipart/mixed;boundary=gnkboundary</p><p style="margin:0px">Content-Length: 997</p><p style="margin:0px"><br></p><p style="margin:0px">--gnkboundary</p><p style="margin:0px">Content-Type: application/sdp</p><p style="margin:0px"><br></p><p style="margin:0px">v=0</p><p style="margin:0px">o=- 3626700268 3626700268 IN IP4 10.1.1.222</p><p style="margin:0px">s=spimedia</p><p style="margin:0px">c=IN IP4 10.1.1.222</p><p style="margin:0px">t=0 0</p><p style="margin:0px">a=X-nat:0</p><p style="margin:0px">m=audio 10002 RTP/AVP 106</p><p style="margin:0px">a=rtcp:10003 IN IP4 10.1.1.222</p><p style="margin:0px">i=speech</p><p style="margin:0px">a=rtpmap:106 AMR-WB/16000</p><p style="margin:0px">a=fmtp:106 mode-change-period=1; mode-change-capability=2; mode-change-neighbor=0; max-red=0</p><p style="margin:0px">a=sendrecv</p><p style="margin:0px">a=ptime:100</p><p style="margin:0px">a=maxptime:400</p><p style="margin:0px">m=application 10003 udp MCPTT</p><p style="margin:0px">a=fmtp:MCPTT mc_queueing;mc_priority=1</p><p style="margin:0px"><br></p><p style="margin:0px">--gnkboundary</p><p style="margin:0px">Content-Type: application/vnd.3gpp.mcptt-info+xml</p><p style="margin:0px"><br></p><p style="margin:0px"><?xml version="1.0" encoding="UTF-8"?></p><p style="margin:0px"><mcpttinfo xmlns="urn:3gpp:ns:mcpttInfo:1.0" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"></p><p style="margin:0px"><mcptt-Params></p><p style="margin:0px"><session-type>chat</session-type></p><p style="margin:0px"><mcptt-request-uri type="Normal"></p><p style="margin:0px"><mcpttURI><a href="mailto:sip%3Accw@demo.net">sip:ccw@demo.net</a>;poc-group=blues</mcpttURI></p><p style="margin:0px"></mcptt-request-uri></p><p style="margin:0px"><mcptt-client-id type="Normal"></p><p style="margin:0px"><mcpttURI>urn:uuid:00000000-0000-1000-8000-AABBCCDDEEFF</mcpttURI></p><p style="margin:0px"></mcptt-client-id></p><p style="margin:0px"></mcptt-Params></p><p style="margin:0px"></mcpttinfo></p><p style="margin:0px"><br></p><p style="margin:0px">--gnkboundary--</p><p style="margin:0px"><br></p><p style="margin:0px">Thanks!<br>Albert</p>
</div>