<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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
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";
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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 bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi Daniel,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks a lot for your response. We will try the embedded module soon.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>In the meanwhile, we found the issue which was related a mistake in the toPath header parameter.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Alex<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Daniel-Constantin Mierla [mailto:miconda@gmail.com] <br><b>Sent:</b> Freitag, 25. Mai 2012 00:20<br><b>To:</b> SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List<br><b>Cc:</b> Reichert Alexander; COURTAULT Francois<br><b>Subject:</b> Re: [SR-Users] Sending MSRP message to kamailio/msrprelay causes 501 error<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hello,<br><br>kamailio has an embedded msrp relay functionality. You have to load and configure msrp module -- it is new in upcoming release (3.3.0, planned to be out about mid of June):<br><br><a href="http://kamailio.org/docs/modules/devel/modules/msrp.html">http://kamailio.org/docs/modules/devel/modules/msrp.html</a><br><br>Have you tried with it as well? I developed the current version, but had no good clients I could test with at that time, so I used mainly network sending tools to simulate msrp traffic.<br><br>Cheers,<br>Daniel<br><br><o:p></o:p></p><div><p class=MsoNormal>On 5/24/12 1:27 PM, Reichert Alexander wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>We are developing a Java based SIP gateway implementation and are performing some integration tests on a kamailio/msrprelay server (plugin from <a href="http://www.msrprelay.org">www.msrprelay.org</a>). <o:p></o:p></p><p class=MsoNormal>The SIP signaling part works so far, but when sending a MSRP message, the client receives a 501 &#8220;Unknown method&#8221; error. However, it seems the request does not reach the MSRP module on the server as there is no corresponding trace log on the server side.<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>On Protocol level, everything looks fine so far, the sequence executed is as follows:<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>--&gt;SIP REGISTER<o:p></o:p></p><p class=MsoNormal>&lt;-- SIP/2.0 401 Unauthorized<o:p></o:p></p><p class=MsoNormal>--&gt;SIP REGISTER<o:p></o:p></p><p class=MsoNormal>&lt;--SIP/2.0 200 OK<o:p></o:p></p><p class=MsoNormal>--&gt;INVITE<o:p></o:p></p><p class=MsoNormal>&lt;--SIP/2.0 407 Proxy Authentication Required<o:p></o:p></p><p class=MsoNormal>--&gt;ACK<o:p></o:p></p><p class=MsoNormal>--&gt;INVITE<o:p></o:p></p><p class=MsoNormal>&lt;--SIP/2.0 180 Ringing<o:p></o:p></p><p class=MsoNormal>&lt;--SIP/2.0 180 Ringing<o:p></o:p></p><p class=MsoNormal>&lt;--SIP/2.0 200 OK<o:p></o:p></p><p class=MsoNormal>--&gt;ACK<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>&nbsp;<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>&nbsp;<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>&nbsp;<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'><span lang=DE>c=IN IP4 46.105.78.68</span><o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><span lang=DE>t=0 0</span><o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'><span lang=DE>m=message 57233 TCP/MSRP *</span><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'>&nbsp;<o:p></o:p></p><p class=MsoNormal>&nbsp;<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>&nbsp;<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'>&nbsp;<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'>&nbsp;<o:p></o:p></p><p class=MsoNormal style='margin-left:36.0pt'>&nbsp;<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>&nbsp;<o:p></o:p></p><p class=MsoNormal>&nbsp;<o:p></o:p></p><p class=MsoNormal>When testing with two sip-simple client endpoints, MSRP messaging works fine, but on protocol traces we cannot identify any differences between sip-simple communication flows and the ones we are implementing.<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>&nbsp;<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>&nbsp;<o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre><pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre><pre><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><o:p></o:p></span></p><pre>-- <o:p></o:p></pre><pre>Daniel-Constantin Mierla - <a href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre><pre><a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p></div></body></html>