PRESENTED BY:
Billing Data with
Kazoo
Aaron Gunn
@kazoocon
Start With a Joke
@kazoocon
Fishing for customers is hard work
@kazoocon
It’s important to get compensated
@kazoocon
So You Can Retire Someday
@kazoocon
Billing Topics
• Billing Concepts
• 4 Ways to Get Billing Data
– #1: Reseller Reporting
– #2: CDR APIs
– #3: AMQP Message Queue
– #4: Webhooks
• Do’s & Don’ts
• SaaS vs. Infrastructure
@kazoocon
Basic Billing Concepts
@kazoocon
Billing Overview
Billing is a catch all word for a wide variety of
technical, accounting, and billing functions.
Technical
• Count devices,
users, etc.
• Service Docs
• MODB
• Credit Storage
• Access Control
Accounting
• Transaction Ledger
• Costs/Prices (Rating)
• Periodic Charges
• Inventory
• Legal
• Discounts
• Product Policies
Billing
• Invoicing
• Ordering
• Billing History
• Customer Service
• Refunds
• Payment Policies
• Deposits
@kazoocon
What Does Kazoo Handle?
• Functional limits/credits.
– Absolute vs. periodic
– Access to functionality
• Rating (what things cost)
• Call Records (CDRs)
• Counting of items
• Present Data to your billing system
@kazoocon
What Doesn’t Kazoo Handle
• Customer Billing
– Invoicing
– Refunds
– Customer Service
– Billing History
• LCR
• Accounting/Legal
– You are liable for correctly billing your customer
@kazoocon
Billing For SaaS Clients
@kazoocon
What We’re Solving
• Resellers typically already re-bill products
from vendors (Microsoft, Cisco, etc.) w/
markup
• Challenge with telecom is doing this monthly
• We provide tools to get you the raw data of
what YOU, as the reseller, have been charged
• You can take these costs and re-bill them
anyway you wish
@kazoocon
Method #1: Reseller Reporting
Best for: Hosted Resellers up to 100 customers who use
an external billing service like Freshbooks.
Billing Frequency: Once/month
Pros
• Everything You Need In One
Report
• Single bill to customer
• Simple
Cons
• Hosted Only
• No Automation
• Doesn’t Scale
@kazoocon
Reseller Reporting Demo
@kazoocon
Billing with Reseller Reporting
• Export data
• Input into billing system however you choose
• Repeat Monthly
• Must still bill for monthly services.
• Great for Freshbooks, telecom accountant
firms.
@kazoocon
Billing for SaaS OR IaaS
Clients
@kazoocon
Method #2: CDR API
Best for: SaaS Customers who want to automate.
Billing Frequency: Once/month
Pros
• Rich Call Information
• Approved Method
• Available on Hosted or
Dedicated
Cons
• Not a real time solution
• Expensive on large
deployments (100+
customers)
@kazoocon
Using the API
• Set up your API key.
• curl -v -H "Accept: application/octet-
stream" http://api.2600hz.com:8000/v1/acco
unts/YOUR_ACCOUNT_ID/cdrs?auth_token=Y
OUR_AUTH_TOKEN
• Get Payload/CSV
@kazoocon
Call Log Demo
@kazoocon
Integrating into your Billing Platform
• Set up API key
• Set up Pulling script
• Pull monthly to your billing system
• API Access can also be used to pull counts of
devices, users, etc.
@kazoocon
Real-Time Billing for IaaS
@kazoocon
What We’re Solving
• Service Providers with their own billing system
• Want to integrate billing data as it occurs.
• Kazoo provides real time CDRs for your billing
system
@kazoocon
Method #3: AMQP Queue
Best for: IaaS Clients doing real-time billing.
Billing Frequency: Real Time
Pros
• Approved method
• Low system load
• Scales very well
• Reliable Delivery
Cons
• More work than API
• Need a real-time billing
platform
• You are responsible for
redundancy
@kazoocon
How Does AMQP Work
@kazoocon
How Does AMQP Work
@kazoocon
How Does AMQP Work
• Message Attributes (Meta Data)
• Message Acknowledgements
• uses TCP for reliable delivery
@kazoocon
Integrating into your Billing Platform
• Set up an exchange for hangup messages
• Set up a queue
• Receive a payload
• Parse the payload
@kazoocon
AMQP Demo
@kazoocon
Method #4: Webhooks
Best for: No one
Billing Frequency: Just don’t do this!
Pros
• Easy to set up
Cons
• Billing Events Can be lost
• Unsupported by 2600hz
• Doesn’t Scale At All
@kazoocon
What Is Webhooks Good For?
• Triggering On-Demand Experiences
• Integrating with Web Services
• Feeding Events back into the system with
Pivot
@kazoocon
Summary of Methods
Monthly Real-Time
Hosted
Infrastructure
Reseller Reporting
OR
APIs
AMQP
Not available on
SaaS, but talk to
us if you need
this
@kazoocon
Summary
• Hosted resellers should really only be billing
by month.
• Don’t use webhooks for billing.
• If Infrastructure client, use AMQP
Thank You!
#kazoocon14
aaron@2600hz.com
@kazoocon
What’s Left?
• Functional limits/credits.
– Absolute vs. periodic
– Access to functionality
• Rating (what calls cost)
• Call Records (CDRs)
• Counting of items
• Present Data to your billing system
@kazoocon
@kazoocon
Door’s Open on Billing
• Community
@kazoocon
Advanced Billing Concepts
@kazoocon
Thank You!
#kazoocon14
Thank You!
#kazoocon14
@kazoocon
Two More Concepts
Service Docs
- Bookkeepers (count things)
- Plan Parameters (assign costs)
MODB
- Monthly Limits
@kazoocon
Sample Service Doc
@kazoocon
Sample MODB Doc
@kazoocon
@kazoocon
Billing Data: What’s Available?
• Count of current items on account
– Numbers, devices, users
• Call Records (CDRS)
– Call time, Carrier, Call info

2600Hz - Billing Data with Kazoo

Editor's Notes

  • #24 (if your script is down you lose calls) Limit can be set in the system, but is hardware dependent
  • #27 -return to queue/dead letter -exchange: routes a message to one or more queues