diff --git a/app/onboarding/api/queue/set-twilio-webhooks.ts b/app/onboarding/api/queue/set-twilio-webhooks.ts index d91edb9..561f128 100644 --- a/app/onboarding/api/queue/set-twilio-webhooks.ts +++ b/app/onboarding/api/queue/set-twilio-webhooks.ts @@ -61,7 +61,7 @@ async function getTwimlApplication( friendlyName: "Shellphone", smsUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/incoming-message`, smsMethod: "POST", - voiceUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/incoming-call`, + voiceUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/call`, voiceMethod: "POST", }); } @@ -70,7 +70,7 @@ async function updateTwimlApplication(twilioClient: twilio.Twilio, twimlAppSid: await twilioClient.applications.get(twimlAppSid).update({ smsUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/incoming-message`, smsMethod: "POST", - voiceUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/incoming-call`, + voiceUrl: `https://${serverRuntimeConfig.app.baseUrl}/api/webhook/call`, voiceMethod: "POST", }); diff --git a/app/phone-calls/api/webhook/incoming-call.ts b/app/phone-calls/api/webhook/call.ts similarity index 100% rename from app/phone-calls/api/webhook/incoming-call.ts rename to app/phone-calls/api/webhook/call.ts