34
CDRTool CDR mediation and rating engine for OpenSIPS Presented by @saghul Tijmen de Mes | @tijmenNL OpenSIPS Summit 2015

CDRTool: CDR mediation and rating engine for OpenSIPS

Embed Size (px)

Citation preview

Page 1: CDRTool: CDR mediation and rating engine for OpenSIPS

CDRTool CDR mediation and rating engine for OpenSIPS

Presented

by

@saghul

Tijmen de Mes | @tijmenNL OpenSIPS Summit 2015

Page 2: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Hoi!

• @saghul, filling in for @tijmenNL

• AG Projects

Page 3: CDRTool: CDR mediation and rating engine for OpenSIPS

#PrayForTijmen

Page 4: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

AG Projects

• SIP infrastructure (SIP Thor)

• Several software projects

• CDRTool

• CallControl

• MediaProxy

• OpenXCAP

• MSRPRelay

Page 5: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

CDRTool

Page 6: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Adrian Georgescu

Page 7: CDRTool: CDR mediation and rating engine for OpenSIPS

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

Page 8: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

What is a CDR

• One record from the radacct table

• Contains all call information

Page 9: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Page 10: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

How do we get CDRs?

UPDATE

STARTSTOPFAILED

CDR

IP

SIP

RTP

Mediaproxy

OpenSIPS

Page 11: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Practical Setup

DatabaseOpenSIPS

ACC

Detail FileFreeradius

Procedure

Detail RecordRadius Relay Freeradius

Mediaproxy

Page 12: CDRTool: CDR mediation and rating engine for OpenSIPS

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

Page 13: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

CDRTool Rating

• Prepaid

• Postpaid

Page 14: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Rating Plan

• Destinations

• Billing parties• Source IP

• Domain

• Subscriber

• Profiles

Page 15: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Normalising

• Set destination to the right format

• Calculate duration

• Apply a price

Page 16: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Prepaid

• Accounts have a balance

• Balance needs to be debited

• Rating Engine returns maximum session time

Page 17: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

CallControl

M

CDRTool Rating engine

Callcontrol

dlg_end_dlg()callcontrol()

MediaSessionTime()

DebitBalance()

OpenSIPS

Page 18: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

CallControl

• Max sessions per account

• Detect duplicate Call-ID

• Parallel sessions, one balance

• Max session duration

Page 19: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Rating Engine

• Available with a socket interface

• MaxSession

• Debit Balance

• Show Price

• More (help shows them)

Page 20: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Quota (Fraud control)

• Monthly

• Daily

• Quota check runs from cron

Page 21: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Postpaid

• Rated after call completes

• Rated by normalising process

Page 22: CDRTool: CDR mediation and rating engine for OpenSIPS
Page 23: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Web Interface

Page 24: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Rates

Page 25: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Quota

Page 26: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Prepaid

Page 27: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

SIP Trace

Page 28: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Media Trace

Page 29: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Media Sessions

Page 30: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Traffic

Page 31: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

Commercial features

• Integration in P2P network SIP Thor

• Provisioning interface

Page 32: CDRTool: CDR mediation and rating engine for OpenSIPS
Page 33: CDRTool: CDR mediation and rating engine for OpenSIPS

Questions?

Page 34: CDRTool: CDR mediation and rating engine for OpenSIPS

AG ProjectsSIP Infrastructure Experts

[email protected]

http://cdrtool.ag-projects.com

@tijmenNL

[email protected]

@saghul