1. Connect to AMI (Asterisk port 5038) 2. Authenticate with manager account 3. Subscribe to: "AgentConnect", "AgentComplete", "Hangup", "Newchannel", "QueueCallerJoin" 4. FOREVER: - Read next AMI event - Filter for events matching this agent's channel/extension - If event = "AgentConnect": - Fetch lead from vicidial_list - Send JSON to agent's browser via WebSocket or AJAX long-poll - If event = "Hangup": - Log wrap-up time start - Notify dialer to fetch next call - Sleep 100ms (non-blocking) 5. If AMI disconnects -> attempt reconnect with exponential backoff.
agc/vicidial.php is the core Agent Screen for the VICIdial open-source contact center suite. It is a complex PHP script that uses AJAX to communicate with the server in real-time, allowing agents to handle calls, view lead data, and manage dispositions without refreshing the page. 1. Preparation & Pre-requisites Before an agent can successfully use vicidial.php , several backend configurations must be in place: Database Setup : Ensure your vicidial_users table has active entries and that the table contains correct login_user login_pass Campaign Configuration agc vicidial.php
*/5 * * * * /usr/share/astguiclient/ADMIN_cleanup_agc.pl agc/vicidial