Newer Version Available
Monitor VoiceCall Limit Errors
The output of the InvokeTelephonyIntegrationApi Lambda function is stored in a contact attribute. If the contact attribute’s value is set to 429, it means that an error occurred. Go to AWS Cloudwatch to view the logs and search for error messages that contain the prefix SCV_LIMITS_ERROR. This prefix indicates a VoiceCall limit error.
You can address these errors in two ways. One way creates a fallback mechanism that times out after a certain number of attempts. The other way writes a value to a contact attribute so you can see when errors occur.
OPTION 1: Use a fallback mechanism that times out
- Modify the InvokeTelephonyIntegrationApi Lambda function to update the boolean contact attribute for sf_voicecall_limit_error when the error code is 429. The default value is false. So, if the error is present, then the value is true. If it’s 429, update the sf_voicecall_limit_error. Create the contact attribute for them when the error occurs.
- Check the contact attribute in the contact flow when the transcription Lambda function encounters an error.
- If the sf_voicecall_limit_error is TRUE, then you can put a look block in the contact flow and play a prompt for a few seconds before trying to create a VoiceCall record. Track the number of retries using another contact attribute. You can put a limit on the number of times the system tries to create the VoiceCall record.


This approach uses a fallback mechanism when the per second limit is hit.
OPTION 2: See the number of failed calls
- Write the error to a contact attribute such as Voice_Call_Creation_Status.
- To identify how many calls failed as a result of the limit error, do a contact search using the contact attribute. Use a filter to search based on contract attributes. Update the Lambda function to check a condition on the contact attribute.