Under the Hood: Deep Dive into Asterisk Performance
summary
PJ SIP library is fast but the Asterisk implementation gains most by avoiding synchronous external lookups and by switching from the old thread pool to a new task pool, which yields about an 8–10% CPU reduction (and 20–30% on stasis). Real-time DB access blocks call setup and inflates SIP retransmits; enable source caching or offload writes. Use fast AGI instead of forking AGI processes, restrict codecs to avoid transcoding CPU, and monitor SIP response time, AMI latency and core show task processors.
AI-written summary · about
chapters (20)
- 0:00Introduction and setup
- 1:04What is performance?
- 3:31Application-level performance
- 4:32Calls per second explained
- 9:32Outgoing calls and resources
- 11:44Concurrent calls and costs
- 12:27Dial plan performance
- 16:23PJ SIP internals
- 18:36Thread pool vs task pool
- 20:27Real-time database costs
- 23:18AGI and Fast AGI
- 24:39AMI and ARI performance
- 27:53CEL and CDR logging
- 30:23Transcoding and codecs
- 31:49Bridging and media costs
- 32:30Thread pool warnings
- 33:53Key performance tips
- 34:36What to monitor
- 38:35Configuration strategies
- 39:58Testing and improvements
