|
|
|
@ -25,7 +25,7 @@ const app_id = '503c548f-cb61-4a3a-8599-cd815680b390';
|
|
|
|
|
const api_key = '197c68c9';
|
|
|
|
|
const api_secret = 'Aa11be17f298dfd4118bdf23';
|
|
|
|
|
const vonageNumber = "12019751815"; //用于通话的号码,今后根据前端提交来做号码切换
|
|
|
|
|
const vonageUser = "Highlights"; // user name
|
|
|
|
|
const vonageUser = "HighlightsTravel"; // user name
|
|
|
|
|
|
|
|
|
|
const response = (data) => {
|
|
|
|
|
return {
|
|
|
|
@ -55,7 +55,8 @@ app.get("/voice/answer", (req, res) => {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
action: "record",
|
|
|
|
|
eventUrl: [`${req.protocol}://${req.get("host")}/vonage-server/voice/recordings`],
|
|
|
|
|
// eventUrl: [`${req.protocol}://${req.get("host")}/vonage-server/voice/recordings`],
|
|
|
|
|
eventUrl: [`${req.protocol}://${req.get("host")}/voice/recordings`],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
action: "connect",
|
|
|
|
|