It might be me that has been blind, but I have try'd to search for this topic for some time now, without any luck.My case is that I want to place a call to CallerA from my UCMA4 app, and when it gets answered, then call CallerB and bridge these two with a B2BUA to remain in control of the SIP.
1: In Michael Greenlees UC book, he mention two options of initiating a B2B call; incoming-idle or idle-idle. I can't find any example of this operation, and when I try to establish a B2B Call with two idle legs, then I'm getting a exception in UCMA 4. Isn't this a possiblity in UCMA4 anymore?
2: I then saw some notations around on the web, who mentioned "Click-toCall", which basicly sounds like what I want for my case. But I can't find any examples of this either??
If idle-idle ain't possible, I guess what I want is to establish a audiovideocall to CallerA, then place that call in a self-transfer to get it into incoming state, so I can use that as CallLeg1 for my B2BUA, and place an idle call to CallerB as CallLeg2.
My attempt to this havn't succeeded, since my snippet below is failing with 488 error.
Conversation conversation = new Conversation(Endpoint); AudioVideoCall call = new AudioVideoCall(conversation); call.BeginEstablish(fromExtension, null, ar => { call.EndEstablish(ar); }, null).AsyncWaitHandle.WaitOne(); call.ApplicationContext = call; call.BeginTransfer(call, ar => { try { call.EndTransfer(ar); } catch (Exception) { throw; } }, null).AsyncWaitHandle.WaitOne();
I feel like I'm hitting a wall, so any help will be appreciated