diff --git a/README.md b/README.md index 7e888d0..8dd487d 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,9 @@ The following message handlers will be implemented in a later release: ## Requirements -* A Public IP +* A Public IP - or - * A Reverse HTTP Proxy to direct traffic to if you don't want the code running without a reverse proxy. Kestrel is perfectly capable on serving HTTP requests without a reverse proxy in .NET 6.0 -* A TLS Certificate +* **Strongly Recommended** - TLS Certificate - this can be automated with your reverse proxy via certbot if you want a set it and forget it solution * A [system](https://github.com/dotnet/core/blob/main/release-notes/6.0/supported-os.md) that is supported by .NET 6.0 ## Code Implementation @@ -35,6 +35,16 @@ This endpoint takes a GET or POST request to add or remove Microsoft Teams webho **Refer to ``/swagger/index.html`` endpoint in Development mode for the latest API updates** +## Twilio Configuration +### Webhook Configuration +1. Log into the Twilio account dashboard +2. On Phone Numbers -> Manage -> Active numbers, ensure a DID is there for this purpose. If not, purchase a DID from Twilio +3. In the DID, ensure the following is set on the Messaging section: +|Message Action|Handler Type|Web Endpoint|HTTP Verb| +|-|-|-|-| +| A MESSAGE COMES IN | Webhook | ``http:///api/SMSReceiver`` | POST | +| PRIMARY HANDLER FAILS | Webhook | ``http:///api/SMSReceiver`` | POST | + ## Wishlist * MMS Message handling and storage - currently the code obtains all MMS media URL's sent from Twilio, but does not actively process them