<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.17107" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=027224214-30012012><FONT face=Arial 
size=2>Hello,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=027224214-30012012><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=027224214-30012012><FONT face=Arial 
size=2>great. I got presence... but only when I do not enable 
auth.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=027224214-30012012><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=027224214-30012012><FONT face=Arial 
size=2>Is there something I have to look out for when enabling 
auth</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=027224214-30012012><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=027224214-30012012><FONT face=Arial 
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></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=027224214-30012012><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=027224214-30012012>Apart from your changes I defined WITH_USRLOCDB, 
WITH_PRESENCE, </SPAN>WITH_AUTH<SPAN class=027224214-30012012>, 
</SPAN>WITH_<SPAN class=027224214-30012012>MYSQL. </SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=027224214-30012012></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=027224214-30012012>No presence with auth. Presence without auth. Cleared 
the db in between.</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=027224214-30012012></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=027224214-30012012>Any hints</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=027224214-30012012></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=027224214-30012012>Thanks</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=027224214-30012012>Jonathan</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=027224214-30012012></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> sr-users-bounces@lists.sip-router.org 
[mailto:sr-users-bounces@lists.sip-router.org] <B>Im Auftrag von </B>Peter 
Dunkley<BR><B>Gesendet:</B> Freitag, 27. Januar 2012 18:07<BR><B>An:</B> SIP 
Router "- Kamailio (OpenSER) and SIP Express Router (SER) -Users Mailing 
"List<BR><B>Betreff:</B> Re: [SR-Users] Sample pua_usrloc Config Was: 
Enableapplication/pidf+xml<BR></FONT><BR></DIV>
<DIV></DIV>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 
  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: 
<BLOCKQUOTE TYPE="CITE"><FONT size=2><FONT color=#0000ff>Hi 
  sorry,</FONT></FONT> </BLOCKQUOTE>
<BLOCKQUOTE TYPE="CITE"> </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"> </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"> </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"> </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> </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> </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> </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 "- Kamailio (OpenSER) and SIP 
    Express Router (SER) -Users Mailing "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%">
      <TBODY>
      <TR>
        <TD><PRE>-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE></TD></TR></TBODY></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äftsfü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äftsfü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%">
  <TBODY>
  <TR>
    <TD><PRE>-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE></TD></TR></TBODY></TABLE></BODY></HTML>