Skip to content

Commit ca3b146

Browse files
Merge pull request #219848 from fangchen0601/eventgrid_bestpractice
add event grid subscription tips
2 parents 9c290a6 + 1695d8f commit ca3b146

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

articles/communication-services/quickstarts/call-automation/callflows-for-customer-interactions.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ In this quickstart, you'll learn how to build an application that uses the Azure
3535

3636
IncomingCall is an Azure Event Grid event for notifying incoming calls to your Communication Services resource. To learn more about it, see [this guide](../../concepts/call-automation/incoming-call-notification.md).
3737
1. Navigate to your resource on Azure portal and select `Events` from the left side menu.
38-
1. Select `+ Event Subscription` to create a new subscription.
39-
1. Filter for Incoming Call event.
40-
1. Choose endpoint type as web hook and provide the public url generated for your application by ngrok. Make sure to provide the exact api route that you programmed to receive the event previously. In this case, it would be <ngrok_url>/api/incomingCall.
41-
![Screenshot of portal page to create a new event subscription.](./media/event-susbcription.png)
38+
2. Select `+ Event Subscription` to create a new subscription.
39+
3. Filter for Incoming Call event.
40+
4. Choose endpoint type as web hook and provide the public url generated for your application by ngrok. Make sure to provide the exact api route that you programmed to receive the event previously. In this case, it would be <ngrok_url>/api/incomingCall.
4241

43-
1. Select create to start the creation of subscription and validation of your endpoint as mentioned previously. The subscription is ready when the provisioning status is marked as succeeded.
42+
![Screenshot of portal page to create a new event subscription.](./media/event-susbcription.png)
43+
44+
If your application does not send 200Ok back to Event Grid in time, Event Grid will use exponential backoff retry to send the incoming call event again. However, an incoming call only rings for 30 seconds, and acting on a call after that will not work. To avoid retries after a call expires, we recommend setting the retry policy in the `Additional Features` tab as: Max Event Delivery Attempts to 2 and Event Time to Live to 1 minute. Learn more about retries [here](../../../event-grid/delivery-and-retry.md).
45+
5. Select create to start the creation of subscription and validation of your endpoint as mentioned previously. The subscription is ready when the provisioning status is marked as succeeded.
4446

4547
This subscription currently has no filters and hence all incoming calls will be sent to your application. To filter for specific phone number or a communication user, use the Filters tab.
4648

articles/communication-services/quickstarts/call-automation/redirect-inbound-telephony-calls.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ Get started with Azure Communication Services by using the Call Automation SDKs
3131

3232
IncomingCall is an Azure Event Grid event for notifying incoming calls to your Communication Services resource. To learn more about it, see [this guide](../../concepts/call-automation/incoming-call-notification.md).
3333
1. Navigate to your resource on Azure portal and select `Events` from the left side menu.
34-
1. Select `+ Event Subscription` to create a new subscription.
35-
1. Filter for Incoming Call event.
36-
1. Choose endpoint type as web hook and provide the public url generated for your application by ngrok. Make sure to provide the exact api route that you programmed to receive the event previously. In this case, it would be <ngrok_url>/api/incomingCall.
37-
1. Select create to start the creation of subscription and validation of your endpoint as mentioned previously. The subscription is ready when the provisioning status is marked as succeeded.
34+
2. Select `+ Event Subscription` to create a new subscription.
35+
3. Filter for Incoming Call event.
36+
4. Choose endpoint type as web hook and provide the public url generated for your application by ngrok. Make sure to provide the exact api route that you programmed to receive the event previously. In this case, it would be <ngrok_url>/api/incomingCall.
37+
38+
![Screenshot of portal page to create a new event subscription.](./media/event-susbcription.png)
39+
40+
If your application does not send 200Ok back to Event Grid in time, Event Grid will use exponential backoff retry to send the incoming call event again. However, an incoming call only rings for 30 seconds, and acting on a call after that will not work. To avoid retries after a call expires, we recommend setting the retry policy in the `Additional Features` tab as: Max Event Delivery Attempts to 2 and Event Time to Live to 1 minute. Learn more about retries [here](../../../event-grid/delivery-and-retry.md).
41+
5. Select create to start the creation of subscription and validation of your endpoint as mentioned previously. The subscription is ready when the provisioning status is marked as succeeded.
3842

3943
This subscription currently has no filters and hence all incoming calls will be sent to your application. To filter for specific phone number or a communication user, use the Filters tab.
4044

0 commit comments

Comments
 (0)