Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql/call_center-create.sql missing INSERT INTO version... #1020

Closed
l7s opened this issue Jan 13, 2017 · 3 comments
Closed

mysql/call_center-create.sql missing INSERT INTO version... #1020

l7s opened this issue Jan 13, 2017 · 3 comments
Assignees

Comments

@l7s
Copy link

l7s commented Jan 13, 2017

Hi,

File below:
https://github.com/OpenSIPS/opensips/blob/master/scripts/mysql/call_center-create.sql#L39

is missing:

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

at line 39.

Regards,
Chris

@razvancrainea
Copy link
Member

Hi, Chris!

I don't think that's needed, because OpenSIPS does not check the version of the cc_calls table.
Is this something that you noticed it is missing, or I am missing something and this really is a bug?

Best regards,
Răzvan

@l7s
Copy link
Author

l7s commented Jan 13, 2017

Hi Răzvan, I was just reviewing files in scripts/mysql folder and noticed that cc_calls is the only table which is missing INSERT INTO version ... statement, but if that table doesn't check it's version, that is fine and we can close this ticket as invalid. (I am not using call_center module, so didn't validate if OpenSIPs is complaining about this or not).

Out of curiosity - is there any particular reason they this table isn't checked in version table?

Regards,
Chris

@razvancrainea
Copy link
Member

Not sure, it's just that the author of the module did not write the code to check the version. Or simply did not find it important enough to just not start OpenSIPS if that version is wrong. At the end of the day, calls will still go though if that table is wrong, they will just not be stored in the db and will not survive restart.

Anyway, I will leave this ticket opened until we determine whether we should have version check or not. But will set as a low priority.

@razvancrainea razvancrainea self-assigned this Jan 13, 2017
razvancrainea added a commit that referenced this issue Jun 15, 2021
Credits go to Level 7 Systems Ltd. for reporting this. Close #1020

(cherry picked from commit ac9ff1e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants