[SR-Users] custom version database/table

David Villasmil david.villasmil.work at gmail.com
Mon Nov 28 19:33:47 CET 2016


Hello all,

I have a databse where i created a "version" table only with a version, a
dispatcher records. I only want to use dispatcher on a db.

I don't know if kamailio is looking for the version tables somewhere else,
or it does find it in my database (not named kamailio) but the format is
wrong.

I used:

CREATE TABLE `version` (
    `table_name` VARCHAR(32) NOT NULL,
    `table_version` INT UNSIGNED DEFAULT 0 NOT NULL,
    CONSTRAINT table_name_idx UNIQUE (`table_name`)
);

INSERT INTO version (table_name, table_version) values ('version','1');
INSERT INTO version (table_name, table_version) values ('dispatcher','4');



To create an populate the table, but kamailio returns:

mod_init(): could not initiate a connect to the database

but it does connect properly...


any thoughts?

Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
ᐧ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161128/1f517de7/attachment.html>


More information about the sr-users mailing list