SlideShare a Scribd company logo
Expanding Asterisk with
Kamailio Fred Posner
@fredposner
qxork.com
Who am I?
Why Asterisk?
If Asterisk can do all that...
Why do we need Kamailio?
and....
How do you pronounce Kamailio?
Kah – Mah – Illie - Oh
What is Kamailio?
SIP Proxy Server
SIP Registrar Server
SIP Location Server
SIP Application Server
SIP Dispatcher Server
What isn't Kamailio?
SIP Phone
B2BUA
Media Server
Typical Reasons to Implement Kamailio
● Scaling
– High Volume of Calls
– High Number of Users
● Security
● Load Balancing
● LCR (Least Cost Routing)
How many calls can Asterisk handle?
200 or 400. There is no 100.
Asterisk “Activities” Affect CPS/Load
● Music on Hold
● Codec Transcoding
● IVR Handling
● AGI Scripts
● Call Recording
● Queues
● Voicemail
Registrations
Authentication
NAT
CallsPresence
Call LimitExt to Ext
Location
STOPSTOP
THETHE
INSANITINSANIT
Internet / PSTN
Kamailio
There must be a better way!
Kamailio:
– Authentication, NAT,
Location, LCR, Registration,
Extension to Extension calls,
Security
Asterisk:
– Queues, Media, Call
Processing, Voicemail,
Conferences, etc.
Load Balancing
n + 1 scaling made easy with dispatcher module
DISPATCHER Module
# Dispatch requests
route[DISPATCH] {
# round robin dispatching
if(!ds_select_dst("1", "4")) {
send_reply("404", "Ouch");
exit;
}
t_on_failure("RTF_DISPATCH");
route(RELAY);
exit;
}
failure_route[RTF_DISPATCH] {
if (t_is_canceled()) {
exit;
}
# next DST - only for 500 or local timeout
if (t_check_status("500") or (t_branch_timeout() and !t_branch_replied()))
{
if(ds_next_dst()) {
t_on_failure("RTF_DISPATCH");
route(RELAY);
exit;
}
}
}
Internet / PSTN
Kamailio
Security
Ever seen something like this?
[Oct 1 23:01:26] NOTICE[3063][C-00002d55] chan_sip.c: Call from '' (158.69.52.94:11067) to extension '!2#48' rejected because extension not
found in context 'default'.
[Oct 1 23:01:26] NOTICE[3063][C-00002d56] chan_sip.c: Call from '' (158.69.52.94:11067) to extension '!' rejected because extension not found in
context 'default'.
[Oct 1 23:01:26] NOTICE[3063][C-00002d57] chan_sip.c: Call from '' (158.69.52.94:11067) to extension '!' rejected because extension not found in
context 'default'.
[Oct 1 23:01:26] NOTICE[3063][C-00002d58] chan_sip.c: Call from '' (158.69.52.94:11067) to extension '!' rejected because extension not found in
context 'default'.
[Oct 1 23:01:26] NOTICE[3063][C-00002d59] chan_sip.c: Call from '' (158.69.52.94:11067) to extension '!' rejected because extension not found in
context 'default'.
[Oct 1 23:01:26] NOTICE[3063][C-00002d5a] chan_sip.c: Call from '' (158.69.52.94:11067) to extension '!qaz' rejected because extension not found
in context 'default'.
Asterisk Security Tools
● fail2ban
● custom script
● IPTABLES
● hardened dialplan
● Hardened sip.conf
● Log analyzers happen
after the attack
● CPU/Memory resources
● Only protects single box
Kamailio Security
● GEOIP
● HTABLE
● PIKE (flood
detection)
● PIPELIMIT (counter)
● PERMISSIONS
● RATELIMIT (counter)
● SANITY (formatting)
PIKE / HTABLES/PERMISSIONS
if((src_ip!=myself) && !allow_source_address(1)) {
if($sht(ipban=>$si)!=$null) {
# ip is already blocked
exit;
}
if (!pike_check_req()) {
$sht(ipban=>$si) = 1;
exit;
}
}
SIP Message Inspection / HTABLES
if ($ua =~ "(friendly-scanner|sipvicious|sipcli)") {
if(src_ip!=myself) {
$sht(ipban=>$si) = 1;
}
exit;
}
if($au =~ "(=)|(--)|(')|(#)|(%27)|(%24)" and $au != $null) {
if(src_ip!=myself) {
$sht(ipban=>$si) = 1;
}
exit;
}
Handle Before Reaching Asterisk
[R-REQINIT:PIPELIMIT] invites to 192.168.101.21 exceeded 5cps
[R-REQINIT:PIPELIMIT] invites to 192.168.101.23 exceeded 5cps
[R-REQINIT:PIPELIMIT] invites to 192.168.101.22 exceeded 5cps
[R-REQINIT:ANTIFLOOD] script kiddies from
IP:85.93.91.162:5063 - dropping and blocking
[R-REQINIT:ANTIFLOOD] script kiddies from
IP:212.83.188.161:5068 - dropping and blocking
[R-REQINIT:ANTIFLOOD] script kiddies from
IP:85.93.89.219:5066 - dropping and blocking
[R-REQINIT:ANTIFLOOD] script kiddies from
IP:85.25.74.70:5150 - dropping and blocking
Kamailio Saves Money
Financial Benefits
● Kamailio reduces fraud risk (security)
● Kamailio reduces carrier cost (lcr)
● Kamailio reduces opportunity costs (downtime)
Kamailio Plays Well with Others
● IPv4 & IPv6
● UDP/TCP
● TLS
● SCTP
● All codecs
● WebRTC
● Supporting RFC3261, RFC3262, RFC3263,
RFC3880, RFC4474, RFC2865, RFC2866,
RFC4975, RFC3486, RFC 3265, RFC 3856, RFC
3863, RFC 4480, RFC 3903, RFC 3857, RFC
3858, RFC 3680, RFC3581, RFC1918, RFC2617,
RFC4122, RFC4510, RFC4515, RFC4662,
RFC4826, RFC4745 and RFC5025, RFC3410,
RFC3327, RFC2741, RFC4516, etc.
Kamailio: Positives
● Very fast
● Minimal hardware
● More than 200 modules
● Centralization
● Saves Money
● LCR
● Scalable
● Failover
● Strong Community
● Promotes Growth
Kamailio: Negatives
● Must know SIP
● Must really know SIP
● Need strong SIP knowledge
Expanding Asterisk with
Kamailio Fred Posner
@fredposner
qxork.com
Thank you
Expanding Asterisk with
Kamailio Fred Posner
@fredposner
Questions

More Related Content

ODP
Using Asterisk and Kamailio for Reliable, Scalable and Secure Communication S...
PDF
Scaling Asterisk with Kamailio
PDF
Kamailio :: A Quick Introduction
PDF
Kamailio - API Based SIP Routing
PDF
Kamailio with Docker and Kubernetes
PDF
rtpengine and kamailio - or how to simulate calls at scale
PDF
Kamailio on Docker
PDF
Using Kamailio for Scalability and Security
Using Asterisk and Kamailio for Reliable, Scalable and Secure Communication S...
Scaling Asterisk with Kamailio
Kamailio :: A Quick Introduction
Kamailio - API Based SIP Routing
Kamailio with Docker and Kubernetes
rtpengine and kamailio - or how to simulate calls at scale
Kamailio on Docker
Using Kamailio for Scalability and Security

What's hot (20)

PDF
rtpengine - Media Relaying and Beyond
PDF
Astricon 10 (October 2013) - SIP over WebSocket on Kamailio
PDF
Kamailio, FreeSWITCH, and You
PDF
SIP Attack Handling (Kamailio World 2021)
PDF
Why is Kamailio so different? An introduction.
PDF
Three Ways Kamailio Can Help Your FreeSWITCH Deployment
PDF
Continuous Integration and Kamailio
PDF
Kamailio - SIP Firewall for Carrier Grade Traffic
PDF
Kamailio - SIP Routing in Lua
ODP
Phpconf 2013 - Agile Telephony Applications with PAMI and PAGI
PDF
Kamailio - Secure Communication
PDF
Introduction to FreeSWITCH
PDF
Aynchronous Processing in Kamailio Configuration File
PDF
Homer metrics | LORENZO MANGANI Y FEDERICO CABIDDU - VoIP2DAY 2017
PDF
Linux Networking Explained
PDF
Scaling FreeSWITCH Performance
PDF
Scale Kubernetes to support 50000 services
PPTX
Introduction to Kamailio (TADSummit 2020 Asia)
PDF
Ansible - Introduction
PPTX
NGINX: Basics and Best Practices
rtpengine - Media Relaying and Beyond
Astricon 10 (October 2013) - SIP over WebSocket on Kamailio
Kamailio, FreeSWITCH, and You
SIP Attack Handling (Kamailio World 2021)
Why is Kamailio so different? An introduction.
Three Ways Kamailio Can Help Your FreeSWITCH Deployment
Continuous Integration and Kamailio
Kamailio - SIP Firewall for Carrier Grade Traffic
Kamailio - SIP Routing in Lua
Phpconf 2013 - Agile Telephony Applications with PAMI and PAGI
Kamailio - Secure Communication
Introduction to FreeSWITCH
Aynchronous Processing in Kamailio Configuration File
Homer metrics | LORENZO MANGANI Y FEDERICO CABIDDU - VoIP2DAY 2017
Linux Networking Explained
Scaling FreeSWITCH Performance
Scale Kubernetes to support 50000 services
Introduction to Kamailio (TADSummit 2020 Asia)
Ansible - Introduction
NGINX: Basics and Best Practices
Ad

Viewers also liked (19)

PDF
Participate in SIPit
PDF
Kamailio - The Story for Asterisk
PDF
Toll Fraud detection with automatic mitigation using CGRateS
PDF
Kamailio - Load Balancing Load Balancers
PDF
Kamailio - SIP Servers Everywhere
PDF
Kamailio World 2014 workshop - cnxcc prepaid module
PDF
Usando el módulo PIKE en Elastix MT
PDF
Kamailio - Large Unified Communication Platforms
PDF
Kamailio World 2014 - Introduction to IMS Application Servers
PPTX
High Availability Asterisk and FreePBX on Microsoft Azure
PDF
VoIP Wars: Destroying Jar Jar Lync (Unfiltered version)
PDF
VoIP Wars: Attack of the Cisco Phones
PDF
VoIP Wars : Return of the SIP
PDF
The Art of VoIP Hacking - Defcon 23 Workshop
PDF
SIP and DNS - federation, failover, load balancing and more
PPT
Astricon 2010: Scaling Asterisk installations
PDF
Kamailio World 2016: Update your SIP!
PDF
VoIP Wars: The Phreakers Awaken
PDF
Avaya Aura 6.x suite licensing
Participate in SIPit
Kamailio - The Story for Asterisk
Toll Fraud detection with automatic mitigation using CGRateS
Kamailio - Load Balancing Load Balancers
Kamailio - SIP Servers Everywhere
Kamailio World 2014 workshop - cnxcc prepaid module
Usando el módulo PIKE en Elastix MT
Kamailio - Large Unified Communication Platforms
Kamailio World 2014 - Introduction to IMS Application Servers
High Availability Asterisk and FreePBX on Microsoft Azure
VoIP Wars: Destroying Jar Jar Lync (Unfiltered version)
VoIP Wars: Attack of the Cisco Phones
VoIP Wars : Return of the SIP
The Art of VoIP Hacking - Defcon 23 Workshop
SIP and DNS - federation, failover, load balancing and more
Astricon 2010: Scaling Asterisk installations
Kamailio World 2016: Update your SIP!
VoIP Wars: The Phreakers Awaken
Avaya Aura 6.x suite licensing
Ad

Similar to Expanding Asterisk with Kamailio (20)

PPT
Asterisksecuritykingasterisk 130723131448-phpapp01
PPT
PPT
Asterisk Introduction
PDF
SIP Server Optimizations for Mobile Networks
PDF
Securing Asterisk: A practical approach
PDF
PDF
InSecure Remote Operations - NullCon 2023 by Yossi Sassi
PDF
Kamailio and VoIP Wild World
PDF
Kamailio and VoIP Wild World
PDF
Adhearsion and Telegraph Framework Presentation
PPT
SIP for geeks
PDF
Offensive MitM
PDF
Designing High Performance RTC Signaling Servers
PDF
Multi-Layer DDoS Mitigation Strategies
PPTX
04 - I love my OS, he protects me (sometimes, in specific circumstances)
PDF
Practical steps to mitigate DDoS attacks
PPT
bh-us-02-murphey-freebsd
PDF
A New Era of SSRF - Exploiting URL Parser in Trending Programming Languages! ...
PDF
Astricon 2007
PPT
Asterisk PBX Presentation, 2006
Asterisksecuritykingasterisk 130723131448-phpapp01
Asterisk Introduction
SIP Server Optimizations for Mobile Networks
Securing Asterisk: A practical approach
InSecure Remote Operations - NullCon 2023 by Yossi Sassi
Kamailio and VoIP Wild World
Kamailio and VoIP Wild World
Adhearsion and Telegraph Framework Presentation
SIP for geeks
Offensive MitM
Designing High Performance RTC Signaling Servers
Multi-Layer DDoS Mitigation Strategies
04 - I love my OS, he protects me (sometimes, in specific circumstances)
Practical steps to mitigate DDoS attacks
bh-us-02-murphey-freebsd
A New Era of SSRF - Exploiting URL Parser in Trending Programming Languages! ...
Astricon 2007
Asterisk PBX Presentation, 2006

More from Fred Posner (7)

PDF
Security Asterisk or FreePBX with APIBAN
PDF
Kamalio and Asterisk: What, Why & How
PDF
Protect Kamailio Against DoS Attacks With APIBan
PDF
Kamailio, FreeSWITCH, and the Half-Blood Prince
PDF
CommCon 2020: Kamailio for RTC Stability, Scaling, and Security
PDF
Three Ways Kamailio Can Help Your Asterisk Deployment
PDF
Advanced SIP: Communicating with Humans (Kamailio World 2019)
Security Asterisk or FreePBX with APIBAN
Kamalio and Asterisk: What, Why & How
Protect Kamailio Against DoS Attacks With APIBan
Kamailio, FreeSWITCH, and the Half-Blood Prince
CommCon 2020: Kamailio for RTC Stability, Scaling, and Security
Three Ways Kamailio Can Help Your Asterisk Deployment
Advanced SIP: Communicating with Humans (Kamailio World 2019)

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Modernizing your data center with Dell and AMD
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Encapsulation theory and applications.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Cloud computing and distributed systems.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
KodekX | Application Modernization Development
PPTX
Big Data Technologies - Introduction.pptx
Unlocking AI with Model Context Protocol (MCP)
The AUB Centre for AI in Media Proposal.docx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Reach Out and Touch Someone: Haptics and Empathic Computing
Modernizing your data center with Dell and AMD
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Encapsulation theory and applications.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Cloud computing and distributed systems.
Dropbox Q2 2025 Financial Results & Investor Presentation
“AI and Expert System Decision Support & Business Intelligence Systems”
NewMind AI Weekly Chronicles - August'25 Week I
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Spectral efficient network and resource selection model in 5G networks
KodekX | Application Modernization Development
Big Data Technologies - Introduction.pptx

Expanding Asterisk with Kamailio

  • 1. Expanding Asterisk with Kamailio Fred Posner @fredposner qxork.com
  • 4. If Asterisk can do all that...
  • 5. Why do we need Kamailio? and....
  • 6. How do you pronounce Kamailio? Kah – Mah – Illie - Oh
  • 7. What is Kamailio? SIP Proxy Server SIP Registrar Server SIP Location Server SIP Application Server SIP Dispatcher Server
  • 8. What isn't Kamailio? SIP Phone B2BUA Media Server
  • 9. Typical Reasons to Implement Kamailio ● Scaling – High Volume of Calls – High Number of Users ● Security ● Load Balancing ● LCR (Least Cost Routing)
  • 10. How many calls can Asterisk handle? 200 or 400. There is no 100.
  • 11. Asterisk “Activities” Affect CPS/Load ● Music on Hold ● Codec Transcoding ● IVR Handling ● AGI Scripts ● Call Recording ● Queues ● Voicemail
  • 12. Registrations Authentication NAT CallsPresence Call LimitExt to Ext Location STOPSTOP THETHE INSANITINSANIT
  • 13. Internet / PSTN Kamailio There must be a better way! Kamailio: – Authentication, NAT, Location, LCR, Registration, Extension to Extension calls, Security Asterisk: – Queues, Media, Call Processing, Voicemail, Conferences, etc.
  • 14. Load Balancing n + 1 scaling made easy with dispatcher module
  • 15. DISPATCHER Module # Dispatch requests route[DISPATCH] { # round robin dispatching if(!ds_select_dst("1", "4")) { send_reply("404", "Ouch"); exit; } t_on_failure("RTF_DISPATCH"); route(RELAY); exit; } failure_route[RTF_DISPATCH] { if (t_is_canceled()) { exit; } # next DST - only for 500 or local timeout if (t_check_status("500") or (t_branch_timeout() and !t_branch_replied())) { if(ds_next_dst()) { t_on_failure("RTF_DISPATCH"); route(RELAY); exit; } } }
  • 18. Ever seen something like this? [Oct 1 23:01:26] NOTICE[3063][C-00002d55] chan_sip.c: Call from '' (158.69.52.94:11067) to extension '!2#48' rejected because extension not found in context 'default'. [Oct 1 23:01:26] NOTICE[3063][C-00002d56] chan_sip.c: Call from '' (158.69.52.94:11067) to extension '!' rejected because extension not found in context 'default'. [Oct 1 23:01:26] NOTICE[3063][C-00002d57] chan_sip.c: Call from '' (158.69.52.94:11067) to extension '!' rejected because extension not found in context 'default'. [Oct 1 23:01:26] NOTICE[3063][C-00002d58] chan_sip.c: Call from '' (158.69.52.94:11067) to extension '!' rejected because extension not found in context 'default'. [Oct 1 23:01:26] NOTICE[3063][C-00002d59] chan_sip.c: Call from '' (158.69.52.94:11067) to extension '!' rejected because extension not found in context 'default'. [Oct 1 23:01:26] NOTICE[3063][C-00002d5a] chan_sip.c: Call from '' (158.69.52.94:11067) to extension '!qaz' rejected because extension not found in context 'default'.
  • 19. Asterisk Security Tools ● fail2ban ● custom script ● IPTABLES ● hardened dialplan ● Hardened sip.conf ● Log analyzers happen after the attack ● CPU/Memory resources ● Only protects single box
  • 20. Kamailio Security ● GEOIP ● HTABLE ● PIKE (flood detection) ● PIPELIMIT (counter) ● PERMISSIONS ● RATELIMIT (counter) ● SANITY (formatting)
  • 21. PIKE / HTABLES/PERMISSIONS if((src_ip!=myself) && !allow_source_address(1)) { if($sht(ipban=>$si)!=$null) { # ip is already blocked exit; } if (!pike_check_req()) { $sht(ipban=>$si) = 1; exit; } }
  • 22. SIP Message Inspection / HTABLES if ($ua =~ "(friendly-scanner|sipvicious|sipcli)") { if(src_ip!=myself) { $sht(ipban=>$si) = 1; } exit; } if($au =~ "(=)|(--)|(')|(#)|(%27)|(%24)" and $au != $null) { if(src_ip!=myself) { $sht(ipban=>$si) = 1; } exit; }
  • 23. Handle Before Reaching Asterisk [R-REQINIT:PIPELIMIT] invites to 192.168.101.21 exceeded 5cps [R-REQINIT:PIPELIMIT] invites to 192.168.101.23 exceeded 5cps [R-REQINIT:PIPELIMIT] invites to 192.168.101.22 exceeded 5cps [R-REQINIT:ANTIFLOOD] script kiddies from IP:85.93.91.162:5063 - dropping and blocking [R-REQINIT:ANTIFLOOD] script kiddies from IP:212.83.188.161:5068 - dropping and blocking [R-REQINIT:ANTIFLOOD] script kiddies from IP:85.93.89.219:5066 - dropping and blocking [R-REQINIT:ANTIFLOOD] script kiddies from IP:85.25.74.70:5150 - dropping and blocking
  • 25. Financial Benefits ● Kamailio reduces fraud risk (security) ● Kamailio reduces carrier cost (lcr) ● Kamailio reduces opportunity costs (downtime)
  • 26. Kamailio Plays Well with Others ● IPv4 & IPv6 ● UDP/TCP ● TLS ● SCTP ● All codecs ● WebRTC ● Supporting RFC3261, RFC3262, RFC3263, RFC3880, RFC4474, RFC2865, RFC2866, RFC4975, RFC3486, RFC 3265, RFC 3856, RFC 3863, RFC 4480, RFC 3903, RFC 3857, RFC 3858, RFC 3680, RFC3581, RFC1918, RFC2617, RFC4122, RFC4510, RFC4515, RFC4662, RFC4826, RFC4745 and RFC5025, RFC3410, RFC3327, RFC2741, RFC4516, etc.
  • 27. Kamailio: Positives ● Very fast ● Minimal hardware ● More than 200 modules ● Centralization ● Saves Money ● LCR ● Scalable ● Failover ● Strong Community ● Promotes Growth
  • 28. Kamailio: Negatives ● Must know SIP ● Must really know SIP ● Need strong SIP knowledge
  • 29. Expanding Asterisk with Kamailio Fred Posner @fredposner qxork.com Thank you
  • 30. Expanding Asterisk with Kamailio Fred Posner @fredposner Questions

Editor's Notes

  • #3: Fred Posner VoIP Engineer/Consultant LOD The Palner Group Started in 2003 Vonage Competitor Broadsoft / Acme Packet Switched to Asterisk / OpenSER Beautiful Wife Yeni Started Bearkery Bakery in 2010 Live in Florida Big Fred Cookie
  • #4: Asterisk GREAT PRODUCT We're at Astricon afterall All features you'd ever want Very customizable Powerful Open Source Queues Call Recording Voicemail IVR AND SO MUCH MORE
  • #5: If Asterisk is so incredible... then...
  • #6: Why do we need Kamailio? and... More importantly...
  • #7: Not Without Problems EVERYTHING HAS STRENGTHS & WEAKNESSES Believe it or not... I'm a great guy, ...but I have a weight problem. Working on weakness creates strength to grow. Ever hear of Pozzolans? Lime is used in concrete OK by itself... nothing special. Add Pozzolans... Increased strength / durability Decreased weakness Pozzolan Effect Kamailio & Asterisk together work the same way.
  • #9: Want a B2BUA? Use Asterisk =) All of these are Asterisk
  • #11: SIP Version of Do or Do Not. There is No Try. As most of you know... simple question difficult answer
  • #12: What you do with Asterisk affects call load & hardware too of course Some systems can run thousands of channels Others may have difficulty with more than 400 Reduce Asterisk Overhead Focus on core strengths
  • #13: Additional cps concerns Flash Operator Panel? 20 cps Fail2Ban? Effects cps greatly Logging Network (jitter, etc.) OS 150 cps? Really depends on codecs, hardware, network Max calls? 10,000? 100?
  • #14: On embedded systems, with limited resources—100s cps As stateless load balancer, >5000 call setups per second 4GB memory, Kamailio can serve over 300k subscribers System can easily scale adding more Kamailio servers Kamailio LCR handles millions of routing rules(and that's the built in modules) Even with just 1 Asterisk server (like above)...using Kamailio can increase user/call capacity
  • #15: Load balancing is built into Kamailio Makes n + 1 scaling simple
  • #16: Drastically increase call load / capacity Fault Tolerant Location failures Can add more kamailio boxes as well. You can group clusters by function / limits Voicemail IVR Recordings Conferences
  • #17: You can set limits by box as well This box can handle 100 calls at 2 cps This box can handle 500 calls at 20 cps
  • #18: Kamailio expands the security capabilities of Asterisk
  • #19: Rejection of call attempts Rejection of registration attempts Brute force password attacks Anyone been hit by a brute force attack from AWS? Thousands of attempts in a very short period of time
  • #20: Current methods of handling happen after the attack Take resources AWAY from call handling Protects a single box
  • #21: Kamailio is flexible. The way I handle security is different than Daniel or X person or Y. Different is good. You can learn something from EVERYONE The best experts keep an open mind “Good writers borrow, great writers steal”--TS Elliot
  • #22: Built in module PIKE helps detect flooding Combine with HTABLES to block temporarily RAM based. Very fast. White list with PERMISSIONS module Also stored in memory Here we check if a non-whitelisted IP is blocked If so, drop them (just ignore it) Not blocked, check if flooding... Yeah? Block em & Drop em.
  • #23: Friendly Scanner? Drop & Block SQL Injection? Drop & Block Most Script Kiddies use the reject messages Now the real attack begins Of course, different thoughts on this as well Send 200 OK
  • #24: Example of PIPELIMIT which is a fast counter Oh this box currently is 5cps, move on Oh look... a script kiddie
  • #28: When we block an IP, it's blocked for everyone Very scalable. We can also handle calls by ourselves Presence IM integration Extension to Extension calls Strong Community Active mail list Active IRC channel Pretty friendly... be patient with language