telephony
Keepalive
A keepalive is a small repeated signal or background process that confirms a connection or service is still alive and triggers a fix when it goes quiet.
A keepalive is a heartbeat. It is a small, regular signal that says "I am still here" so the other side does not assume the connection died. You will hear the word in two different but related places: network connections that need to stay open, and background processes that need to stay running. Both rely on the same idea of repeating a check often enough to notice trouble quickly. Without a heartbeat, a system can look healthy right up until the moment you try to use it and find it has been dead for an hour.
On the network side, SIP (Session Initiation Protocol) phones send keepalive packets so that routers and firewalls keep the path open. This is closely tied to NAT traversal, because home and office routers tend to close idle connections after a short period of silence. Without a keepalive, your Phone registration can silently expire, and the first sign of trouble is a call that never reaches the phone even though the agent thinks they are logged in and ready.
Keepalive as a watchdog
In a VICIdial system, keepalive scripts run on a schedule to make sure the dialer's moving parts are alive. They check the queues, restart stalled processes, and rebuild files like the Conf file when Asterisk needs a fresh copy. If one of these checks fails, that is often the trigger for Failover to a backup. Think of the watchdog keepalive as the difference between finding a problem in seconds versus finding it from an angry customer call. These scripts are deliberately boring and repetitive, which is exactly what you want from something guarding your uptime.
The practical takeaway: keepalives should be frequent enough to catch failures fast, but not so chatty that they flood the network or the logs. When you tune a system, check that your keepalive interval matches your registration timers. A keepalive that fires after your registration already expired does no good at all. If agents complain that calls vanish for no reason, a misaligned keepalive is one of the first things worth checking.
Related terms
Asterisk
Asterisk is the open-source telephony engine that VICIdial runs on, handling the actual placing, bridging, and recording of calls beneath the dialer's logic.
Conf file
A conf file is an Asterisk configuration text file that defines settings like trunks, extensions, and dialplans, telling the phone system how to behave.
Failover
Failover is an automatic switch to a backup route, server, or carrier when the primary one stops responding, so calls keep flowing instead of dropping.
NAT traversal
NAT traversal is the set of tricks that lets a phone behind a home or office router send and receive VoIP audio across the wider internet.
Phone registration
The process where a softphone or SIP device announces itself to VICIdial so the server knows where to send the agent's calls.
SIP (Session Initiation Protocol)
The standard signaling protocol that sets up, manages, and ends internet phone calls — how VICIdial talks to phones and carriers.