Okay, so I have buttons working to start and cancel a warm transfer. But when trying to switch who I'm talking to (the person I started the transfer with or the caller) I'm getting the error "The destination address was not specified." Here's my code (again, apologies for how this Markdown variant butchers my newlines):
// Where "flipped" is a variable that represents who I'm on with conversations.postConversationsCallParticipantConsult(activeSession.conversationId, callerID, { speakTo: flipped? 'OBJECT' : 'DESTINATION' // Also tried 'DESTINATION' : 'OBJECT' - same result }).then(...).catch(/* logs the error */);
Now "OBJECT" is something I managed to glean off the interwebz - it's not in the docs anywhere I could see (though that could be my vision talking - I've been dealing with a weird graphical glitch that's causing some docs pages to go nuts - see my post in "site feedback" lol). So I could be way out in left field on this. What else does it need? The docs don't seem to say.
EDIT: Also, "callerID" is the caller's ID; I've also tried "activeSession.pcParticipant.id" (where activeSession is an event object from sdk.on(I think 'sessionStarted')). But when I do that, instead of the error above, I got something like "you are not a participant" even though I am. That was another laugh-and-a-half, digging up an old forum post where someone else ran into that error (as I was). So if it's not the agent and it's not the caller then...? Maybe it is supposed to be the caller, as I have it, but the issue is not with participant ID at all. Maybe I'm missing some unknown parameter besides "speakTo"?