Here's my Voximplant scenario:
val callSettings = CallSettings()
val array = mapOf("X-PARAMCUSTOM" to "test")
callSettings.extraHeaders = array
when I add these lines to my scenario, it crashes with the following error:
java.lang.UnsupportedOperationException
Can you explain why. Here's my code:
VoxEngine.addEventListener(AppEvents.CallAlerting, (e) => {
var newCall = VoxEngine.callUser(
e.destination,
e.callerid,
e.displayName,
null,
e.headers
);