argument('linkedid'); $this->info("Processing answered call: {$linkedid}"); $result = $service->processSingleAnsweredCall($linkedid); if ($result) { $this->info("✅ Successfully processed answered call: {$linkedid}"); $this->info(" Call ID: {$result->callid}"); $this->info(" Time: {$result->call_time}"); $this->info(" Agent: {$result->agent}"); $this->info(" Queue: {$result->queue_description}"); $this->info(" Talk Time: {$result->talktime} seconds"); $this->info(" Transfers: {$result->transfers_count}"); if ($result->survey) { $this->info(" Survey: {$result->survey}"); } } else { $this->error("❌ Failed to process answered call: {$linkedid}"); $this->error(" Either call doesn't exist or it's not an answered call"); $this->error(" Check the logs for more details"); return Command::FAILURE; } return Command::SUCCESS; } }