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