Hello,

On 9/19/10 1:55 AM, Jan Klepal wrote:
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.


ok, thanks for reporting back. I pushed the patch to kamailio_3.0 branch.

Daniel

--
Daniel-Constantin Mierla
http://www.asipto.com


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to