31106: Invalid data
VOICE
ERROR
31106 means the data passed to the Voice SDK was not valid. On Android, Voice.handleMessage(context, data) returns false when the data is not a Twilio Voice push message, and CallInvite.isValid(...) validates whether a payload is a valid notification sent by Twilio.
- You passed a payload to
Voice.handleMessage(context, data)that is not a Twilio Voice push message. - The payload does not pass
CallInvite.isValid(...)for a Twilio Voice notification.
- Call
CallInvite.isValid(...)before you process the payload, and only continue when it returnstrue. - Use
Voice.handleMessage(context, data)only for Twilio Voice push messages, and treat afalsereturn value as non-Voice data.