rename webhook route for calls

This commit is contained in:
m5r 2021-08-13 23:56:07 +08:00
parent 5d5195fd9f
commit 306febe4d1
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ async function getTwimlApplication(
friendlyName: "Shellphone", friendlyName: "Shellphone",
smsUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/incoming-message`, smsUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/incoming-message`,
smsMethod: "POST", smsMethod: "POST",
voiceUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/incoming-call`, voiceUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/call`,
voiceMethod: "POST", voiceMethod: "POST",
}); });
} }
@ -70,7 +70,7 @@ async function updateTwimlApplication(twilioClient: twilio.Twilio, twimlAppSid:
await twilioClient.applications.get(twimlAppSid).update({ await twilioClient.applications.get(twimlAppSid).update({
smsUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/incoming-message`, smsUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/incoming-message`,
smsMethod: "POST", smsMethod: "POST",
voiceUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/incoming-call`, voiceUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/call`,
voiceMethod: "POST", voiceMethod: "POST",
}); });