SlideShare a Scribd company logo
CDRTool
CDR mediation and rating engine for OpenSIPS

Presented by

@
saghul
Tijmen de Mes | @tijmenNL OpenSIPS Summit 2015
AG Projects
SIP Infrastructure Experts
Hoi!
• @saghul, filling in for @tijmenNL

• AG Projects
#PrayForTijmen
AG Projects
SIP Infrastructure Experts
AG Projects
• SIP infrastructure (SIP Thor)

• Several software projects

• CDRTool
• CallControl
• MediaProxy

• OpenXCAP

• MSRPRelay
AG Projects
SIP Infrastructure Experts
CDRTool
AG Projects
SIP Infrastructure Experts
Adrian Georgescu
AG Projects
SIP Infrastructure Experts
How does it work?
M
CDRTool Rating engine
UPDATE
START
STOP
FAILED
CDR
Sip Trace
Media Trace
IP
SIP
RTP
Callcontrol
dlg_end_dlg()callcontrol()
MediaSessionTime()
DebitBalance()
Mediaproxy
Web Interface
OpenSIPS
AG Projects
SIP Infrastructure Experts
What is a CDR
• One record from the radacct table

• Contains all call information
AG Projects
SIP Infrastructure Experts
AG Projects
SIP Infrastructure Experts
How do we get CDRs?
UPDATE
START
STOP
FAILED
CDR
IP
SIP
RTP
Mediaproxy
OpenSIPS
AG Projects
SIP Infrastructure Experts
Practical Setup
DatabaseOpenSIPS
ACC
Detail FileFreeradius
Procedure
Detail Record
Radius
Relay
Freeradius
Mediaproxy
AG Projects
SIP Infrastructure Experts
INVITE:

/usr/sbin/opensips[6504]: ACC: transaction answered:
timestamp=1431255722;method=INVITE;
from_tag=QcdHP9jDHKYx9zYCtxZJ57JQ23gRmitP;
to_tag=2Aq7d1o1bHcKviI2ql1cZNGOUIof6y84;
call_id=12nke0Err-MMtQVBWMdGGzWLKz7w2EoN;
code=200;reason=OK
BYE:

/usr/sbin/opensips[6505]: ACC: transaction answered:
timestamp=1431255727;method=BYE;
from_tag=QcdHP9jDHKYx9zYCtxZJ57JQ23gRmitP;
to_tag=2Aq7d1o1bHcKviI2ql1cZNGOUIof6y84;
call_id=12nke0Err-MMtQVBWMdGGzWLKz7w2EoN;
code=200;reason=OK
AG Projects
SIP Infrastructure Experts
CDRTool Rating
• Prepaid

• Postpaid
AG Projects
SIP Infrastructure Experts
Rating Plan
• Destinations

• Billing parties

• Source IP

• Domain

• Subscriber

• Profiles
AG Projects
SIP Infrastructure Experts
Normalising
• Set destination to the right format

• Calculate duration

• Apply a price
AG Projects
SIP Infrastructure Experts
Prepaid
• Accounts have a balance

• Balance needs to be debited

• Rating Engine returns maximum
session time
AG Projects
SIP Infrastructure Experts
CallControl
M
CDRTool Rating engine
Callcontrol
dlg_end_dlg()callcontrol()
MediaSessionTime()
DebitBalance()
OpenSIPS
AG Projects
SIP Infrastructure Experts
CallControl
• Max sessions per account

• Detect duplicate Call-ID

• Parallel sessions, one balance

• Max session duration
AG Projects
SIP Infrastructure Experts
Rating Engine
• Available with a socket interface

• MaxSession

• Debit Balance

• Show Price

• More (help shows them)
AG Projects
SIP Infrastructure Experts
Quota (Fraud control)
• Monthly

• Daily

• Quota check runs from cron
AG Projects
SIP Infrastructure Experts
Postpaid
• Rated after call completes

• Rated by normalising process
CDRTool: CDR mediation and rating engine for OpenSIPS
AG Projects
SIP Infrastructure Experts
Web Interface
AG Projects
SIP Infrastructure Experts
Rates
AG Projects
SIP Infrastructure Experts
Quota
AG Projects
SIP Infrastructure Experts
Prepaid
AG Projects
SIP Infrastructure Experts
SIP Trace
AG Projects
SIP Infrastructure Experts
Media Trace
AG Projects
SIP Infrastructure Experts
Media Sessions
AG Projects
SIP Infrastructure Experts
Traffic
AG Projects
SIP Infrastructure Experts
Commercial features
• Integration in P2P network SIP Thor 

• Provisioning interface
CDRTool: CDR mediation and rating engine for OpenSIPS
Questions?
AG Projects
SIP Infrastructure Experts
tijmen@ag-projects.com
http://cdrtool.ag-projects.com
@tijmenNL
saul@ag-projects.com
@saghul

More Related Content

PDF
SylkServer: State of the art RTC application server
PDF
From SIP to WebRTC and vice versa
PDF
OpenSIPS Workshop
PDF
SIP2SIP: SIP gratis para las masas
PDF
Proyecto OP^2: Open Pi Phone
PDF
Wideband Audio Conferencing with Asterisk
PDF
Videoconferencias: el santo grial de WebRTC
PDF
SIP is hard, let's go shopping!
SylkServer: State of the art RTC application server
From SIP to WebRTC and vice versa
OpenSIPS Workshop
SIP2SIP: SIP gratis para las masas
Proyecto OP^2: Open Pi Phone
Wideband Audio Conferencing with Asterisk
Videoconferencias: el santo grial de WebRTC
SIP is hard, let's go shopping!

What's hot (20)

PDF
Building an Open Source VoIP Hardware Phone
PPTX
VozDigital DevFest 31/10/14
PDF
Terraform a gitlab ci
PDF
What's happening in the OSGi IoT Expert Group? - Tim Ward
PDF
WebRTC Codec Wars: Rebooted
PDF
OSGi for IoT: the good, the bad and the ugly - Tim Verbelen
PDF
WebRTC in WebKitGTK+ and WPE (Web Engines Hackfest 2018)
PPTX
Projects examples
PDF
The WebRTC Ecosystem
PPTX
Developers’ mDay 2021: Robert Juhas, SimpleTask – Should I run my own blockc...
PDF
RIPE NCC Tools and Services - An Update
PPTX
WebRTC and the Codec War
PDF
WebRTC Reborn SignalConf 2016
PDF
APIdays Paris 2018 - API Management is Dead, Augusto Marietti, CEO and Co-Fou...
PDF
WebRTC Timeline and Forecast
PPTX
WebRTC on Mobile | Kranky Geek SF 2016
PPTX
.NET Fest 2018. Андрей Тарарака. Как порулить грузовиком в Австралии, находяс...
PDF
apidays LIVE Paris 2021 - Using OpenAPI to configure your API Gateway by Ole ...
PDF
WebRTC Live Q&A Session #4 - WebRTC in WebKit and the story around Apple and ...
PDF
Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e...
Building an Open Source VoIP Hardware Phone
VozDigital DevFest 31/10/14
Terraform a gitlab ci
What's happening in the OSGi IoT Expert Group? - Tim Ward
WebRTC Codec Wars: Rebooted
OSGi for IoT: the good, the bad and the ugly - Tim Verbelen
WebRTC in WebKitGTK+ and WPE (Web Engines Hackfest 2018)
Projects examples
The WebRTC Ecosystem
Developers’ mDay 2021: Robert Juhas, SimpleTask – Should I run my own blockc...
RIPE NCC Tools and Services - An Update
WebRTC and the Codec War
WebRTC Reborn SignalConf 2016
APIdays Paris 2018 - API Management is Dead, Augusto Marietti, CEO and Co-Fou...
WebRTC Timeline and Forecast
WebRTC on Mobile | Kranky Geek SF 2016
.NET Fest 2018. Андрей Тарарака. Как порулить грузовиком в Австралии, находяс...
apidays LIVE Paris 2021 - Using OpenAPI to configure your API Gateway by Ole ...
WebRTC Live Q&A Session #4 - WebRTC in WebKit and the story around Apple and ...
Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e...
Ad

Viewers also liked (20)

PDF
PDF
Planning libuv v2
PDF
Python, WebRTC and You (v2)
PDF
The Future of the PBX
PDF
libuv, NodeJS and everything in between
PDF
WebRTC enabling your OpenSIPS infrastructure
PDF
Building an Open Source VoIP Hardware Phone
PDF
Proyecto Open Pi Phone
PDF
Escalabilidad horizontal desde las trincheras
PDF
A deep dive into libuv
PDF
libuv: cross platform asynchronous i/o
PDF
Python, WebRTC and You
PDF
Jitsi: State of the Union
PDF
PDF
Introduction to asyncio
PDF
Rethinking the PBX
PDF
Blink: SIP conferencing done right
PDF
Blink: SIP beyond VoIP
PDF
Blink: voice is not enough
PDF
Developing rich SIP applications with SIPSIMPLE SDK
Planning libuv v2
Python, WebRTC and You (v2)
The Future of the PBX
libuv, NodeJS and everything in between
WebRTC enabling your OpenSIPS infrastructure
Building an Open Source VoIP Hardware Phone
Proyecto Open Pi Phone
Escalabilidad horizontal desde las trincheras
A deep dive into libuv
libuv: cross platform asynchronous i/o
Python, WebRTC and You
Jitsi: State of the Union
Introduction to asyncio
Rethinking the PBX
Blink: SIP conferencing done right
Blink: SIP beyond VoIP
Blink: voice is not enough
Developing rich SIP applications with SIPSIMPLE SDK
Ad

Similar to CDRTool: CDR mediation and rating engine for OpenSIPS (20)

PPT
SIP2SIP - Direcciones SIP gratuitas para las masas
PDF
Enterprise-Grade DevOps Solutions for a Start Up Budget
PDF
CHIPS Alliance_Object Automation Inc_workshop
PDF
Building Audi’s enterprise big data platform
PDF
System Design on Zynq using SDSoC
PDF
Introduction to DevOps and the Practical Use Cases at Credit OK
PDF
V2 d2013 saúl ibarra - sip2sip
PPTX
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
PDF
An hour with WebRTC FIC UDC
PDF
RCA OCORA: Safe Computing Platform using open standards
PPTX
Empowering developers and operators through Gitlab and HashiCorp
PDF
"Vision for All?," a Presentation from Intel
PDF
UC18NA-D3D202-Dianomic-IZoratti-Introduction-To-FogLAMP.pdf
PDF
Federico Cabiddu - VoIP2DAY 2016 | VoIP and RTC Troubleshooting using the Sip...
PDF
Predix Builder Roadshow
PPTX
FluentD for end to end monitoring
PDF
S1: Predix ISV Partner Program (Predix Transform 2016)
PDF
stackconf 2024 | Building large-scale Internal Developer Platforms: Core Prin...
PDF
DevOps: The Future of Software Development
PDF
How Spotify reaches the 80%+ of satisfaction of the techies making developers...
SIP2SIP - Direcciones SIP gratuitas para las masas
Enterprise-Grade DevOps Solutions for a Start Up Budget
CHIPS Alliance_Object Automation Inc_workshop
Building Audi’s enterprise big data platform
System Design on Zynq using SDSoC
Introduction to DevOps and the Practical Use Cases at Credit OK
V2 d2013 saúl ibarra - sip2sip
Understanding the GitOps Workflow and CICD Pipeline - What It Is, Why It Matt...
An hour with WebRTC FIC UDC
RCA OCORA: Safe Computing Platform using open standards
Empowering developers and operators through Gitlab and HashiCorp
"Vision for All?," a Presentation from Intel
UC18NA-D3D202-Dianomic-IZoratti-Introduction-To-FogLAMP.pdf
Federico Cabiddu - VoIP2DAY 2016 | VoIP and RTC Troubleshooting using the Sip...
Predix Builder Roadshow
FluentD for end to end monitoring
S1: Predix ISV Partner Program (Predix Transform 2016)
stackconf 2024 | Building large-scale Internal Developer Platforms: Core Prin...
DevOps: The Future of Software Development
How Spotify reaches the 80%+ of satisfaction of the techies making developers...

More from Saúl Ibarra Corretgé (16)

PDF
JanusCon 2024: Mom there are robots in my meeting
PDF
Challenges running Jitsi Meet at scale during the pandemic
PDF
The Road to End-to-End Encryption in Jitsi Meet
PDF
Jitsi: State of the Union 2020
PDF
Jitsi Meet: our tale of blood, sweat, tears and love
PDF
Jitsi Meet: Video conferencing for the privacy minded
PDF
Jitsi - Estado de la unión 2019
PDF
Get a room! Spot: the ultimate physical meeting room experience
PDF
Going Mobile with React Native and WebRTC
PDF
Going Mobile with React Native and WebRTC
PDF
Jitsi: Estado de la Unión (2018)
PDF
Jitsi: state-of-the-art video conferencing you can self-host
PDF
WebRTC: El epicentro de la videoconferencia y IoT
PDF
Jitsi: Open Source Video Conferencing
PDF
Extendiendo SIP con WebRTC
PDF
De SIP a WebRTC y vice versa
JanusCon 2024: Mom there are robots in my meeting
Challenges running Jitsi Meet at scale during the pandemic
The Road to End-to-End Encryption in Jitsi Meet
Jitsi: State of the Union 2020
Jitsi Meet: our tale of blood, sweat, tears and love
Jitsi Meet: Video conferencing for the privacy minded
Jitsi - Estado de la unión 2019
Get a room! Spot: the ultimate physical meeting room experience
Going Mobile with React Native and WebRTC
Going Mobile with React Native and WebRTC
Jitsi: Estado de la Unión (2018)
Jitsi: state-of-the-art video conferencing you can self-host
WebRTC: El epicentro de la videoconferencia y IoT
Jitsi: Open Source Video Conferencing
Extendiendo SIP con WebRTC
De SIP a WebRTC y vice versa

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
KodekX | Application Modernization Development
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
cuic standard and advanced reporting.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Spectroscopy.pptx food analysis technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Electronic commerce courselecture one. Pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Understanding_Digital_Forensics_Presentation.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
KodekX | Application Modernization Development
Chapter 3 Spatial Domain Image Processing.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
cuic standard and advanced reporting.pdf
Big Data Technologies - Introduction.pptx
sap open course for s4hana steps from ECC to s4
20250228 LYD VKU AI Blended-Learning.pptx
Machine learning based COVID-19 study performance prediction
Reach Out and Touch Someone: Haptics and Empathic Computing
Spectroscopy.pptx food analysis technology
Network Security Unit 5.pdf for BCA BBA.
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Electronic commerce courselecture one. Pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Understanding_Digital_Forensics_Presentation.pptx

CDRTool: CDR mediation and rating engine for OpenSIPS