mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2025-12-19 05:47:46 +00:00
back out column addition of -register_use_tls
This commit is contained in:
@@ -394,7 +394,6 @@ service_provider_sid CHAR(36),
|
||||
application_sid CHAR(36) COMMENT 'If provided, all incoming calls from this source will be routed to the associated application',
|
||||
e164_leading_plus BOOLEAN NOT NULL DEFAULT false COMMENT 'if true, a leading plus should be prepended to outbound phone numbers',
|
||||
requires_register BOOLEAN NOT NULL DEFAULT false,
|
||||
register_use_tls BOOLEAN NOT NULL DEFAULT false,
|
||||
register_username VARCHAR(64),
|
||||
register_sip_realm VARCHAR(64),
|
||||
register_password VARCHAR(64),
|
||||
|
||||
@@ -190,15 +190,10 @@ const sql = {
|
||||
'ALTER TABLE google_custom_voices ADD FOREIGN KEY speech_credential_sid_idxfk (speech_credential_sid) REFERENCES speech_credentials (speech_credential_sid) ON DELETE CASCADE',
|
||||
'ALTER TABLE clients ADD COLUMN allow_direct_queue_calling BOOLEAN NOT NULL DEFAULT 1',
|
||||
'ALTER TABLE clients ADD COLUMN allow_direct_user_calling BOOLEAN NOT NULL DEFAULT 1',
|
||||
<<<<<<< HEAD
|
||||
'ALTER TABLE clients ADD COLUMN allow_direct_app_calling BOOLEAN NOT NULL DEFAULT 1',
|
||||
],
|
||||
8006: [
|
||||
'ALTER TABLE sip_gateways ADD COLUMN send_options_ping BOOLEAN NOT NULL DEFAULT 0',
|
||||
'ALTER TABLE voip_carriers ADD COLUMN register_use_tls BOOLEAN NOT NULL DEFAULT 0',
|
||||
=======
|
||||
'ALTER TABLE clients ADD COLUMN allow_direct_app_calling BOOLEAN NOT NULL DEFAULT 1'
|
||||
>>>>>>> parent of a4792a5 (feat send options ping for sip gateway (#273))
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
640
package-lock.json
generated
640
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -42,7 +42,6 @@ test('voip carrier tests', async(t) => {
|
||||
json: true,
|
||||
});
|
||||
t.ok(result.name === 'daveh' , 'successfully retrieved voip carrier by sid');
|
||||
t.ok(result.register_use_tls === 0 , 'successfully create voip_carrier with register_use_tls is false');
|
||||
|
||||
/* fail to query one voip carriers with invalid uuid */
|
||||
try {
|
||||
@@ -62,7 +61,6 @@ test('voip carrier tests', async(t) => {
|
||||
body: {
|
||||
name: 'robb',
|
||||
requires_register: true,
|
||||
register_use_tls: true,
|
||||
register_username: 'foo',
|
||||
register_sip_realm: 'bar',
|
||||
register_password: 'baz',
|
||||
@@ -72,13 +70,6 @@ test('voip carrier tests', async(t) => {
|
||||
});
|
||||
t.ok(result.statusCode === 204, 'successfully updated voip carrier');
|
||||
|
||||
/* query one voip carriers */
|
||||
result = await request.get(`/VoipCarriers/${sid}`, {
|
||||
auth: authAdmin,
|
||||
json: true,
|
||||
});
|
||||
t.ok(result.register_use_tls === 1 , 'successfully updated voip_carrier with register_use_tls is true');
|
||||
|
||||
/* provision a phone number for the voip carrier */
|
||||
result = await request.post('/PhoneNumbers', {
|
||||
resolveWithFullResponse: true,
|
||||
|
||||
Reference in New Issue
Block a user