rename webhook route for calls
This commit is contained in:
parent
5d5195fd9f
commit
306febe4d1
@ -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",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user