<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    also have in mind that web auth is enabled, all requests from local
    users (like those generated by pua_usrloc) are challenged for
    authentication. Either add 127.0.0.1 and server ip in address table
    and enable WITH_IPAUTH or add at the top of route[AUTH] a condition
    like:<br>
    <br>
    if(src_ip==myself)<br>
    &nbsp;&nbsp; return;<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 1/30/12 5:44 PM, Peter Dunkley wrote:
    <blockquote cite="mid:1327941851.2332.18.camel@pd-laptop-linux"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="GENERATOR" content="GtkHTML/4.2.2">
      Hi,<br>
      <br>
      If by auth you mean the WITH_AUTH #!define in the configuration
      file then it sounds like a configuration error.&nbsp; You should check
      that the pua_usrloc stuff you've added isn't excluded when
      WITH_AUTH is not set.<br>
      <br>
      It is also worth remembering that, if you are using a client that
      does not support server presence, or you are using a client that
      does support server presence but doesn't support XCAP, then your
      configuration will only work when you set the force_active
      modparam in presence_xml to 1.&nbsp; This is because with force_active
      not set you need clients that can update the pres-rules documents
      in the resource list to add new contacts to the allow list before
      they will be authorised for presence.<br>
      <br>
      Regards,<br>
      <br>
      Peter<br>
      <br>
      On Mon, 2012-01-30 at 17:17 +0100, Vogt, Jonathan wrote:
      <blockquote type="CITE"> <font size="2">Hello,</font>
      </blockquote>
      <blockquote type="CITE"> &nbsp;
      </blockquote>
      <blockquote type="CITE"> <font size="2">great. I got presence...
          but only when I do not enable auth.</font>
      </blockquote>
      <blockquote type="CITE"> &nbsp;
      </blockquote>
      <blockquote type="CITE"> <font size="2">Is there something I have
          to look out for when enabling auth</font>
      </blockquote>
      <blockquote type="CITE"> &nbsp;
      </blockquote>
      <blockquote type="CITE"> <font size="2">I've take the stock
          config for 3.2.0 as packed in the ubuntu package from the
          website, implementet your changes and reinit the database.</font>
      </blockquote>
      <blockquote type="CITE"> &nbsp;
      </blockquote>
      <blockquote type="CITE"> <font size="2">Apart from your changes I
          defined WITH_USRLOCDB, WITH_PRESENCE, WITH_AUTH, WITH_MYSQL. </font>
      </blockquote>
      <blockquote type="CITE"> &nbsp;
      </blockquote>
      <blockquote type="CITE"> <font size="2">No presence with auth.
          Presence without auth. Cleared the db in between.</font>
      </blockquote>
      <blockquote type="CITE"> &nbsp;
      </blockquote>
      <blockquote type="CITE"> <font size="2">Any hints</font>
      </blockquote>
      <blockquote type="CITE"> &nbsp;
      </blockquote>
      <blockquote type="CITE"> <font size="2">Thanks</font>
      </blockquote>
      <blockquote type="CITE"> <font size="2">Jonathan</font>
      </blockquote>
      <blockquote type="CITE"> &nbsp;
      </blockquote>
      <blockquote type="CITE">
        <hr align="center">
        <br>
        <b><font size="2">Von:</font></b><font size="2">
          <a class="moz-txt-link-abbreviated" href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>
          [<a class="moz-txt-link-freetext" href="mailto:sr-users-bounces@lists.sip-router.org">mailto:sr-users-bounces@lists.sip-router.org</a>] </font><b><font
            size="2">Im Auftrag von </font></b><font size="2">Peter
          Dunkley</font><br>
        <b><font size="2">Gesendet:</font></b><font size="2"> Freitag,
          27. Januar 2012 18:07</font><br>
        <b><font size="2">An:</font></b><font size="2"> SIP Router "-
          Kamailio (OpenSER) and SIP Express Router (SER) -Users Mailing
          "List</font><br>
        <b><font size="2">Betreff:</font></b><font size="2"> Re:
          [SR-Users] Sample pua_usrloc Config Was:
          Enableapplication/pidf+xml</font><br>
        <br>
        <br>
      </blockquote>
      <blockquote type="CITE"> <br>
      </blockquote>
      <blockquote type="CITE"> When I am using pua_usrloc...<br>
        <br>
        Modify the standard config:<br>
        <blockquote> ...<br>
          loadmodule "usrloc.so"<br>
          <b>loadmodule "pua.so"</b><br>
          <b>loadmodule "pua_usrloc.so"</b><br>
          ...<br>
          <b>modparam("pua", "db_url", DBURL)</b><br>
          <b>modparam("pua", "outbound_proxy", "<a
              moz-do-not-send="true" href="sip:127.0.0.1">sip:127.0.0.1</a>")</b><br>
          <b>modparam("pua_usrloc", "default_domain", "&lt;&lt;&lt;
            whatever the domain your system has &gt;&gt;&gt;")</b><br>
          <b>modparam("pua_usrloc", "entity_prefix", "sip")</b><br>
          ...<br>
          route[REGISTRAR] {<br>
          <blockquote> if (is_method("REGISTER"))<br>
            {<br>
            <blockquote> <b>pua_set_publish();</b><br>
              ...<br>
            </blockquote>
            }<br>
          </blockquote>
          ...<br>
          <br>
        </blockquote>
        You need to make sure Kamailio is listening on the loopback
        (127.0.0.1) device on port 5060, or change the pua
        outbound_proxy modparam to contain a real IP address and port
        that Kamailio is using.&nbsp; Setting this outbound_proxy parameter
        makes sure Kamailio routes the PUBLISH generated by
        pua/pua_usrloc through itself (so that it can be picked up and
        handle_publish() is called) instead of using DNS to try and
        route the request.<br>
        <br>
        Also make sure that the pua database table was created when you
        ran kamdbctl to set-up the database.<br>
        <br>
        Regards,<br>
        <br>
        Peter<br>
        <br>
        On Fri, 2012-01-27 at 15:04 +0100, Vogt, Jonathan wrote: <br>
        <blockquote type="CITE"> <font size="2"><font color="#0000ff">Hi
              sorry,</font></font> <br>
          <font size="2"><font color="#0000ff">I guess I just got mixed
              up with all the name, merges, forks and mailinglists...</font></font>
          <br>
          <font size="2"><font color="#0000ff">As I started out with
              openser, tried kamailio and just compiled opensips, I
              would appreaciate a working sample for openser or kamailio
              aswell.</font></font> <br>
          <font size="2"><font color="#0000ff">I just need a sip server
              with presence support for bravis... which for itself does
              not seem to support server side presence...</font></font>
          <br>
          <font size="2"><font color="#0000ff">Thanks</font></font> <br>
          <font size="2"><font color="#0000ff">Jonathan</font></font> <br>
          <br>
          <hr align="center">
          <br>
          <br>
          <b><font size="2">Von:</font></b><font size="2">
            <a class="moz-txt-link-abbreviated" href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>
            [<a class="moz-txt-link-freetext" href="mailto:sr-users-bounces@lists.sip-router.org">mailto:sr-users-bounces@lists.sip-router.org</a>] </font><b><font
              size="2">Im Auftrag von </font></b><font size="2">Carsten
            Bock</font><br>
          <b><font size="2">Gesendet:</font></b><font size="2"> Freitag,
            27. Januar 2012 14:55</font><br>
          <b><font size="2">An:</font></b><font size="2"> SIP Router -
            Kamailio (OpenSER) and SIP Express Router (SER) -
            UsersMailing List</font><br>
          <b><font size="2">Betreff:</font></b><font size="2"> Re:
            [SR-Users] Sample pua_usrloc Config Was:
            Enableapplication/pidf+xml</font><br>
          <br>
          <br>
          <br>
          Hi, <br>
          <br>
          <br>
          this is the wrong mailing list: <br>
          This Mailinglist is about OpenSER (the original), Kamailio,
          SER and <a moz-do-not-send="true"
            href="http://sip-router.org">sip-router.org</a> - not
          OpenSIPS. <br>
          If you have problems with an OpenSIPS configuration or module,
          please post it to the OpenSIPS-list. <br>
          <br>
          <br>
          We can only provide help for our modules. <br>
          <br>
          <br>
          Thank you, <br>
          Carsten<br>
          <br>
          2012/1/27 Vogt, Jonathan &lt;<a moz-do-not-send="true"
            href="mailto:J.Vogt@swp.de">J.Vogt@swp.de</a>&gt; <br>
          <blockquote> <font color="#0000ff">Hello,</font> <br>
            <font color="#0000ff">could anyone kindly send me a working
              config which does support clients that not support server
              presence or send me a link to a working sample
              configuration. I seem unable to produce a working config
              myself.</font> <br>
            <ol type="1">
              <font color="#0000ff">I have take the source from <a
                  moz-do-not-send="true" href="http://opensips.org">opensips.org</a>
                and compiled it.</font> <br>
              <font color="#0000ff">Taken the conf from <a
                  moz-do-not-send="true"
                  href="http://www.opensips.org/Resources/PuaUsrlocConfig">http://www.opensips.org/Resources/PuaUsrlocConfig</a>&nbsp;replaced
                sip domain and ip and enabled auth</font> <br>
              <font color="#0000ff">Reset DB and created users</font> <br>
              <font color="#0000ff">Replaced X-LITE in conf with BRAVIS
                useragent.</font> <br>
              <font color="#0000ff">Tested and did not work...</font> <br>
              <font color="#0000ff">undid step 4 and used X-LITE 4 for
                test... did not work either.</font> <br>
            </ol>
            <font color="#0000ff">I'm lost here. Any help appreciated.</font>
            <br>
            <font color="#0000ff">Thanks</font> <br>
            <font color="#0000ff">Jonathan</font> <br>
            <br>
            <hr align="center">
            <br>
            <br>
            <b>Von:</b> <a moz-do-not-send="true"
              href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>
            [mailto:<a moz-do-not-send="true"
              href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>]
            <b>Im Auftrag von </b>Peter Dunkley<br>
            <b>Gesendet:</b> Donnerstag, 26. Januar 2012 15:38<br>
            <b>An:</b> SIP Router "- Kamailio (OpenSER) and SIP Express
            Router (SER) -Users Mailing "List<br>
            <b>Betreff:</b> Re: [SR-Users] Enable application/pidf+xml<br>
            <br>
            <br>
            <br>
            Hello,<br>
            <br>
            I think that force_active affects the state of the SUBSCRIBE
            dialogs.&nbsp; So, a presentity does not have to explicitly
            authorise a watcher.&nbsp; This is not the same as automatically
            PUBLISH'ing presence state.&nbsp; I don't believe force_active
            will do what you want here as it has nothing to do with the
            body of the NOTIFY, just the Subscription-State: SIP header.<br>
            <br>
            Also, I think the problem could be that X-Lite supports
            peer-to-peer presence (where the clients exchange SUBSCRIBEs
            and NOTIFYs) but does not support server presence (where the
            SUBSCRIBEs are from the client to the server, NOTIFYs are
            from the server to the client, and the client must PUBLISH
            to the server).<br>
            <br>
            If you want the server to automatically PUBLISH for a client
            that does not support server presence (so online when you
            REGISTER and offline when you un-REGISTER) take a look a
            pua_usrloc.<br>
            <br>
            Regards,<br>
            <br>
            Peter<br>
            <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>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
            mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            <br>
          </blockquote>
          <br>
          <br>
          <br>
          <br>
          -- <br>
          Carsten Bock<br>
          CEO (Gesch&auml;ftsf&uuml;hrer)<br>
          <br>
          ng-voice GmbH<br>
          Schomburgstr. 80<br>
          D-22767 Hamburg / Germany<br>
          <br>
          <a moz-do-not-send="true" href="http://www.ng-voice.com">http://www.ng-voice.com</a><br>
          mailto:<a moz-do-not-send="true"
            href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br>
          <br>
          Mobile +49 179 2021244<br>
          Office +49 40 34927219<br>
          Fax +49 40 34927220<br>
          <br>
          Sitz der Gesellschaft: Hamburg<br>
          Registergericht: Amtsgericht Hamburg, HRB 120189<br>
          Gesch&auml;ftsf&uuml;hrer: Carsten Bock<br>
          Ust-ID: DE279344284<br>
          <br>
          Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
          <a moz-do-not-send="true"
            href="http://www.ng-voice.com/imprint/">http://www.ng-voice.com/imprint/</a><br>
          <br>
          <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
        </blockquote>
        <br>
        <table cellpadding="0" cellspacing="0" width="100%">
          <tbody>
            <tr>
              <td>
                <pre>-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</pre>
              </td>
            </tr>
          </tbody>
        </table>
        <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <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="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</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://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>