<!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>
I am afraid I am not familiar with the configuration of those clients for presence.<BR>
<BR>
What should happen is that the client should PUBLISH at around the same time as you REGISTER. When you change your presence information (online/offline/busy, or your status message, or your avatar) the client should send another PUBLISH updating your presentity.<BR>
<BR>
When Kamailio receives the PUBLISH you should detect this and call handle_publish() (in the presence module). It is handle_publish() that populates the presentity table.<BR>
<BR>
Regards,<BR>
<BR>
Peter<BR>
<BR>
On Thu, 2012-01-26 at 14:28 +0100, Vogt, Jonathan wrote:
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">Hello Peter,</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">the presentity table is empty. I have not seen any publish request. Neither using bravis or x-lite.</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">Is there something I can do to make the client send a publish request? Or is my configuration missing something?</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">I got</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">REGISTER</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">401</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">REGISTER</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">200</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">SUBSCRIBE</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">407</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">SUBSCRIBE</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">202</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">NOTIFY</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">200</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#0000ff">see </FONT></FONT><FONT COLOR="#0000ff"><A HREF="http://pastebin.ca/2106425">http://pastebin.ca/2106425</A></FONT><FONT COLOR="#0000ff"><FONT SIZE="2"> for details.</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">Peter Dunkley</FONT><BR>
<B><FONT SIZE="2">Gesendet:</FONT></B><FONT SIZE="2"> Donnerstag, 26. Januar 2012 14:10</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] Enable application/pidf+xml</FONT><BR>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Hello,<BR>
<BR>
Are there any PUBLISH requests between your clients (particularly the client for <A HREF="sip:2002@sip.intern.domain">sip:2002@sip.intern.domain</A>) and Kamailio?<BR>
<BR>
Does the presentity table in Kamailio contain anything?<BR>
<BR>
The active state NOTIFY should contain the presentity information stored for the contact in the presentity table. This table is populated when the contact sends a PUBLISH.<BR>
<BR>
If there is no record in the presentity table for the contact (<A HREF="sip:2002@sip.intern.domain">sip:2002@sip.intern.domain</A>) then this NOTIFY is correct.<BR>
<BR>
Regards,<BR>
<BR>
Peter<BR>
<BR>
On Thu, 2012-01-26 at 14:03 +0100, Vogt, Jonathan wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hello all,
I'm trying to set up kamailio as a sip server with
presence support for Bravis.
So far I got the call processing
running on either openser-1.3.2-3build1 or 3.2.0+lucid1 running.
Problem is the notification is not using Content-Type:
application/pidf+xml
My openser config is at <A HREF="http://pastebin.ca/2106401">http://pastebin.ca/2106401</A>
My kamailio config is pretty much a stock configuration.
It is at <A HREF="http://pastebin.ca/2106404">http://pastebin.ca/2106404</A> I enabled mysql and
presence.
I also tried using x-lite but there is no
presence information either.
modparam("presence_xml", "force_active", 1) did not seem to make
a difference. (I cleaned my watchers table)
I can see the database has the information but the notify packets
are just like this:
NOTIFY <A HREF="sip:2001@10.0.76.0:56239">sip:2001@10.0.76.0:56239</A> SIP/2.0
Via: SIP/2.0/UDP 10.0.10.23;branch=z9hG4bKcb76.b2dab2d4.0
To: <A HREF="sip:2001@sip.intern.domain">sip:2001@sip.intern.domain</A>;tag=90cd05fe2b0619108127da16a6e721e1
From: <A HREF="sip:2002@sip.intern.domain">sip:2002@sip.intern.domain</A>;tag=10.785.1327490724.1
CSeq: 22
NOTIFY
Call-ID: 90cd05fe-2b06-1910-9660-da16a6e721e1
Content-Length: 0
User-Agent: OpenSER (1.3.2-notls (i386/linux))
Max-Forwards: 70
Event: presence
Contact: <<A HREF="sip:10.0.10.23:5060">sip:10.0.10.23:5060</A>>
Subscription-State: active;expires=300
Where is my mistake. As I'm new to kamailio please bear with me,
if I just didn't find the right switch.
Thanks
Jonathan Vogt
_______________________________________________
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>