I have am able to redirect a single channel to a conference like this:
$responseRedirect = $pamiClient->send(new RedirectAction($channel, $numtodial, ‘mycontext’, ‘1’));
I am trying to redirect both channels at the same time to a conference using the setExtraChannel etc.
Not sure how to accomplish this and I can’t find much in the way of sample code in the docs or anywhere really. The followed the only example I found but can’t make it work. I have tried a bunch of variations but no luck. Any advice is appreciated. Here is what I tried in a nutshell.
$doRedirect = new RedirectAction($channel, $numtodial, ‘mycontext’, ‘1’);
Of course I have the PAMI client setup before my code, I’m opening the client and closing it at the end, just left this out for simplicity in this post.