<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Jon,<div class=""><br class=""></div><div class="">Realistically, this is alpha functionality, at best.  If you, and/or your organization, do not have the expertise, resources, and/or risk tolerance for this, I couldn’t in good faith recommend that you do it.</div><div class=""><br class=""></div><div class="">There are many other clustering technologies for MySQL and PostgreSQL that are mature, and *should* be compatible with the existing implementation.  Perhaps someone on the list can let us know if they’re using one of the following:</div><div class=""><br class=""></div><div class="">- MySQL Galera</div><div class="">- PostgreSQL replication (either using Pacemaker/Corosync or Zookeeper to provide automated failover and/or Master/Master)</div><div class="">- Vitess: <a href="https://github.com/vitessio/vitess" class="">https://github.com/vitessio/vitess</a></div><div class="">- Some other solution not listed here?</div><div class=""><br class=""></div><div class="">That being said, I’ve spend as much time on this as I can.  I solved the permissions module issue in this way:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">diff --git a/utils/kamctl/postgres/permissions-create.sql b/utils/kamctl/postgres/permissions-create.sql</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">index f397ca22f4..66de10ddcb 100644</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">--- a/utils/kamctl/postgres/permissions-create.sql</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">+++ b/utils/kamctl/postgres/permissions-create.sql</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class="">@@ -20,10 +20,10 @@</span><span style="font-variant-ligatures: no-common-ligatures" class=""> CREATE SEQUENCE address_id_seq;</span></div><p style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> CREATE TABLE address (</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">     id integer PRIMARY KEY NOT NULL DEFAULT nextval('address_id_seq'),</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo; color: rgb(180, 36, 25);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-    grp INTEGER DEFAULT 1 NOT NULL,</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo; color: rgb(47, 180, 29);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">+    grp INT4 DEFAULT 1 NOT NULL,</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">     ip_addr VARCHAR(50) NOT NULL,</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo; color: rgb(180, 36, 25);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-    mask INTEGER DEFAULT 32 NOT NULL,</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo; color: rgb(180, 36, 25);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-    port SMALLINT DEFAULT 0 NOT NULL,</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo; color: rgb(47, 180, 29);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">+    mask INT4 DEFAULT 32 NOT NULL,</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo; color: rgb(47, 180, 29);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">+    port INT2 DEFAULT 0 NOT NULL,</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">     tag VARCHAR(64)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> );</span></div><p style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></p><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">diff --git a/src/modules/db_postgres/km_res.c b/src/modules/db_postgres/km_res.c</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">index 13ac138c1a..f4813cafcc 100644</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">--- a/src/modules/db_postgres/km_res.c</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">+++ b/src/modules/db_postgres/km_res.c</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class="">@@ -151,11 +151,11 @@</span><span style="font-variant-ligatures: no-common-ligatures" class=""> int db_postgres_get_columns(const db1_con_t *_h, db1_res_t *_r)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        case VARCHAROID:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        case NAMEOID:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        case BPCHAROID:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class="">+</span><span style="font-variant-ligatures: no-common-ligatures" class="">                       </span><span style="font-variant-ligatures: no-common-ligatures; color: #2fb41d" class="">case TEXTOID:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                                LM_DBG("use DB1_STRING result type\n");</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                                RES_TYPES(_r)[col] = DB1_STRING;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                                break;</span></div><p style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo; color: rgb(180, 36, 25);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">-                       case TEXTOID:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        case BYTEAOID:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                                LM_DBG("use DB1_BLOB result type\n");</span></div><div style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                                RES_TYPES(_r)[col] = DB1_BLOB;</span></div><p style="margin: 0px; font-stretch: normal; font-size: 18px; line-height: normal; font-family: Menlo; min-height: 21px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> </span><br class="webkit-block-placeholder"></p></div><div class="">For the schema update, it becomes CockroachDB specific, hence the need to start creating CockroachDB specific migration files.  For the  km_res.c change, this is where things are probably not ideal.  I’m hoping that Henning and/or Daniel can respond.  Essentially, CockroachDB stores all character/string datatypes the same way, and then presents this as a TEXTOID datatype.  I think the problem with moving this to the DB1_STRING type is that we *could* have memory overruns?  That’s just my guess.  Maybe it’s completely safe?</div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class="">~Noah<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 26, 2021, at 5:15 AM, Jonathan Hunter <<a href="mailto:hunterj91@hotmail.com" class="">hunterj91@hotmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Hi Noah,</div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Hope you are well?<span class="Apple-converted-space"> </span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Realistically do you think you will be able to spend some time on this or do you think I need to look at other options in the short term?</div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">I guess the primary requirements for me are being able to use these modules which require database interaction (mainly Permissions,userloc,dispatcher).</div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">I have started to work through it but I am pondering if in the short term I need to focus on a support database and look to migrate when available.</div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Thanks!</div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Jon</div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Sent from<span class="Apple-converted-space"> </span><a href="https://go.microsoft.com/fwlink/?LinkId=550986" style="color: blue; text-decoration: underline;" class="">Mail</a><span class="Apple-converted-space"> </span>for Windows 10</div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0cm 0cm;" class=""><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; border: none; padding: 0cm;" class=""><b class="">From:<span class="Apple-converted-space"> </span></b><a href="mailto:hunterj91@hotmail.com" style="color: blue; text-decoration: underline;" class="">Jonathan Hunter</a><br class=""><b class="">Sent:<span class="Apple-converted-space"> </span></b>22 February 2021 11:20<br class=""><b class="">To:<span class="Apple-converted-space"> </span></b><a href="mailto:hw@skalatan.de" style="color: blue; text-decoration: underline;" class="">Henning Westerholt</a>;<span class="Apple-converted-space"> </span><a href="mailto:noahmehl@gmail.com" style="color: blue; text-decoration: underline;" class="">Noah Mehl</a><br class=""><b class="">Cc:<span class="Apple-converted-space"> </span></b><a href="mailto:sr-users@lists.kamailio.org" style="color: blue; text-decoration: underline;" class="">Kamailio (SER) - Users Mailing List</a><br class=""><b class="">Subject:<span class="Apple-converted-space"> </span></b>Re: [SR-Users] Cockroachdb and kamailio 5.4</div></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Hi Noah and Henning,<o:p class=""></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Thank you for your responses, I am currently digesting them!<o:p class=""></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">If I can be of any help testing/working on this please let me know as Im very keen to implement it so will review and also happy to take direction as I will be testing this week on it.<o:p class=""></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Thanks again<o:p class=""></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Jon<o:p class=""></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Sent from<span class="Apple-converted-space"> </span><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986&data=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495896580748983%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=wfJ2SNI115vi8gpeFb1bs%2BYTLSGCc6BMCZjG9AzMXNk%3D&reserved=0" style="color: blue; text-decoration: underline;" class="">Mail</a><span class="Apple-converted-space"> </span>for Windows 10<o:p class=""></o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0cm 0cm;" class=""><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><b class="">From:<span class="Apple-converted-space"> </span></b><a href="mailto:hw@skalatan.de" style="color: blue; text-decoration: underline;" class="">Henning Westerholt</a><br class=""><b class="">Sent:<span class="Apple-converted-space"> </span></b>22 February 2021 07:44<br class=""><b class="">To:<span class="Apple-converted-space"> </span></b><a href="mailto:noahmehl@gmail.com" style="color: blue; text-decoration: underline;" class="">Noah Mehl</a>;<span class="Apple-converted-space"> </span><a href="mailto:hunterj91@hotmail.com" style="color: blue; text-decoration: underline;" class="">Jonathan Hunter</a><br class=""><b class="">Cc:<span class="Apple-converted-space"> </span></b><a href="mailto:sr-users@lists.kamailio.org" style="color: blue; text-decoration: underline;" class="">Kamailio (SER) - Users Mailing List</a><br class=""><b class="">Subject:<span class="Apple-converted-space"> </span></b>RE: Cockroachdb and kamailio 5.4<o:p class=""></o:p></div></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Hi Noah,<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="">sure – let me give you some pointers. So basically, the SQL files are generated from the XSL infrastructure in the quoted directory. This file e.g. is for postgres:<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio%2Fblob%2F5.4%2Fdoc%2Fstylesheets%2Fdbschema%2Fxsl%2Fpostgres.xsl&data=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495896580748983%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=133XFlkVh6RSwjeJJR9rNgxJda%2BHp6kwwCiqjxEBrCc%3D&reserved=0" style="color: blue; text-decoration: underline;" class="">https://github.com/kamailio/kamailio/blob/5.4/doc/stylesheets/dbschema/xsl/postgres.xsl</a><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="">You basically need to copy it to a new file and adapt the types in it to the cockroachdb types. If you execute “make dbschema” in the kamailio source tree, it will generate all the SQL files. Then you could generate the appropriate SQL files also for your database and it will stay in sync after future changes. There might be also a small extension necessary in the Makefile, but we can have a look to this later on.<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="">About the questions why the SQL files are then also checked in after creation – because otherwise everybody needs to install the xstl dependencies just for installing Kamailio.<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="">About the rand()/random() topic – I did not find anything in the LCR module as well. It might be obsolete. I would consider dropping this, maybe after asking on the sr-dev list for this again.<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="">Cheers,<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="">Henning<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><o:p class=""> </o:p></span></div><div class=""><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="">--<span class="Apple-converted-space"> </span><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="">Henning Westerholt –<span class="Apple-converted-space"> </span></span><span lang="DE" class=""><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F&data=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495896580758973%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=WyJLH7SRrx2P0DQ8qBV6qof%2FByJvrQ%2B1q%2FKCqlkANXc%3D&reserved=0" style="color: blue; text-decoration: underline;" class=""><span lang="EN-GB" style="color: rgb(5, 99, 193);" class="">https://skalatan.de/blog/</span></a></span><span class=""><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class="">Kamailio services –<span class="Apple-converted-space"> </span></span><span lang="DE" class=""><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F&data=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495896580768968%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ecql4Cf5n%2B%2Fw6sVxJHMphXwNT82g3NwXzH8D%2FNvbSBk%3D&reserved=0" style="color: blue; text-decoration: underline;" class=""><span lang="EN-GB" style="color: rgb(5, 99, 193);" class="">https://gilawa.com</span></a></span><span class=""><o:p class=""></o:p></span></div></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span class=""><o:p class=""> </o:p></span></div><div class=""><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0cm 0cm;" class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><b class=""><span lang="DE" class="">From:</span></b><span lang="DE" class=""><span class="Apple-converted-space"> </span>Noah Mehl <<a href="mailto:noahmehl@gmail.com" class="">noahmehl@gmail.com</a>><span class="Apple-converted-space"> </span><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Sunday, February 21, 2021 8:47 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Jonathan Hunter <<a href="mailto:hunterj91@hotmail.com" class="">hunterj91@hotmail.com</a>><br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span>Henning Westerholt <<a href="mailto:hw@skalatan.de" class="">hw@skalatan.de</a>>; Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" class="">sr-users@lists.kamailio.org</a>><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: Cockroachdb and kamailio 5.4<o:p class=""></o:p></span></div></div></div><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Jon,<o:p class=""></o:p></span></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">I’m not sure what would get my branch accepted.  Henning mentioned on 9/16/2020 that the .sql files are generated from XML/XLST scripts, I have found: <a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio%2Ftree%2F5.4%2Fdoc%2Fstylesheets%2Fdbschema&data=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495896580768968%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=1Oy2Tr%2B0G4vqj5hsWV6FBVJrDjomsF48hQwwtmg%2FGzY%3D&reserved=0" style="color: blue; text-decoration: underline;" class="">https://github.com/kamailio/kamailio/tree/5.4/doc/stylesheets/dbschema</a> which was updated just 3 days ago.  However, I don’t understand how this is used to generate the .sql files for Postgres. I’m also confused as to why the .sql files are checked into the repository if they’re generated?  Henning, can you point me in the right direction?<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">That being said, this is what’s <a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkamailio%2Fkamailio%2Fcompare%2F5.4...reperio%3Acockroachdb-compat%3Fexpand%3D1&data=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495896580778968%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ImCDuX5GeAQ%2B5oexw1OIRcIDgjJ4e81JazzyLL8fPoQ%3D&reserved=0" style="color: blue; text-decoration: underline;" class="">changed in the branch</a>:<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">kamdbctl.pgsql<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">- I’ve updated the psql command for my preferences regarding output<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">- I’ve made the function checking more verbose<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">- I’ve added the gen_random_uuid() function (by adding pgcrypto to Postgres, it’s native in CockroachDB), this isn’t required, but we are using UUID for usrloc in production<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">- I’ve updated the GRANT commands so they’re compatible with both Postgres and CockroachDB<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Some things to note:<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">- concat() is native to CockroachDB, so the CREATE FUNCTION is only necessary for Postgres<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">- rand() is the native function name in MySQL, but random() is the function name in Postgres and CockroachDB.  This is where I’m most concerned because the file says it’s used in the lcr module, but I cannot find where it is used.  Does anyone know how to ascertain this?  Anyways, they’re the same function, so it’s a little silly to require a CREATE FUNCTION duplicating the exact functionality of an existing native function.<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">The rest of the changes have to do with modifying the create statements to not use SERIAL, but use the more verbose SEQUENCE + nextval().  It’s identical in practice, so there’s 0 risk there.<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">I think overall risk is low for the branch, as the branch only changes the utility that creates the DBs.  As for production use, it’s worked great for us, there have been no issues.<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">~Noah<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div><div class=""><blockquote style="margin-top: 5pt; margin-bottom: 5pt;" class=""><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">On Feb 18, 2021, at 2:45 PM, Jonathan Hunter <<a href="mailto:hunterj91@hotmail.com" style="color: blue; text-decoration: underline;" class="">hunterj91@hotmail.com</a>> wrote:<o:p class=""></o:p></span></div></div><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""><o:p class=""> </o:p></span></div><div class=""><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Hi Noah,<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Hope you are well?<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">I work as a consultant for a company in the UK, and I am building a new hosted telephony platform for them in docker initially, and as we are deploying across multiple servers they want to use cockroachdb to allow easy management of a cluster environment.<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">I could see from your posts you got it working using your own branch, and I wondered what changes you made to make things work correctly and what would be needed to get the kamailio dev’s to accept it into the main stream of code? (Happy to help here where I can).<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Unless you will maintain your branch forever<span class="apple-converted-space"> </span></span><span lang="DE" style="font-family: "Segoe UI Emoji", sans-serif;" class="">😊</span><span class="apple-converted-space"><span lang="DE" class=""> </span></span><span lang="DE" class="">Or are the changes small so its not too much of a concern? I just want to assess the risk really, and like you I think mainly we will just be using userloc and dispatcher for DB interaction so its positive to hear they work fine.  We would also be using rtpengine, routing data will be done via API so that should be fine. FYI Id like to run kamailio 5.4 initially.<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">I see your comments about table creation (in previous posts), that is the initial problem I am seeing when trying to use postgres based commands direct from a pgdump to create the kamailio database structure, does your branch contain all the creation scripts for the db/tables that I can use for testing?<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Thanks again in advance  for the response!<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Jon<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Sent from<span class="apple-converted-space"> </span><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986&data=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495896580778968%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=fexlfwpfymUb4KPDFBe0P5yPAyhyN6qHQeiRUxRnEnM%3D&reserved=0" style="color: blue; text-decoration: underline;" class="">Mail</a><span class="apple-converted-space"> </span>for Windows 10<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0cm 0cm;" class=""><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><b class=""><span lang="DE" class="">From:<span class="apple-converted-space"> </span></span></b><span lang="DE" class=""><a href="mailto:hw@skalatan.de" style="color: blue; text-decoration: underline;" class="">Henning Westerholt</a><br class=""><b class="">Sent:<span class="apple-converted-space"> </span></b>17 February 2021 16:18<br class=""><b class="">To:<span class="apple-converted-space"> </span></b><a href="mailto:sr-users@lists.kamailio.org" style="color: blue; text-decoration: underline;" class="">Kamailio (SER) - Users Mailing List</a><br class=""><b class="">Cc:<span class="apple-converted-space"> </span></b><a href="mailto:hunterj91@hotmail.com" style="color: blue; text-decoration: underline;" class="">Jonathan Hunter</a>;<span class="apple-converted-space"> </span><a href="mailto:noahmehl@gmail.com" style="color: blue; text-decoration: underline;" class="">Noah Mehl</a><br class=""><b class="">Subject:<span class="apple-converted-space"> </span></b>RE: Cockroachdb and kamailio 5.4<o:p class=""></o:p></span></div></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Hi Jonathan,<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">no – I do not think that there has been more work done so far, apart from the discussion that you referenced below.<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">If you are also interested in getting this forward, why not reaching out to the other guy starting this discussion earlier? Just to see if you can maybe join forces to get something of this work into a pull request for review and later a possible merge into our code base.<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Cheers,<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Henning<o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">--<span class="apple-converted-space"> </span><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Henning Westerholt –<span class="apple-converted-space"> </span><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fskalatan.de%2Fblog%2F&data=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495896580788959%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=tWewhClNesvM5Ir9mQTGN%2BzLqn5rX9AiXR7PiL1ShwE%3D&reserved=0" style="color: blue; text-decoration: underline;" class=""><span lang="EN-GB" style="color: rgb(5, 99, 193);" class="">https://skalatan.de/blog/</span></a><o:p class=""></o:p></span></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Kamailio services –<span class="apple-converted-space"> </span><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgilawa.com%2F&data=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495896580788959%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=LfQkbi385L8IeF31Y31%2Bj%2FWjsQotV9Sl9ONa1GSGWms%3D&reserved=0" style="color: blue; text-decoration: underline;" class=""><span lang="EN-GB" style="color: rgb(5, 99, 193);" class="">https://gilawa.com</span></a><o:p class=""></o:p></span></div></div></div><div class=""><div style="margin: 0cm 0cm 0cm 107.4pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div class=""><div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0cm 0cm;" class=""><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><b class=""><span lang="DE" class="">From:</span></b><span class="apple-converted-space"><span lang="DE" class=""> </span></span><span lang="DE" class="">sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" style="color: blue; text-decoration: underline;" class="">sr-users-bounces@lists.kamailio.org</a>><span class="apple-converted-space"> </span><b class="">On Behalf Of<span class="apple-converted-space"> </span></b>Jonathan Hunter<br class=""><b class="">Sent:</b><span class="apple-converted-space"> </span>Wednesday, February 17, 2021 1:59 PM<br class=""><b class="">To:</b><span class="apple-converted-space"> </span>Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" style="color: blue; text-decoration: underline;" class="">sr-users@lists.kamailio.org</a>><br class=""><b class="">Subject:</b><span class="apple-converted-space"> </span>[SR-Users] Cockroachdb and kamailio 5.4<o:p class=""></o:p></span></div></div></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Hi Guys,<o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Hope all are well?<o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">We are looking to implement kamailio with cockroachdb due to the advantages it gives us in terms of postgres management and clustering.<o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">I can see from a previous string<span class="apple-converted-space"> </span><a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsip-router.1086192.n5.nabble.com%2FCockroachDB-and-Kamailio-td189233.html&data=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495896580798955%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=W0EHwyhP6MED5bk0kz4ujts571Gd1eOsoKv8pwPaGVY%3D&reserved=0" style="color: blue; text-decoration: underline;" class="">http://sip-router.1086192.n5.nabble.com/CockroachDB-and-Kamailio-td189233.html</a><span class="apple-converted-space"> </span>that someone has attempted this and even created their own branch.<o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Has any further work been done on this, and if so has anyone got any advice/tips relating to it? As I am nervous about potentially using a branch and not a general release of kamailio moving forwards.<o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">I appreciate you cant support all database types but I would just be interested to hear people’s thoughts on the topic.<o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Many thanks!<o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Jon<o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class=""> <o:p class=""></o:p></span></div></div><div style="margin-left: 35.4pt;" class=""><div style="margin: 0cm 0cm 0cm 178.2pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="DE" class="">Sent from<span class="apple-converted-space"> </span><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D550986&data=04%7C01%7C%7Cfd34312b504a4723068008d8d723ebe4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637495896580808947%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=QKTdRVK1GWNKxl%2FzoJdwA35Ex0rChkdtt9bqW95ubKU%3D&reserved=0" style="color: blue; text-decoration: underline;" class="">Mail</a><span class="apple-converted-space"> </span>for Windows 10</span></div></div></div></blockquote></div></div></div></div></blockquote></div><br class=""></div></body></html>