From f0343734069ff5045512fbf3049565199f9e890d Mon Sep 17 00:00:00 2001 From: m5r Date: Sun, 26 Jun 2022 22:04:42 +0200 Subject: [PATCH] move comment --- app/routes/webhook/call.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/webhook/call.ts b/app/routes/webhook/call.ts index 32f131f..b646732 100644 --- a/app/routes/webhook/call.ts +++ b/app/routes/webhook/call.ts @@ -103,7 +103,7 @@ async function handleIncomingCall(formData: unknown, twilioSignature: string) { const identity = `${phoneNumber.twilioAccount.accountSid}__${user.id}`; const voiceResponse = new twilio.twiml.VoiceResponse(); const dial = voiceResponse.dial({ answerOnBridge: true }); - dial.client(identity); + dial.client(identity); // TODO: si le device n'est pas registered => call failed *shrug* console.log("twiml voiceResponse", voiceResponse.toString()); return new Response(voiceResponse.toString(), { headers: { "Content-Type": "text/xml" } }); @@ -190,7 +190,7 @@ async function handleOutgoingCall(formData: unknown, twilioSignature: string) { answerOnBridge: true, callerId: phoneNumber!.number, }); - dial.number(recipient); // TODO: si le device n'est pas registered => call failed *shrug* + dial.number(recipient); console.log("twiml voiceResponse", voiceResponse.toString()); return new Response(voiceResponse.toString(), { headers: { "Content-Type": "text/xml" } });