SIP Forking Explained: Parallel and Serial Ringing for Hunt Groups and Multi-Device Users
SIP forking is when a proxy sends one incoming call to several destinations, either simultaneously (parallel) or one after another (serial). It is how one number can ring a desk phone, a mobile app, and a softphone, and how hunt groups and ring groups are built.
Parallel Forking
The proxy copies the INVITE to every registered contact for the user at once. The first endpoint to answer with a 200 OK wins, and the proxy sends CANCEL to the others.
Use it for: multi-device users, ring-all groups, "simultaneous ring" to a mobile number.
Watch for:
- Multiple 200 OK responses. Two devices can answer within milliseconds. Only one dialog should survive; the proxy or B2BUA must BYE or reject the extra.
- Early media from several branches. Several 183 responses with SDP can produce overlapping ringback or announcements. Decide which branch's early media the caller hears.
- Voicemail answering early. If a forked branch is a mobile carrier, its voicemail can answer before a human does and win the race.
Serial Forking (Sequential Hunt)
The proxy tries one destination, waits for a timeout or failure response, then tries the next.
Use it for: escalation chains, on-call rotas, failover to a backup number.
Watch for:
- Total ring time. Three branches with 20-second timers means 60 seconds of ringing, long enough for callers to hang up.
- Which failures advance the chain. Typically a 408, 480, 486, or 503 moves on, while a 603 Decline usually should not.
Forking in Proxies vs B2BUAs
A stateful proxy such as Kamailio forks natively and is efficient, with no media involved. A B2BUA such as FreeSWITCH originates separate outbound legs (for example with originate and the , and : separators) and bridges the winner. The B2BUA approach gives more control over media, recording, and logic, at higher resource cost. For the trade-offs, see FreeSWITCH vs Asterisk and Kamailio dispatcher configuration.
Combining Strategies
Real routing often mixes both: ring the desk phone and the mobile app in parallel for 15 seconds, then move serially to a colleague, then to voicemail. In a contact center, ring strategies move into the queue layer (see call queue and ACD routing design).
Registration and Forking
Forking depends on knowing every live contact for a user, which comes from registrations (see SIP registration explained). Stale contacts waste time in parallel groups, so expiry and keep-alive tuning matter.
Testing Checklist
- Answer on each branch in turn and confirm the others stop ringing.
- Answer two at nearly the same instant and confirm exactly one call results.
- Let all branches time out and confirm the fallback (voicemail or next hop) fires.
- Verify caller ID and CDR records show the answering branch (see CDR explained).
Designing complex routing like ring groups, escalation, and failover? Our custom VoIP development team builds routing logic tailored to how your business actually takes calls.
Related Services
Keep Reading
Discussion
0Join the conversation
Sign in with your preferred account to comment, reply, and keep the discussion useful for other engineers.
Takes a few seconds. No separate password required.
Controva LLC
Engineering Team
We build digital empires that scale. Specializing in high-performance web architecture, AI automation, and headless commerce.
Work with us