SlideShare a Scribd company logo
Diameter Processing
with Kamailio
Kamailio World 2017
Let‘s make Kamailio great again!
…let‘s add Diameter!
What is Diameter?
• Diameter is the double of the RADIUS
• Diameter is the evolution of RADIUS
• In IMS and Mobile Networks, Diameter is
everywhere:
– Home Subscriber Server – the central provisioning
database (Cx-/Dx-Interfaces)
– Policy & Charging (Rx, Ro, Rf-Interfaces)
– Applications (Sh-Interfaces)
Wtf?
Do you really want to do everything
with Kamailio?
Kamailio is a SIP-Router…
…why do you want to do Diameter?
Kamailio is much more than SIP
• Kamailio has a very good Diameter Stack
• Kamailio has various Interfaces to other
Systems, e.g.
– RabbitMQ
– Databases
– No-SQL-Databases
– REST
– HTTP Server
– …
Let‘s look at Diameter
Introducing the IMS-Diameter-Server
• Based on Kamailio
• You define in the Kamailio-Script what to do
with the Request – it‘s up to you!
• Diameter is translated to JSON and back
• It allows you to:
– Process Requests and generate answer
– Send Requests to a Diameter Peer
Doing Diameter in Kamailio Script
• Requests go to an Event-Route:
– event_route[diameter:request]
• We‘ve got the following Variables:
– $diameter_application – the application ID
– $diameter_command – the Command Code
– $diameter_request – the Diameter-Payload
– $diameter_response – here goes the answer
• Send a request:
– diameter_request(<appid>, <command>, <diameter-
payload>)
What can you build with it?
• A Home-Subscriber Server (HSS)
• A Policy & Charging Rules Function (PCRF)
• Diameter Routing-Agent (DRA)
• Online- or Offline Charging Server (OCS)
• Sh-Client – for Applications
Any Diameter Application!
History on our HSS-Servers
• Initially we used the OpenHSS from
Fraunhofer
– This works, but it‘s not the fastest solution
• Later we replaced it with Jboss / Mobicents /
JDiameter
– This was much faster
– Install and forget, don‘t touch the system
– Never open-source, it had too many „Todos“
The Kamailio HSS Server
• Diamer-Gateway
– of course Kamailio!
• Worker Processes
– Implemented in PHP
– Flexible and easy to adapt
– Scale up? Add more
workers
– Extremely fast
Roadmap
IMS_diameter_server:
• Add native TLS
• Add native SCTP
• Homer Integration
Applications:
• Add Sh to the HSS
• Implement a PCRF
Simulator (Rx-Testing)
• Deep Integration into our
Amarisoft Lab Femto-Cell
(HSS)
Mid-Term:
• Migrate OCS to the
IMS_diameter_server
Architecture
It‘s all open-source!
• You‘ll find all components on GitHub*:
• https://github.com/ngvoice
*) Shortly: We will push it later this week.
Thank you!
Contact: info@ng-voice.com

More Related Content

PDF
VoLTE Interfaces , Protocols & IMS Stack
PDF
rtpengine - Media Relaying and Beyond
PDF
Scaling FreeSWITCH Performance
PDF
SIP Testing with FreeSWITCH
PDF
rtpengine and kamailio - or how to simulate calls at scale
PDF
Sipwise rtpengine
PDF
FreeSWITCH on Docker
ODP
Expanding Asterisk with Kamailio
VoLTE Interfaces , Protocols & IMS Stack
rtpengine - Media Relaying and Beyond
Scaling FreeSWITCH Performance
SIP Testing with FreeSWITCH
rtpengine and kamailio - or how to simulate calls at scale
Sipwise rtpengine
FreeSWITCH on Docker
Expanding Asterisk with Kamailio

What's hot (20)

PDF
FreeSWITCH as a Microservice
PDF
Three Ways Kamailio Can Help Your FreeSWITCH Deployment
PPT
FreeSWITCH Modules for Asterisk Developers
PDF
Introduction to FreeSWITCH
PDF
volte ims network architecture tutorial - Explained
PPT
IMS IP multimedia subsystem presentation
PDF
Kamailio :: A Quick Introduction
PDF
VoLTE Flows and CS network
PPTX
IMS Session Flow
PPTX
SIP - Introduction to SIP Protocol
PDF
volte ims network architecture
PDF
Kamailio, FreeSWITCH, and You
PDF
volte call flow - SIP IMS Call Flow - MO and MT Call - Volte Mobile originati...
ODP
Using Asterisk and Kamailio for Reliable, Scalable and Secure Communication S...
PPTX
Docker networking basics & coupling with Software Defined Networks
PDF
IP Multimedia Subsystem architecture overview
PDF
Avaya Cisco Trunking
PPTX
Session Initiation Protocol - In depth analysis
PDF
Calling VoWiFi... The Next Mobile Operator Service is here...
PDF
VoLTE flows - basics
FreeSWITCH as a Microservice
Three Ways Kamailio Can Help Your FreeSWITCH Deployment
FreeSWITCH Modules for Asterisk Developers
Introduction to FreeSWITCH
volte ims network architecture tutorial - Explained
IMS IP multimedia subsystem presentation
Kamailio :: A Quick Introduction
VoLTE Flows and CS network
IMS Session Flow
SIP - Introduction to SIP Protocol
volte ims network architecture
Kamailio, FreeSWITCH, and You
volte call flow - SIP IMS Call Flow - MO and MT Call - Volte Mobile originati...
Using Asterisk and Kamailio for Reliable, Scalable and Secure Communication S...
Docker networking basics & coupling with Software Defined Networks
IP Multimedia Subsystem architecture overview
Avaya Cisco Trunking
Session Initiation Protocol - In depth analysis
Calling VoWiFi... The Next Mobile Operator Service is here...
VoLTE flows - basics
Ad

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Encapsulation theory and applications.pdf
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
A Presentation on Artificial Intelligence
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
A Presentation on Touch Screen Technology
PPTX
TLE Review Electricity (Electricity).pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
A novel scalable deep ensemble learning framework for big data classification...
Enhancing emotion recognition model for a student engagement use case through...
Digital-Transformation-Roadmap-for-Companies.pptx
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
OMC Textile Division Presentation 2021.pptx
Encapsulation theory and applications.pdf
SOPHOS-XG Firewall Administrator PPT.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Unlocking AI with Model Context Protocol (MCP)
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
1 - Historical Antecedents, Social Consideration.pdf
Assigned Numbers - 2025 - Bluetooth® Document
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Accuracy of neural networks in brain wave diagnosis of schizophrenia
A Presentation on Artificial Intelligence
gpt5_lecture_notes_comprehensive_20250812015547.pdf
MIND Revenue Release Quarter 2 2025 Press Release
A Presentation on Touch Screen Technology
TLE Review Electricity (Electricity).pptx
Ad

Diameter Processing with Kamailio

  • 2. Let‘s make Kamailio great again! …let‘s add Diameter!
  • 3. What is Diameter? • Diameter is the double of the RADIUS • Diameter is the evolution of RADIUS • In IMS and Mobile Networks, Diameter is everywhere: – Home Subscriber Server – the central provisioning database (Cx-/Dx-Interfaces) – Policy & Charging (Rx, Ro, Rf-Interfaces) – Applications (Sh-Interfaces)
  • 4. Wtf? Do you really want to do everything with Kamailio?
  • 5. Kamailio is a SIP-Router… …why do you want to do Diameter?
  • 6. Kamailio is much more than SIP • Kamailio has a very good Diameter Stack • Kamailio has various Interfaces to other Systems, e.g. – RabbitMQ – Databases – No-SQL-Databases – REST – HTTP Server – …
  • 7. Let‘s look at Diameter
  • 8. Introducing the IMS-Diameter-Server • Based on Kamailio • You define in the Kamailio-Script what to do with the Request – it‘s up to you! • Diameter is translated to JSON and back • It allows you to: – Process Requests and generate answer – Send Requests to a Diameter Peer
  • 9. Doing Diameter in Kamailio Script • Requests go to an Event-Route: – event_route[diameter:request] • We‘ve got the following Variables: – $diameter_application – the application ID – $diameter_command – the Command Code – $diameter_request – the Diameter-Payload – $diameter_response – here goes the answer • Send a request: – diameter_request(<appid>, <command>, <diameter- payload>)
  • 10. What can you build with it? • A Home-Subscriber Server (HSS) • A Policy & Charging Rules Function (PCRF) • Diameter Routing-Agent (DRA) • Online- or Offline Charging Server (OCS) • Sh-Client – for Applications Any Diameter Application!
  • 11. History on our HSS-Servers • Initially we used the OpenHSS from Fraunhofer – This works, but it‘s not the fastest solution • Later we replaced it with Jboss / Mobicents / JDiameter – This was much faster – Install and forget, don‘t touch the system – Never open-source, it had too many „Todos“
  • 12. The Kamailio HSS Server • Diamer-Gateway – of course Kamailio! • Worker Processes – Implemented in PHP – Flexible and easy to adapt – Scale up? Add more workers – Extremely fast
  • 13. Roadmap IMS_diameter_server: • Add native TLS • Add native SCTP • Homer Integration Applications: • Add Sh to the HSS • Implement a PCRF Simulator (Rx-Testing) • Deep Integration into our Amarisoft Lab Femto-Cell (HSS) Mid-Term: • Migrate OCS to the IMS_diameter_server Architecture
  • 14. It‘s all open-source! • You‘ll find all components on GitHub*: • https://github.com/ngvoice *) Shortly: We will push it later this week.