Upload
saul-ibarra-corretge
View
317
Download
4
Tags:
Embed Size (px)
Citation preview
CDRTool CDR mediation and rating engine for OpenSIPS
Presented
by
@saghul
Tijmen de Mes | @tijmenNL OpenSIPS Summit 2015
AG ProjectsSIP Infrastructure Experts
Hoi!
• @saghul, filling in for @tijmenNL
• AG Projects
#PrayForTijmen
AG ProjectsSIP Infrastructure Experts
AG Projects
• SIP infrastructure (SIP Thor)
• Several software projects
• CDRTool
• CallControl
• MediaProxy
• OpenXCAP
• MSRPRelay
AG ProjectsSIP Infrastructure Experts
CDRTool
AG ProjectsSIP Infrastructure Experts
Adrian Georgescu
AG ProjectsSIP Infrastructure Experts
How does it work?
M
CDRTool Rating engine
UPDATE
STARTSTOP
FAILED
CDR
Sip Trace
Media Trace
IP
SIP
RTP
Callcontrol
dlg_end_dlg()callcontrol()
MediaSessionTime()
DebitBalance()
Mediaproxy
Web Interface
OpenSIPS
AG ProjectsSIP Infrastructure Experts
What is a CDR
• One record from the radacct table
• Contains all call information
AG ProjectsSIP Infrastructure Experts
AG ProjectsSIP Infrastructure Experts
How do we get CDRs?
UPDATE
STARTSTOPFAILED
CDR
IP
SIP
RTP
Mediaproxy
OpenSIPS
AG ProjectsSIP Infrastructure Experts
Practical Setup
DatabaseOpenSIPS
ACC
Detail FileFreeradius
Procedure
Detail RecordRadius Relay Freeradius
Mediaproxy
AG ProjectsSIP 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 ProjectsSIP Infrastructure Experts
CDRTool Rating
• Prepaid
• Postpaid
AG ProjectsSIP Infrastructure Experts
Rating Plan
• Destinations
• Billing parties• Source IP
• Domain
• Subscriber
• Profiles
AG ProjectsSIP Infrastructure Experts
Normalising
• Set destination to the right format
• Calculate duration
• Apply a price
AG ProjectsSIP Infrastructure Experts
Prepaid
• Accounts have a balance
• Balance needs to be debited
• Rating Engine returns maximum session time
AG ProjectsSIP Infrastructure Experts
CallControl
M
CDRTool Rating engine
Callcontrol
dlg_end_dlg()callcontrol()
MediaSessionTime()
DebitBalance()
OpenSIPS
AG ProjectsSIP Infrastructure Experts
CallControl
• Max sessions per account
• Detect duplicate Call-ID
• Parallel sessions, one balance
• Max session duration
AG ProjectsSIP Infrastructure Experts
Rating Engine
• Available with a socket interface
• MaxSession
• Debit Balance
• Show Price
• More (help shows them)
AG ProjectsSIP Infrastructure Experts
Quota (Fraud control)
• Monthly
• Daily
• Quota check runs from cron
AG ProjectsSIP Infrastructure Experts
Postpaid
• Rated after call completes
• Rated by normalising process
AG ProjectsSIP Infrastructure Experts
Web Interface
AG ProjectsSIP Infrastructure Experts
Rates
AG ProjectsSIP Infrastructure Experts
Quota
AG ProjectsSIP Infrastructure Experts
Prepaid
AG ProjectsSIP Infrastructure Experts
SIP Trace
AG ProjectsSIP Infrastructure Experts
Media Trace
AG ProjectsSIP Infrastructure Experts
Media Sessions
AG ProjectsSIP Infrastructure Experts
Traffic
AG ProjectsSIP Infrastructure Experts
Commercial features
• Integration in P2P network SIP Thor
• Provisioning interface
Questions?
AG ProjectsSIP Infrastructure Experts
http://cdrtool.ag-projects.com
@tijmenNL
@saghul