move comment

This commit is contained in:
m5r 2022-06-26 22:04:42 +02:00
parent 852a6eb9e5
commit f034373406

View File

@ -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" } });