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

Add SIP Request Ping and Registration Options Feature #5382

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
67 changes: 67 additions & 0 deletions db/old_migrations/patch-add-sip-fields.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
BEGIN TRANSACTION;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the old way of writing migrations. Please change this to the newer js files.




ALTER TABLE monitor

ADD sip_auth_method VARCHAR(10) default null;

COMMIT;





BEGIN TRANSACTION;



ALTER TABLE monitor

ADD sip_protocol VARCHAR(10);

COMMIT;



BEGIN TRANSACTION;



ALTER TABLE monitor

ADD sip_port INT;



ALTER TABLE monitor

ADD sip_url VARCHAR(255);



COMMIT;

BEGIN TRANSACTION;



ALTER TABLE monitor

ADD sip_maintainence BOOLEAN;



COMMIT;

BEGIN TRANSACTION;



ALTER TABLE monitor

ADD COLUMN sip_method VARCHAR(250) NULL;



COMMIT;
11 changes: 11 additions & 0 deletions db/old_migrations/patch-sip-auth.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- You should not modify if this have pushed to Github, unless it does serious wrong with the db.
BEGIN TRANSACTION;

ALTER TABLE monitor
ADD sip_basic_auth_user TEXT default null;

ALTER TABLE monitor
ADD sip_basic_auth_pass TEXT default null;


COMMIT;
65 changes: 60 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,15 @@
"redbean-node": "~0.3.0",
"redis": "~4.5.1",
"semver": "~7.5.4",
"sip": "^0.0.6",
"socket.io": "~4.8.0",
"socket.io-client": "~4.8.0",
"socks-proxy-agent": "~8.0.5",
"tar": "~6.2.1",
"tcp-ping": "~0.1.1",
"thirty-two": "~1.0.2",
"tough-cookie": "~4.1.3",
"uuid": "^11.0.5",
"ws": "^8.13.0"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions server/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ class Database {
"patch-fix-kafka-producer-booleans.sql": true,
"patch-timeout.sql": true,
"patch-monitor-tls-info-add-fk.sql": true, // The last file so far converted to a knex migration file
"patch-add-sip-fields.sql": true,
"patch-sip-auth.sql": true,
};

/**
Expand Down
Loading
Loading