<div dir="ltr">hi Henning,<br><br>No. To read this table I am using usrloc module :/<br>So, We are using lookup() function of the registrar module whereas the aliases table (has version 8) was given as parameter but not location (has version 9).<br><br><div>
I got rid of this error by writing lookup("location") instead of lookup("aliases").

<br></div><div><br></div><div>Thus, I have a new question :</div><br>Should one only use lookup() function of the registrar module along with usrloc module to query only the "location" table ?<br>or<br><div>Use only alias_db_lookup() function from alias_db module to query the "aliases" table ?</div><div><br></div><div>what I was exactly getting as an error is below:</div><div> </div><div> 0(4231) ERROR: <core> [db.c:450]: db_check_table_version(): invalid version 8 for table aliases found, expected 9 (check table structure and table "version")<br> 0(4231) ERROR: usrloc [dlist.c:649]: register_udomain(): error during table version check.<br> 0(4231) ERROR: registrar [registrar.c:651]: domain_fixup(): failed to register domain<br> 0(4231) ERROR: <core> [core/route.c:1154]: fix_actions(): fixing failed (code=-1) at cfg://etc/kamailio/kamailio.cfg:1065<br> 0(4231) ERROR: <core> [core/rvalue.c:3860]: fix_rval_expr(): failure in cfg at line: 1065 col: 28<br> 0(4231) ERROR: <core> [core/route.c:1154]: fix_actions(): fixing failed (code=-1) at cfg://etc/kamailio/kamailio.cfg:1271<br> 0(4231) ERROR: <core> [core/route.c:1154]: fix_actions(): fixing failed (code=-1) at cfg://etc/kamailio/kamailio.cfg:1271<br> 0(4231) ERROR: <core> [core/route.c:1154]: fix_actions(): fixing failed (code=-1) at cfg://etc/kamailio/kamailio.cfg:1271<br> 0(4231) ERROR: <core> [core/route.c:1154]: fix_actions(): fixing failed (code=-1) at cfg://etc/kamailio/kamailio.cfg:1276<br><br></div><div><br></div><div>Best Regards</div><div>Abdul<br></div><div><br></div><div><br></div><div><br></div><br>On Tue, Aug 21, 2018 at 2:06 PM, Henning Westerholt <<a href="mailto:hw@kamailio.org">hw@kamailio.org</a>> wrote:<br>><br>> Am Dienstag, 21. August 2018, 13:31:36 CEST schrieb Abdulaziz Alghosh:<br>> > i am trying to start kamailio 5.1.4 after the migration from Kamailio 3.0.3<br>> > but getting newly the following error:<br>> ><br>> > ERROR: <core> [db.c:450]: db_check_table_version(): invalid version 8 for<br>> > table aliases found, expected 9 (check table structure and table "version")<br>> ><br>> > Allegedlly, this error is because of a wrong version of "aliases" table. I<br>> > followed the Upgrade process starting from 3.0.3 till 5.1.x and I altered<br>> > the structure of my aliase table accordinglly.<br>> > The last new version of aliases is 8 as it is described at the upgrade from<br>> > 4.2.x to 4.3.0<br>> ><br>> > Even though, the error here says that the newest version is 9:<br>> ><br>> > May someone help me to find out if the aliases table's structure was<br>> > renewed in between ?? Is there any modification in the data types?<br>><br>> Hello Abdulaziz,<br>><br>> version 8 is the current version of the alias table, even in git master.<br>><br>> $ kamailio/src> grep "version" lib/srdb1/schema/aliases.xml<br>> <?xml version="1.0" encoding="UTF-8"?><br>>     <version>8</version><br>><br>> I am a bit confused, do you actually try to read this table from the alias_db<br>> module? Because I was not able to find a version check here in the code.<br>><br>> Version 9 is only used from location table.<br>><br>> Please quote a bit more lines of your error here.<br>><br>> Best regards,<br>><br>> Henning<br>><br>> --<br>> Henning Westerholt<br>> <a href="https://skalatan.de/blog/">https://skalatan.de/blog/</a><br><br></div>