<!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>
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:
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#0000ff">Hi sorry,</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &nbsp;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#0000ff">I guess I just got mixed up with all the name, merges, forks and mailinglists...</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &nbsp;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <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>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &nbsp;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <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>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    &nbsp;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#0000ff">Thanks</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#0000ff">Jonathan</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</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">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>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Hi, 
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    this is the wrong mailing list:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    This Mailinglist is about OpenSER (the original), Kamailio, SER and <A HREF="http://sip-router.org">sip-router.org</A> - not OpenSIPS.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    If you have problems with an OpenSIPS configuration or module, please post it to the OpenSIPS-list.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    We can only provide help for our modules.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Thank you,
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Carsten<BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    2012/1/27 Vogt, Jonathan &lt;<A HREF="mailto:J.Vogt@swp.de">J.Vogt@swp.de</A>&gt;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <FONT COLOR="#0000ff">Hello,</FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        &nbsp;
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <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>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        &nbsp;
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <OL TYPE=1>
            <FONT COLOR="#0000ff">I have take the source from <A HREF="http://opensips.org">opensips.org</A> and compiled it.</FONT>
        </OL>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <OL TYPE=1>
            <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>
        </OL>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <OL TYPE=1>
            <FONT COLOR="#0000ff">Reset DB and created users</FONT>
        </OL>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <OL TYPE=1>
            <FONT COLOR="#0000ff">Replaced X-LITE in conf with BRAVIS useragent.</FONT>
        </OL>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <OL TYPE=1>
            <FONT COLOR="#0000ff">Tested and did not work...</FONT>
        </OL>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <OL TYPE=1>
            <FONT COLOR="#0000ff">undid step 4 and used X-LITE 4 for test... did not work either.</FONT>
        </OL>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <FONT COLOR="#0000ff">I'm lost here. Any help appreciated.</FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        &nbsp;
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <FONT COLOR="#0000ff">Thanks</FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <FONT COLOR="#0000ff">Jonathan</FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        
<HR ALIGN="center">
<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>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        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>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE>
        <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>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    -- <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>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<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>