<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We are developing a Java based RCS gateway implementation and are performing some integration tests on a kamailio/msrprelay platform. <o:p></o:p></p><p class=MsoNormal>The SIP signaling part works so far, but when sending a MSRP message, the server always responds with a 501 “Unknown method” error. On Protocol level, everything look fine so far, the sequence executed is as follows:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>-->SIP REGISTER<o:p></o:p></p><p class=MsoNormal><-- SIP/2.0 401 Unauthorized<o:p></o:p></p><p class=MsoNormal>-->SIP REGISTER<o:p></o:p></p><p class=MsoNormal><--SIP/2.0 200 OK<o:p></o:p></p><p class=MsoNormal>-->INVITE<o:p></o:p></p><p class=MsoNormal><--SIP/2.0 407 Proxy Authentication Required<o:p></o:p></p><p class=MsoNormal>-->ACK<o:p></o:p></p><p class=MsoNormal>-->INVITE<o:p></o:p></p><p class=MsoNormal><--SIP/2.0 180 Ringing<o:p></o:p></p><p class=MsoNormal><--SIP/2.0 180 Ringing<o:p></o:p></p><p class=MsoNormal><--SIP/2.0 200 OK<o:p></o:p></p><p class=MsoNormal>-->ACK<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The INVITE is processed with the following SDP packet in the request:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>v=0<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>o=- 1337788359935 1337788359935 IN IP4 localhost<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>s=MSRP Session<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>c=IN IP4 localhost<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>t=0 0<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>m=message 2855 TCP/MSRP *<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>a=path:msrp://localhost:2855/U3FuvW00m62UY0020H71;tcp<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>a=accept-types:message/cpim text/* application/im-iscomposing+xml<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>a=accept-wrapped-types:*<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>a=setup:active<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>And response:<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>v=0<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>o=- 3546777215 3546777216 IN IP4 46.105.78.68<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>s=sipsimple 0.20.0<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>c=IN IP4 46.105.78.68<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>t=0 0<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>m=message 57233 TCP/MSRP *<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>a=path:msrp://msrphost:2855/5AUNTOt7XlFsK7VuT4SzETEzMzc3ODg0MTUuMDcyOjQ2LjEwNS43OC42OA==;tcp msrp://msrphost:57233/6bf6dd73b9e4587b65b6;tcp<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>a=accept-types:message/cpim text/* application/im-iscomposing+xml<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>a=accept-wrapped-types:*<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>a=setup:passive<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'> <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>But when sending the MSRP message, 501 is returned:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>MSRP f0CHA1TD SEND<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>To-Path: msrp://msrphost:57233/6bf6dd73b9e4587b65b6;tcp<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>From-Path: msrp://localhost:52673/b10XadK9;tcp<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Message-ID: 13377883623135c260a3568cc<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Byte-Range: 1-*/14<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>Hello Francois<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>-------f0CHA1TD$<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'><o:p> </o:p></p><p class=MsoNormal style='margin-left:36.0pt'>MSRP f0CHA1TD 501 Unknown method: SEND<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>To-Path: msrp://localhost:52673/b10XadK9;tcp<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>From-Path: msrp://msrphost:57233/6bf6dd73b9e4587b65b6;tcp<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>-------f0CHA1TD$<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>When testing with the sip-simple client, MSRP messaging works fine, but on protocol traces we cannot identify any differences.<o:p></o:p></p><p class=MsoNormal>Does anyone have a hint on what is wrong in this message flow? Any advice is appreciated.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>Alex<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>