add todos and change wording

This commit is contained in:
m5r 2022-06-26 13:52:36 +02:00
parent 6cf2f8cb94
commit 590e92eea4
3 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,7 @@
import { useState } from "react"; import { useState } from "react";
export default function CTAForm() { export default function CTAForm() {
// TODO
const [{ isSubmitted }, setState] = useState({ isSubmitted: false }); const [{ isSubmitted }, setState] = useState({ isSubmitted: false });
const onSubmit = () => setState({ isSubmitted: true }); const onSubmit = () => setState({ isSubmitted: true });

View File

@ -40,7 +40,14 @@ export default function TwilioConnect() {
<IoHelpCircle className="w-6 h-6 text-primary-700" /> <IoHelpCircle className="w-6 h-6 text-primary-700" />
</button> </button>
<article className="mb-6"> <article className="mb-6">
Shellphone needs some informations about your Twilio account to securely use your phone numbers. <p>
To connect your Twilio Account you will need to provide us your Twilio account SID and auth
token.
</p>
<p>
Both values can be found on your{" "}
<a href="https://www.twilio.com/user/account/settings">Twilio account page</a>.
</p>
</article> </article>
{twilio !== null ? ( {twilio !== null ? (

View File

@ -190,7 +190,7 @@ async function handleOutgoingCall(formData: unknown, twilioSignature: string) {
answerOnBridge: true, answerOnBridge: true,
callerId: phoneNumber!.number, callerId: phoneNumber!.number,
}); });
dial.number(recipient); dial.number(recipient); // TODO: si le device n'est pas registered => call failed *shrug*
console.log("twiml voiceResponse", voiceResponse.toString()); console.log("twiml voiceResponse", voiceResponse.toString());
return new Response(voiceResponse.toString(), { headers: { "Content-Type": "text/xml" } }); return new Response(voiceResponse.toString(), { headers: { "Content-Type": "text/xml" } });