[Kamailio-Devel] SF.net SVN: openser:[5771] trunk/modules/pua_usrloc/ul_publish.c

Inaki Baz Castillo ibc at aliax.net
Fri Mar 27 01:40:12 CET 2009


Revision: 5771
          http://openser.svn.sourceforge.net/openser/?rev=5771&view=rev
Author:   ibc_sf
Date:     2009-03-27 00:40:12 +0000 (Fri, 27 Mar 2009)

Log Message:
-----------
- Fixed and improved the problem description:

  An error occurs if Kamailio was restarted/stopped and for any reason couldn't store a pua
  entry in 'pua' DB table. It can also occur if 'pua' table is cleaned externally while Kamailio
  is stopped so cannot retrieve these entries from DB when restarting.
  In these cases, when a refresh registration for that user creates an UPDATE action in pua_usrloc,
  pua 'ul_publish()' would fail since the appropiate entry doesn't exist in pua hast table ("New 
  PUBLISH and no body found - invalid request").
  This code solves this problem by invoking an INSERT action if an UPDATE action failed due to the 
  above error. It will however generate a new presentity entry in the presence server (until the
  previous one expires), but this is a minor issue.

Modified Paths:
--------------
    trunk/modules/pua_usrloc/ul_publish.c


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Devel mailing list