[SR-Users] Usrloc reload problem

Jan Klepal jan at klepal.cz
Sun Sep 19 01:55:45 CEST 2010


Hello Daniel,

On Saturday September 18 2010 12:03:59 Daniel-Constantin Mierla wrote:
>   Hello,
> 
> On 9/17/10 3:27 PM, Jan Klepal wrote:
> > Hello,
> > 
> > I run kamailio 3.0.3 with location table stored in database (PostgreSQL
> > 8.4.2) with db_mode 2 (write-back) and upon kamailio restart some
> > contacts from database are loaded incorrectly. Messages for those
> > contacts are routed to invalid IP addresses.
> > 
> > After some debugging I figured out that it happens only for contacts
> > which "received" column value is null. For those contacts value is
> > filled from previously loaded contact having non-null value in
> > "received" column.
> > 
> 
> it was a bug, hopefully fixed. Inside the postgres module, an internal
> buffer was not reset.
> 
> Test with master branch or take the patch from commit (it is small) and
> do it with 3.0.x:
> http://lists.sip-router.org/pipermail/sr-dev/2010-September/008994.html
> 
> Since I have no pg server at hand, couldn't actually test it, so when
> you report is working fine, I will backport to 3.0.x.
> 
> Thanks,
> Daniel

Thank you for fast reply. Yes, this patch solved the problem. Contacts are 
loaded correctly from DB now.

Kind Regards,
Jan



More information about the sr-users mailing list