下面是我的Voximplant场景:
val callSettings = CallSettings()
val array = mapOf("X-PARAMCUSTOM" to "test")
callSettings.extraHeaders = array当我将这些行添加到我的场景中时,会出现以下错误:
java.lang.UnsupportedOperationException
你能解释一下为什么。这是我的密码:
VoxEngine.addEventListener(AppEvents.CallAlerting, (e) => {
var newCall = VoxEngine.callUser(
e.destination,
e.callerid,
e.displayName,
null,
e.headers
);发布于 2022-09-07 10:57:29
您需要将一个对象传递给callUser()方法,而不仅仅是一个属性列表:
const CallSettings = {
username: 'user',
callerid: e.callerid,
};
const newCall = VoxEngine.callUser(CallSettings);您可以在Voximplant文档中找到更多信息:https://voximplant.com/docs/guides/calls/scenario
https://stackoverflow.com/questions/73541625
复制相似问题