<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.2.2">
</HEAD>
<BODY>
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"> sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] </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 &quot;- Kamailio (OpenSER) and SIP Express Router (SER) -Users Mailing &quot;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 &quot;usrloc.so&quot;<BR>
        <B>loadmodule &quot;pua.so&quot;</B><BR>
        <B>loadmodule &quot;pua_usrloc.so&quot;</B><BR>
        ...<BR>
        <B>modparam(&quot;pua&quot;, &quot;db_url&quot;, DBURL)</B><BR>
        <B>modparam(&quot;pua&quot;, &quot;outbound_proxy&quot;, &quot;<A HREF="sip:127.0.0.1">sip:127.0.0.1</A>&quot;)</B><BR>
        <B>modparam(&quot;pua_usrloc&quot;, &quot;default_domain&quot;, &quot;&lt;&lt;&lt; whatever the domain your system has &gt;&gt;&gt;&quot;)</B><BR>
        <B>modparam(&quot;pua_usrloc&quot;, &quot;entity_prefix&quot;, &quot;sip&quot;)</B><BR>
        ...<BR>
        route[REGISTRAR] {<BR>
        <BLOCKQUOTE>
            if (is_method(&quot;REGISTER&quot;))<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"> sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] </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 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 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 HREF="http://opensips.org">opensips.org</A> and compiled it.</FONT> <BR>
                <FONT COLOR="#0000ff">Taken the conf from <A 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 HREF="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</A> [mailto:<A 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 &quot;- Kamailio (OpenSER) and SIP Express Router (SER) -Users Mailing &quot;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 CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
            <BR>
            _______________________________________________<BR>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<BR>
            <A HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A><BR>
            <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><BR>
            <BR>
        </BLOCKQUOTE>
        <BR>
        <BR>
        <BR>
        <BR>
        -- <BR>
        Carsten Bock<BR>
        CEO (Gesch&#228;ftsf&#252;hrer)<BR>
        <BR>
        ng-voice GmbH<BR>
        Schomburgstr. 80<BR>
        D-22767 Hamburg / Germany<BR>
        <BR>
        <A HREF="http://www.ng-voice.com">http://www.ng-voice.com</A><BR>
        mailto:<A 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&#228;ftsf&#252;hrer: Carsten Bock<BR>
        Ust-ID: DE279344284<BR>
        <BR>
        Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<BR>
        <A 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 HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A>
<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>
</PRE>
    </BLOCKQUOTE>
    <BR>
    <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
<PRE>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<A HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A>
<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>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>