argument('linkedid'); $this->info("Processing outbound call: {$linkedid}"); $result = $service->processSingleOutboundCall($linkedid); if ($result) { $this->info("Successfully processed outbound call: {$linkedid}"); $this->info(" Call ID: {$result->callid}"); $this->info(" Time: {$result->call_time}"); $this->info(" Agent: {$result->agent_name} ({$result->agent_ext})"); $this->info(" Called: {$result->called_number}"); $this->info(" Disposition: {$result->disposition}"); $this->info(" Talk time: {$result->talktime}s"); } else { $this->error("Failed to process outbound call: {$linkedid}"); $this->error(" Either the call does not exist or CDR is not yet available."); $this->error(" Check the logs for more details."); return Command::FAILURE; } return Command::SUCCESS; } }