i am having a case where when client submit a form i want my system to call multiple agent if one agent pick call all the calls should be drop the code i am current using call is dropping all calls after execution of twiml
$data = $req->input();
$action = $appUrl.'/wcc/gather-input?callId='.$data["callId"].'&visitorName='.$data["visitorName"].'&visitorMessage='.$data["visitorMessage"].'&visitorPhone='.$data["visitorPhone"];
$dial = $response->dial('', ['callerId' => '+123123123', 'timeout' => 30, 'action' => $action,"method"=>"GET"]);
$dial->number('+123123213');
$dial->number('+12313123123');
header('Content-Type: text/xml');
echo $response;