Twilio Voice calling error in Frappe CRM — “Parameter 'token' must be of type string”

Hi everyone,

I am integrating Twilio Voice calling inside Frappe CRM and trying to make calls from the Lead view using the Twilio JS Voice SDK.

However, when I click the call button, the browser console shows the following error:

Requesting Access Token...
An error occurred. Parameter "token" must be of type "string".
Unable to make call.