[OpenSIPS-Devel] [opensips] OpenSIPS 1.8.4 can not be started when there are dialogs in the dialogs table (#197)

vladpaiu notifications at github.com
Mon May 5 15:06:35 CEST 2014


Hello,

In my tests, the crash no longer occurs with the provided commit.

The underlying issue is that, indeed, the cachedb_sql module does not properly implement the cachedb interface - it manages it's own global connection to the back-end instead of allowing the interface to do it ( this is a side effect of the fact that the module was implemented following the cachedb_local template where there is no actual connection ).

For a full example of the way the interface was meant to work, please take a look at the cachedb_redis ( eg. the init function from the cachedb interface should actually create the connection to the backend , instead of creating the connection in the mod_init func of the back-end module. Further on, that connection can be retrieved when running a command by accessing the cachedb_con->data pointer ).

Best Regards,
Vlad

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/197#issuecomment-42185336
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20140505/3f73b00d/attachment.htm>


More information about the Devel mailing list