mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2025-12-19 05:47:46 +00:00
update to jambonz.cloud for saas
This commit is contained in:
@@ -27,7 +27,6 @@ values
|
|||||||
('84e3db00-b172-4e46-b54b-a503fdb19e4a', 'https://public-apps.jambonz.cloud/call-status', 'POST'),
|
('84e3db00-b172-4e46-b54b-a503fdb19e4a', 'https://public-apps.jambonz.cloud/call-status', 'POST'),
|
||||||
('d31568d0-b193-4a05-8ff6-778369bc6efe', 'https://public-apps.jambonz.cloud/hello-world', 'POST'),
|
('d31568d0-b193-4a05-8ff6-778369bc6efe', 'https://public-apps.jambonz.cloud/hello-world', 'POST'),
|
||||||
('81844b05-714d-4295-8bf3-3b0640a4bf02', 'https://public-apps.jambonz.cloud/dial-time', 'POST');
|
('81844b05-714d-4295-8bf3-3b0640a4bf02', 'https://public-apps.jambonz.cloud/dial-time', 'POST');
|
||||||
|
|
||||||
insert into applications (application_sid, account_sid, name, call_hook_sid, call_status_hook_sid, speech_synthesis_vendor, speech_synthesis_language, speech_synthesis_voice, speech_recognizer_vendor, speech_recognizer_language)
|
insert into applications (application_sid, account_sid, name, call_hook_sid, call_status_hook_sid, speech_synthesis_vendor, speech_synthesis_language, speech_synthesis_voice, speech_recognizer_vendor, speech_recognizer_language)
|
||||||
VALUES
|
VALUES
|
||||||
('7087fe50-8acb-4f3b-b820-97b573723aab', '9351f46a-678c-43f5-b8a6-d4eb58d131af', 'hello world', 'd31568d0-b193-4a05-8ff6-778369bc6efe', '84e3db00-b172-4e46-b54b-a503fdb19e4a', 'google', 'en-US', 'en-US-Wavenet-C', 'google', 'en-US'),
|
('7087fe50-8acb-4f3b-b820-97b573723aab', '9351f46a-678c-43f5-b8a6-d4eb58d131af', 'hello world', 'd31568d0-b193-4a05-8ff6-778369bc6efe', '84e3db00-b172-4e46-b54b-a503fdb19e4a', 'google', 'en-US', 'en-US-Wavenet-C', 'google', 'en-US'),
|
||||||
|
|||||||
@@ -296,20 +296,25 @@ router.post('/', async(req, res) => {
|
|||||||
const callStatusSid = uuid();
|
const callStatusSid = uuid();
|
||||||
const helloWordSid = uuid();
|
const helloWordSid = uuid();
|
||||||
const dialTimeSid = uuid();
|
const dialTimeSid = uuid();
|
||||||
|
const echoSid = uuid();
|
||||||
|
|
||||||
/* 3 webhooks */
|
/* 4 webhooks */
|
||||||
await promisePool.execute(insertWebookSql, [callStatusSid,
|
await promisePool.execute(insertWebookSql,
|
||||||
'https://public-apps.jambonz.cloud/call-status', 'POST']);
|
[callStatusSid, 'https://public-apps.jambonz.cloud/call-status', 'POST']);
|
||||||
await promisePool.execute(insertWebookSql, [helloWordSid,
|
await promisePool.execute(insertWebookSql,
|
||||||
'https://public-apps.jambonz.cloud/hello-world', 'POST']);
|
[helloWordSid, 'https://public-apps.jambonz.cloud/hello-world', 'POST']);
|
||||||
await promisePool.execute(insertWebookSql, [dialTimeSid,
|
await promisePool.execute(insertWebookSql,
|
||||||
'https://public-apps.jambonz.cloud/dial-time', 'POST']);
|
[dialTimeSid, 'https://public-apps.jambonz.cloud/dial-time', 'POST']);
|
||||||
|
await promisePool.execute(insertWebookSql,
|
||||||
|
[echoSid, 'https://public-apps.jambonz.cloud/echo', 'POST']);
|
||||||
|
|
||||||
/* 2 applications */
|
/* 2 applications */
|
||||||
await promisePool.execute(insertApplicationSql, [uuid(), userProfile.account_sid, 'hello world',
|
await promisePool.execute(insertApplicationSql, [uuid(), userProfile.account_sid, 'hello world',
|
||||||
helloWordSid, callStatusSid, 'google', 'en-US', 'en-US-Wavenet-C', 'google', 'en-US']);
|
helloWordSid, callStatusSid, 'google', 'en-US', 'en-US-Wavenet-C', 'google', 'en-US']);
|
||||||
await promisePool.execute(insertApplicationSql, [uuid(), userProfile.account_sid, 'dial time clock',
|
await promisePool.execute(insertApplicationSql, [uuid(), userProfile.account_sid, 'dial time clock',
|
||||||
dialTimeSid, callStatusSid, 'google', 'en-US', 'en-US-Wavenet-C', 'google', 'en-US']);
|
dialTimeSid, callStatusSid, 'google', 'en-US', 'en-US-Wavenet-C', 'google', 'en-US']);
|
||||||
|
await promisePool.execute(insertApplicationSql, [uuid(), userProfile.account_sid, 'simple echo test',
|
||||||
|
echoSid, callStatusSid, 'google', 'en-US', 'en-US-Wavenet-C', 'google', 'en-US']);
|
||||||
|
|
||||||
Object.assign(userProfile, {
|
Object.assign(userProfile, {
|
||||||
pristine: true,
|
pristine: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user