<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    just remembered about this one ...<br>
    <br>
    hmm, I would say now that the right method would be AUTH, not MSRP,
    but as you pointed, in SIP and HTTP the method is the first token in
    request. I guess you had no chance to test with some client or look
    at specs to see if they clarify somehow.<br>
    <br>
    In both cases, the method seems to be static anyhow, either AUTH or
    MSRP (iirc, the authentication is done only for AUTH). Both have the
    same length, so a quick hack would be to replace internally MSRP
    with AUTH for this case. But probably the safest is to extend the
    auth api with a function that takes the method as parameter, which
    is eventually used from inside msrp module.<br>
    <br>
    Probably before the next release I will put some efforts in this
    module, as the interest on it seems to increase, one of the goals
    being to add an internal hash table to track the connections - it
    should bring some performance improvement versus using htable in
    config...<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 10/19/12 3:58 PM, Peter Dunkley
      wrote:<br>
    </div>
    <blockquote
      cite="mid:1350655080.5380.30.camel@pd-notebook-linux.croc.internal"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="GENERATOR" content="GtkHTML/4.4.4">
      Hi,<br>
      <br>
      MSRP AUTH requests must be authenticated using HTTP Digest
      authentication.&nbsp; Part of the concatenated data when doing this
      authentication is the method name.&nbsp; Because of the way MSRP
      requests are formatted, the part of the request-line that would
      contain the method name in HTTP or SIP requests is always MSRP.&nbsp;
      The MSRP method name (AUTH in this case) is at the end of the
      request-line.&nbsp; When Kamailio converts an MSRP request to SIP it
      has a method name of MSRP.<br>
      <br>
      This means that when Kamailio authenticates an MSRP request it
      uses "MSRP" as the method name, not the actual MSRP method name
      (AUTH).<br>
      <br>
      Is this correct?<br>
      <br>
      Should MSRP requests be authenticated with a method name of "MSRP"
      (which kind-of makes sense as this is the string at the start of
      the MSRP request line - which is where the method names are in
      HTTP and SIP) or should the MSRP method name of "AUTH" be used?<br>
      <br>
      If it is the later, does anyone know of an easy way to add this to
      Kamailio?<br>
      <br>
      Regards,<br>
      <br>
      Peter<br>
      <br>
      <table cellpadding="0" cellspacing="0" width="100%">
        <tbody>
          <tr>
            <td>
              <pre>-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</pre>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a></pre>
  </body>
</html>