SlideShare a Scribd company logo
1 of 29
Download to read offline
PRESENTED BY:
Rating and Limits
●
James Aimonetti
@kazoocon
Lets Talk Billing
@kazoocon
People like to talk a lot about "billing"
What IS billing?
The request usually comes in the form "I just
need something simple."
That's usually a gross understatement of the
actual desire.
@kazoocon
● Recurring Subscriptions (monthly charges)
● Pro-rated monthly subscriptions
● Activation charges
● Per-minute / per-use charges
● Limits on spend (daily, monthly, pre-pay/credit
base)
● Allocations of usage (400 minutes included -
daily, monthly, etc.)
@kazoocon
● Bursting / overage charges
● Rating of calls
● Pre-pay vs. post-pay
● Auto top up
● Deposit tracking
● Accounts Payable / Accounts Receivable
@kazoocon
● Strategies for warning customers
● low balances
● overdue
● expiring credit card
● Discounts
● one time
● Continuous
● Rate decks (global + account based)
● Actual cost analysis
@kazoocon
@kazoocon
Rating – What Is It Good For?
@kazoocon
Rate Document
● prefix:"1"
● iso_country_code:"US"
● description:"US default rate"
● direction:"both"
● rate_name:"US-1"
● routes:["^+1d+$"]
● options:[]
● weight:10
● rate_increment:60
● rate_minimum:60
● rate_surcharge:1.00
● rate_cost:0.01
@kazoocon
@kazoocon
Testing Your Rate Deck
sup hotornot_maintenance rates_for_did 4158867900
Candidates:
RATE NAME | COST | INCREMENT | MINIMUM | SURCHARGE | WEIGHT | PREFIX
US-1-INBOUND |0.0049 | 60 | 60 | 0.00 | 2 | 1
US-1-OUTBOUND |0.0089 | 60 | 60 | 0.00 | 2 | 1
Matching:
RATE NAME | COST | INCREMENT | MINIMUM | SURCHARGE | WEIGHT | PREFIX
* US-1-OUTBOUND | 0.0089 | 60 | 60 | 0.00 | 2 | 1
US-1-INBOUND | 0.0049 | 60 | 60 | 0.00 | 2 | 1
@kazoocon
Limits in Kazoo
@kazoocon
● Inbound
● Limit the number of simultaneous inbound calls
that can be received
● Outbound
● Limit the number of simultaneous outbound calls
that can be made
● Two-way
● Limit the number of simultaneous calls that can be made
● Resource consuming
● Any endpoint the system operators likely pay for
(upstream carriers generally)
● Limit the number of calls that can consume resources
(internal calls unaffected)
@kazoocon
● Burst
● Allows account to consume more trunks than the base
number allotted, typically for short intervals
● Good for seasonal, customer support, radio shows, call
centers, schools, etc
● Bundled Trunks
● Inbound, Outbound, Twoway as well
● Limit determined by the number of users or devices
(configurable)
● "twoway_bundled":"user", for example
● Prepay
● Pay up front, deduct until 0
● No simultaneous call limit
● Postpay
● Basically prepay that can go negative
@kazoocon
● Allotments
● Buckets of minutes per time-period
● Monthly, Weekly, Daily, Hourly, Minutely (seriously)
Emergency calls are immediately authorized, as are
outbound calls to tollfree numbers.
Each CDR is augmented with two fields showing the trunk
usage for the account and the reseller at the time of the call.
The format is:
{INBOUND}/{OUTBOUND}/{TWOWAY}/{BURST}.
@kazoocon
@kazoocon
@kazoocon
Limits – Behind the Curtains
@kazoocon
Track temporal data in temporal databases
● Affectionately called MODBs (month-only databases)
● Stores temporal data for a given month (ACCTID-YYYYMM)
● Keeps account database small and fast
● Monthly rollovers for transactions and other ledger-based
work
● Views with map/reduce maintain the month's balances
● Once out of scope, MODBs can be archived and deleted
@kazoocon
● Rate real-time, in parallel with authorization
● Helps with fraud
● Scales by accounts, so technically infinitely
● Tracks funny money
● Allows external billing systems
● Admins can easily apply credits to accounts
@kazoocon
Setup, Configuration, and Monitoring
@kazoocon
Setup Authorization
● Enable authorization on calls
● sup whapps_config set_default ecallmgr authz_enabled true
● sup whapps_config flush ecallmgr
● sup -necallmgr ecallmgr_config flush
● Authorize local resource usage
● sup whapps_config set_default ecallmgr authz_local_resources true
● sup whapps_config flush ecallmgr
● sup -necallmgr ecallmgr_config flush
● Dry Run authz attempts (useful when testing authz)
● sup whapps_config set_default ecallmgr authz_dry_run true
● Still allows a call that would have been denied
● Require a rate to continue call
● sup whapps_config set_default ecallmgr {DIRECTION}_rate_required true
● If enabled, ensures a rate is found for the leg; otherwise kills the channel
● Default Authz action (if authz request fails)
● sup whapps_config set_default ecallmgr authz_default_action deny
● Alternative setting is “allow”
@kazoocon
Adding limits to an account
Add limits to an account:
POST /v2/accounts/{ACCOUNT_ID}/limits
{
"data": {
"twoway_trunks": 0,
"inbound_trunks": 11,
"allow_prepay": true,
"outbound_trunks": 5
}
}
Check the limits schema for various limits to be set here and read more about
the limits API in applications/crossbar/doc/limits.md
Resellers and system admins can perform this request.
@kazoocon
Manually limit account limit settings
System admins can manually restrict an account's limits:
Prefixing any of the limit doc's keys with “pvt_” will restrict the account's
ability to set that limit.
Setting “pvt_enabled" to false on the account's limit doc
@kazoocon
Authz Summary
sup jonny5_maintenance authz_summary [{ACCOUNT_ID}]
+--------------+----+-----+------------+---------+----------+---------+
| Account ID | Cs | RCs | Allotments | Inbound | Outbound | Per Min |
+==============+====+=====+============+=========+==========+=========+
|{ACCOUNT_ID_1}| 1 | 1 | 0 | 1 | 0 | 0 |
+--------------+----+-----+------------+---------+----------+---------+
|{ACCOUNT_ID_2}| 1 | 1 | 0 | 1 | 0 | 0 |
+--------------+----+-----+------------+---------+----------+---------+
|{ACCOUNT_ID_3}| 1 | 1 | 0 | 1 | 0 | 0 |
+--------------+----+-----+------------+---------+----------+---------+
sup jonny5_maintenance limits_summary [{ACCOUNT_ID}]
+--------------+----+-----+----+-----------------+--------+-------------+
|Account ID | Cs | RCs | As | Trunks | PerMin | Max Postpay |
| | | | |In|Out|Both|Burst| | |
+==============+====+=====+====+=================+========+=============+
|{ACCOUNT_ID_1}| -1 | -1 | 0 |3 |0 |3 |0 | 124.668| disabled |
+--------------+----+-----+----+-----------------+--------+-------------+
|{ACCOUNT_ID_2}| -1 | -1 | 0 |20|0 |20 |0 | 814.201| disabled |
+--------------+----+-----+----+-----------------+--------+-------------+
|{ACCOUNT_ID_3}| -1 | -1 | 0 |0 |0 |0 |0 | 693.675| -5000.0 |
+--------------+----+-----+----+-----------------+--------+-------------+
@kazoocon
Managing credit for accounts
sup whistle_services_maintenance credit {ACCOUNT_ID} 5.0
sup whistle_services_maintenance debit {ACCOUNT_ID} 5.0
@kazoocon
Logs to Look For
This call is consuming a flat rate trunk
|{CALL_ID}|j5_request:186 (<0.29272.139>) account {ACCOUNT_ID} authorized
channel: flat_rate
|{CALL_ID}|j5_request:177 (<0.29272.139>) reseller {RESELLER_ID} authorized
channel: flat_rate
This call was authorized because it is an outbound tollfree call
|{CALL_ID}|j5_authz_req:153 (<0.14181.140>) allowing outbound tollfree call
|{CALL_ID}|j5_request:186 (<0.14181.140>) account {ACCOUNT_ID} authorized
channel: limits_disabled
|{CALL_ID}|j5_request:177 (<0.14181.140>) reseller {RESELLER_ID} authorized
channel: limits_disabled
@kazoocon
What to look for in the CDR
{
"_id": "201509-{CALL_ID}",
"_rev": "1-efde475f92bd0ef742d8de4d788125ac",
"billing_seconds": "10",
"call_direction": "inbound",
"custom_channel_vars": {
"base_cost": "49",
"rate_name": "US-1-INBOUND",
"surcharge": "0",
"rate_minimum": "60",
"rate_increment": "60",
"rate": "49",
"account_id": "{ACCOUNT_ID}",
"account_billing": "limits_disabled",
"reseller_id": "{RESELLER_ID}",
"reseller_billing": "limits_disabled",
"channel_authorized": "true",
"global_resource": "false",
"account_trunk_usage": "0/0/0/0",
"reseller_trunk_usage": "0/0/0/0"
},
}
Thank You!
#kazoocon1

More Related Content

What's hot

Frappe / ERPNext Open Day May 14
Frappe / ERPNext Open Day May 14Frappe / ERPNext Open Day May 14
Frappe / ERPNext Open Day May 14rushabh_mehta
 
AUTOMATED VPN RESELLER PANEL FOR VPN BUSINESS
AUTOMATED VPN RESELLER PANEL FOR VPN BUSINESS AUTOMATED VPN RESELLER PANEL FOR VPN BUSINESS
AUTOMATED VPN RESELLER PANEL FOR VPN BUSINESS Genny Knight
 
ERPNext Open Day - March / April 2015
ERPNext Open Day - March / April 2015ERPNext Open Day - March / April 2015
ERPNext Open Day - March / April 2015rushabh_mehta
 
How One Billion Salesforce records Can Be Replicated with Minimal API Usage
How One Billion Salesforce records Can Be Replicated with Minimal API UsageHow One Billion Salesforce records Can Be Replicated with Minimal API Usage
How One Billion Salesforce records Can Be Replicated with Minimal API UsageBaruch Oxman
 
Salesforce Elevate - Bilbao '17 - Process automation with and without code
Salesforce Elevate - Bilbao '17 - Process automation with and without codeSalesforce Elevate - Bilbao '17 - Process automation with and without code
Salesforce Elevate - Bilbao '17 - Process automation with and without codenorthspainsalesforcedevelopergroup
 
Deploying and Using the B2B Portal by Doug Johnson
Deploying and Using the B2B Portal by Doug JohnsonDeploying and Using the B2B Portal by Doug Johnson
Deploying and Using the B2B Portal by Doug JohnsonAcumatica Cloud ERP
 
Frappé / ERPNext Open Day January 2016
Frappé / ERPNext Open Day January 2016Frappé / ERPNext Open Day January 2016
Frappé / ERPNext Open Day January 2016Anand Doshi
 
Frappé / ERPNext Open Day February 2016
Frappé / ERPNext Open Day February 2016Frappé / ERPNext Open Day February 2016
Frappé / ERPNext Open Day February 2016Anand Doshi
 
Introduction to Addressy - address verification made easy
Introduction to Addressy - address verification made easyIntroduction to Addressy - address verification made easy
Introduction to Addressy - address verification made easyAddressy
 
Reacting to the Isomorphic Buzz
Reacting to the Isomorphic BuzzReacting to the Isomorphic Buzz
Reacting to the Isomorphic BuzzBruce Coddington
 
Learn How to Build a Headless Commerce Storefront
Learn How to Build a Headless Commerce StorefrontLearn How to Build a Headless Commerce Storefront
Learn How to Build a Headless Commerce StorefrontSAP Customer Experience
 
Oracle ERP Cloud Shipping Software | ShipConsole
Oracle ERP Cloud Shipping Software | ShipConsoleOracle ERP Cloud Shipping Software | ShipConsole
Oracle ERP Cloud Shipping Software | ShipConsoleShipconsole
 
Performance Tuning Azure SQL Database
Performance Tuning Azure SQL DatabasePerformance Tuning Azure SQL Database
Performance Tuning Azure SQL DatabaseGrant Fritchey
 
Episode 9 - Building soap integrations in salesforce
Episode 9 - Building soap integrations  in salesforceEpisode 9 - Building soap integrations  in salesforce
Episode 9 - Building soap integrations in salesforceJitendra Zaa
 
Blocks, Bricks & Bridges with Serverless In AWS
Blocks, Bricks & Bridges with Serverless In AWSBlocks, Bricks & Bridges with Serverless In AWS
Blocks, Bricks & Bridges with Serverless In AWSAshan Fernando
 
The Importance of Wait Statistics in SQL Server
The Importance of Wait Statistics in SQL ServerThe Importance of Wait Statistics in SQL Server
The Importance of Wait Statistics in SQL ServerGrant Fritchey
 
Azure Functions in Action #OrlandoCC
Azure Functions in Action #OrlandoCCAzure Functions in Action #OrlandoCC
Azure Functions in Action #OrlandoCCBaskar rao Dsn
 

What's hot (20)

Frappe / ERPNext Open Day May 14
Frappe / ERPNext Open Day May 14Frappe / ERPNext Open Day May 14
Frappe / ERPNext Open Day May 14
 
AUTOMATED VPN RESELLER PANEL FOR VPN BUSINESS
AUTOMATED VPN RESELLER PANEL FOR VPN BUSINESS AUTOMATED VPN RESELLER PANEL FOR VPN BUSINESS
AUTOMATED VPN RESELLER PANEL FOR VPN BUSINESS
 
ERPNext Open Day - March / April 2015
ERPNext Open Day - March / April 2015ERPNext Open Day - March / April 2015
ERPNext Open Day - March / April 2015
 
How One Billion Salesforce records Can Be Replicated with Minimal API Usage
How One Billion Salesforce records Can Be Replicated with Minimal API UsageHow One Billion Salesforce records Can Be Replicated with Minimal API Usage
How One Billion Salesforce records Can Be Replicated with Minimal API Usage
 
Salesforce Elevate - Bilbao '17 - Process automation with and without code
Salesforce Elevate - Bilbao '17 - Process automation with and without codeSalesforce Elevate - Bilbao '17 - Process automation with and without code
Salesforce Elevate - Bilbao '17 - Process automation with and without code
 
Deploying and Using the B2B Portal by Doug Johnson
Deploying and Using the B2B Portal by Doug JohnsonDeploying and Using the B2B Portal by Doug Johnson
Deploying and Using the B2B Portal by Doug Johnson
 
Frappé / ERPNext Open Day January 2016
Frappé / ERPNext Open Day January 2016Frappé / ERPNext Open Day January 2016
Frappé / ERPNext Open Day January 2016
 
Frappé / ERPNext Open Day February 2016
Frappé / ERPNext Open Day February 2016Frappé / ERPNext Open Day February 2016
Frappé / ERPNext Open Day February 2016
 
Server for POS
Server for POSServer for POS
Server for POS
 
Introduction to Addressy - address verification made easy
Introduction to Addressy - address verification made easyIntroduction to Addressy - address verification made easy
Introduction to Addressy - address verification made easy
 
Reacting to the Isomorphic Buzz
Reacting to the Isomorphic BuzzReacting to the Isomorphic Buzz
Reacting to the Isomorphic Buzz
 
Learn How to Build a Headless Commerce Storefront
Learn How to Build a Headless Commerce StorefrontLearn How to Build a Headless Commerce Storefront
Learn How to Build a Headless Commerce Storefront
 
Oracle ERP Cloud Shipping Software | ShipConsole
Oracle ERP Cloud Shipping Software | ShipConsoleOracle ERP Cloud Shipping Software | ShipConsole
Oracle ERP Cloud Shipping Software | ShipConsole
 
Performance Tuning Azure SQL Database
Performance Tuning Azure SQL DatabasePerformance Tuning Azure SQL Database
Performance Tuning Azure SQL Database
 
Episode 9 - Building soap integrations in salesforce
Episode 9 - Building soap integrations  in salesforceEpisode 9 - Building soap integrations  in salesforce
Episode 9 - Building soap integrations in salesforce
 
Blocks, Bricks & Bridges with Serverless In AWS
Blocks, Bricks & Bridges with Serverless In AWSBlocks, Bricks & Bridges with Serverless In AWS
Blocks, Bricks & Bridges with Serverless In AWS
 
The Importance of Wait Statistics in SQL Server
The Importance of Wait Statistics in SQL ServerThe Importance of Wait Statistics in SQL Server
The Importance of Wait Statistics in SQL Server
 
New relic
New relicNew relic
New relic
 
Evolve18 | Satish Ramade | The case for Self balanced AEM
Evolve18 | Satish Ramade | The case for Self balanced AEMEvolve18 | Satish Ramade | The case for Self balanced AEM
Evolve18 | Satish Ramade | The case for Self balanced AEM
 
Azure Functions in Action #OrlandoCC
Azure Functions in Action #OrlandoCCAzure Functions in Action #OrlandoCC
Azure Functions in Action #OrlandoCC
 

Viewers also liked

2600Hz - Detecting and Managing VoIP Fraud
2600Hz - Detecting and Managing VoIP Fraud2600Hz - Detecting and Managing VoIP Fraud
2600Hz - Detecting and Managing VoIP Fraud2600Hz
 
Kamailio and VoIP Wild World
Kamailio and VoIP Wild WorldKamailio and VoIP Wild World
Kamailio and VoIP Wild World2600Hz
 
Voxter - Building Value with Kazoo - KazooCon 2015
Voxter - Building Value with Kazoo - KazooCon 2015Voxter - Building Value with Kazoo - KazooCon 2015
Voxter - Building Value with Kazoo - KazooCon 20152600Hz
 
KazooCon 2014 - Playing Kazoo Dudka Style
KazooCon 2014 - Playing Kazoo Dudka StyleKazooCon 2014 - Playing Kazoo Dudka Style
KazooCon 2014 - Playing Kazoo Dudka Style2600Hz
 
VirtualPBX - Back Office, Delivering Voice in a Competitive Market - KazooCon...
VirtualPBX - Back Office, Delivering Voice in a Competitive Market - KazooCon...VirtualPBX - Back Office, Delivering Voice in a Competitive Market - KazooCon...
VirtualPBX - Back Office, Delivering Voice in a Competitive Market - KazooCon...2600Hz
 
2600Hz - The Next Wave - KazooCon 2015
2600Hz - The Next Wave - KazooCon 2015 2600Hz - The Next Wave - KazooCon 2015
2600Hz - The Next Wave - KazooCon 2015 2600Hz
 
SIPLABS - Hard Rocking Kazoo - KazooCon 2015
SIPLABS - Hard Rocking Kazoo - KazooCon 2015SIPLABS - Hard Rocking Kazoo - KazooCon 2015
SIPLABS - Hard Rocking Kazoo - KazooCon 20152600Hz
 
2600Hz - Tuning Kazoo to 10,000 Handsets - KazooCon 2015
2600Hz - Tuning Kazoo to 10,000 Handsets - KazooCon 20152600Hz - Tuning Kazoo to 10,000 Handsets - KazooCon 2015
2600Hz - Tuning Kazoo to 10,000 Handsets - KazooCon 20152600Hz
 
KazooCon 2014 - Deploying Kazoo Globally
KazooCon 2014 - Deploying Kazoo GloballyKazooCon 2014 - Deploying Kazoo Globally
KazooCon 2014 - Deploying Kazoo Globally2600Hz
 
KazooCon 2014 - Kazoo Scalability
KazooCon 2014 - Kazoo ScalabilityKazooCon 2014 - Kazoo Scalability
KazooCon 2014 - Kazoo Scalability2600Hz
 
KazooCon 2014 - Range Networks, the Future of Mobile
KazooCon 2014 - Range Networks, the Future of Mobile KazooCon 2014 - Range Networks, the Future of Mobile
KazooCon 2014 - Range Networks, the Future of Mobile 2600Hz
 
Build your first Monster APP
Build your first Monster APPBuild your first Monster APP
Build your first Monster APP2600Hz
 
KazooCon 2014 - Control Cellular Service via APIs
KazooCon 2014 - Control Cellular Service via APIsKazooCon 2014 - Control Cellular Service via APIs
KazooCon 2014 - Control Cellular Service via APIs2600Hz
 
2600hz WebRTC Meetup at WeWork, San Francisco, CA
2600hz WebRTC Meetup at WeWork, San Francisco, CA2600hz WebRTC Meetup at WeWork, San Francisco, CA
2600hz WebRTC Meetup at WeWork, San Francisco, CA2600Hz
 
KazooCon 2014 - A Primer on Telecom Law
KazooCon 2014 - A Primer on Telecom LawKazooCon 2014 - A Primer on Telecom Law
KazooCon 2014 - A Primer on Telecom Law2600Hz
 
KazooCon 2014 - Ziron, SMS for voice people
KazooCon 2014 - Ziron, SMS for voice peopleKazooCon 2014 - Ziron, SMS for voice people
KazooCon 2014 - Ziron, SMS for voice people2600Hz
 
KazooCon 2014 - WebRTC
KazooCon 2014 - WebRTCKazooCon 2014 - WebRTC
KazooCon 2014 - WebRTC2600Hz
 
KazooCon 2014 - Introduction to Kazoo APIs!
KazooCon 2014 - Introduction to Kazoo APIs!KazooCon 2014 - Introduction to Kazoo APIs!
KazooCon 2014 - Introduction to Kazoo APIs!2600Hz
 
KazooCon 2014 - Building Your Business: Behind the Numbers!
KazooCon 2014 - Building Your Business: Behind the Numbers!KazooCon 2014 - Building Your Business: Behind the Numbers!
KazooCon 2014 - Building Your Business: Behind the Numbers!2600Hz
 
Top 5 Challenges To Add Web Calls to Truphone VoIP Platform
Top 5 Challenges To Add Web Calls to Truphone VoIP PlatformTop 5 Challenges To Add Web Calls to Truphone VoIP Platform
Top 5 Challenges To Add Web Calls to Truphone VoIP PlatformGiacomo Vacca
 

Viewers also liked (20)

2600Hz - Detecting and Managing VoIP Fraud
2600Hz - Detecting and Managing VoIP Fraud2600Hz - Detecting and Managing VoIP Fraud
2600Hz - Detecting and Managing VoIP Fraud
 
Kamailio and VoIP Wild World
Kamailio and VoIP Wild WorldKamailio and VoIP Wild World
Kamailio and VoIP Wild World
 
Voxter - Building Value with Kazoo - KazooCon 2015
Voxter - Building Value with Kazoo - KazooCon 2015Voxter - Building Value with Kazoo - KazooCon 2015
Voxter - Building Value with Kazoo - KazooCon 2015
 
KazooCon 2014 - Playing Kazoo Dudka Style
KazooCon 2014 - Playing Kazoo Dudka StyleKazooCon 2014 - Playing Kazoo Dudka Style
KazooCon 2014 - Playing Kazoo Dudka Style
 
VirtualPBX - Back Office, Delivering Voice in a Competitive Market - KazooCon...
VirtualPBX - Back Office, Delivering Voice in a Competitive Market - KazooCon...VirtualPBX - Back Office, Delivering Voice in a Competitive Market - KazooCon...
VirtualPBX - Back Office, Delivering Voice in a Competitive Market - KazooCon...
 
2600Hz - The Next Wave - KazooCon 2015
2600Hz - The Next Wave - KazooCon 2015 2600Hz - The Next Wave - KazooCon 2015
2600Hz - The Next Wave - KazooCon 2015
 
SIPLABS - Hard Rocking Kazoo - KazooCon 2015
SIPLABS - Hard Rocking Kazoo - KazooCon 2015SIPLABS - Hard Rocking Kazoo - KazooCon 2015
SIPLABS - Hard Rocking Kazoo - KazooCon 2015
 
2600Hz - Tuning Kazoo to 10,000 Handsets - KazooCon 2015
2600Hz - Tuning Kazoo to 10,000 Handsets - KazooCon 20152600Hz - Tuning Kazoo to 10,000 Handsets - KazooCon 2015
2600Hz - Tuning Kazoo to 10,000 Handsets - KazooCon 2015
 
KazooCon 2014 - Deploying Kazoo Globally
KazooCon 2014 - Deploying Kazoo GloballyKazooCon 2014 - Deploying Kazoo Globally
KazooCon 2014 - Deploying Kazoo Globally
 
KazooCon 2014 - Kazoo Scalability
KazooCon 2014 - Kazoo ScalabilityKazooCon 2014 - Kazoo Scalability
KazooCon 2014 - Kazoo Scalability
 
KazooCon 2014 - Range Networks, the Future of Mobile
KazooCon 2014 - Range Networks, the Future of Mobile KazooCon 2014 - Range Networks, the Future of Mobile
KazooCon 2014 - Range Networks, the Future of Mobile
 
Build your first Monster APP
Build your first Monster APPBuild your first Monster APP
Build your first Monster APP
 
KazooCon 2014 - Control Cellular Service via APIs
KazooCon 2014 - Control Cellular Service via APIsKazooCon 2014 - Control Cellular Service via APIs
KazooCon 2014 - Control Cellular Service via APIs
 
2600hz WebRTC Meetup at WeWork, San Francisco, CA
2600hz WebRTC Meetup at WeWork, San Francisco, CA2600hz WebRTC Meetup at WeWork, San Francisco, CA
2600hz WebRTC Meetup at WeWork, San Francisco, CA
 
KazooCon 2014 - A Primer on Telecom Law
KazooCon 2014 - A Primer on Telecom LawKazooCon 2014 - A Primer on Telecom Law
KazooCon 2014 - A Primer on Telecom Law
 
KazooCon 2014 - Ziron, SMS for voice people
KazooCon 2014 - Ziron, SMS for voice peopleKazooCon 2014 - Ziron, SMS for voice people
KazooCon 2014 - Ziron, SMS for voice people
 
KazooCon 2014 - WebRTC
KazooCon 2014 - WebRTCKazooCon 2014 - WebRTC
KazooCon 2014 - WebRTC
 
KazooCon 2014 - Introduction to Kazoo APIs!
KazooCon 2014 - Introduction to Kazoo APIs!KazooCon 2014 - Introduction to Kazoo APIs!
KazooCon 2014 - Introduction to Kazoo APIs!
 
KazooCon 2014 - Building Your Business: Behind the Numbers!
KazooCon 2014 - Building Your Business: Behind the Numbers!KazooCon 2014 - Building Your Business: Behind the Numbers!
KazooCon 2014 - Building Your Business: Behind the Numbers!
 
Top 5 Challenges To Add Web Calls to Truphone VoIP Platform
Top 5 Challenges To Add Web Calls to Truphone VoIP PlatformTop 5 Challenges To Add Web Calls to Truphone VoIP Platform
Top 5 Challenges To Add Web Calls to Truphone VoIP Platform
 

Similar to 2600Hz - Telecom Rating and Limits

Project report on (atm MAnagment system)
Project report on (atm MAnagment system)Project report on (atm MAnagment system)
Project report on (atm MAnagment system)Muhammad Umer Lari
 
Banks offer various types of accounts, such as savings, checking, cer.pdf
 Banks offer various types of accounts, such as savings, checking, cer.pdf Banks offer various types of accounts, such as savings, checking, cer.pdf
Banks offer various types of accounts, such as savings, checking, cer.pdfakbsingh1313
 
Transactional Streaming: If you can compute it, you can probably stream it.
Transactional Streaming: If you can compute it, you can probably stream it.Transactional Streaming: If you can compute it, you can probably stream it.
Transactional Streaming: If you can compute it, you can probably stream it.jhugg
 
Evergreen Indiana Local Admin Training
Evergreen Indiana Local Admin TrainingEvergreen Indiana Local Admin Training
Evergreen Indiana Local Admin TrainingShauna
 
PayU Biz Product Deck (1)
PayU Biz Product Deck (1)PayU Biz Product Deck (1)
PayU Biz Product Deck (1)ICICI Bank
 
The AI Advantage in Deductions Processing | Deductions Management Process | E...
The AI Advantage in Deductions Processing | Deductions Management Process | E...The AI Advantage in Deductions Processing | Deductions Management Process | E...
The AI Advantage in Deductions Processing | Deductions Management Process | E...Emagia
 
The AI Advantage In Deductions Processing | Emagia Deductions Automation | Em...
The AI Advantage In Deductions Processing | Emagia Deductions Automation | Em...The AI Advantage In Deductions Processing | Emagia Deductions Automation | Em...
The AI Advantage In Deductions Processing | Emagia Deductions Automation | Em...emagia
 
Accounting software free
Accounting software freeAccounting software free
Accounting software freejaseel_am
 
Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Netgate
 
Frappé Open Day Presentations - April 2016
Frappé Open Day Presentations - April 2016Frappé Open Day Presentations - April 2016
Frappé Open Day Presentations - April 2016Neil Lasrado
 
What's New in Deltek Vision 7.1, Invoice Approvals, Overhead Allocation and 5...
What's New in Deltek Vision 7.1, Invoice Approvals, Overhead Allocation and 5...What's New in Deltek Vision 7.1, Invoice Approvals, Overhead Allocation and 5...
What's New in Deltek Vision 7.1, Invoice Approvals, Overhead Allocation and 5...BCS ProSoft
 
KAM Pro Serv - Payment Processing.pptx
KAM Pro Serv - Payment Processing.pptxKAM Pro Serv - Payment Processing.pptx
KAM Pro Serv - Payment Processing.pptxShaneMcNeil3
 
Pcounter Print Management - Overview
Pcounter Print Management - OverviewPcounter Print Management - Overview
Pcounter Print Management - OverviewMichael Miller
 
Rate Limiting at Scale, from SANS AppSec Las Vegas 2012
Rate Limiting at Scale, from SANS AppSec Las Vegas 2012Rate Limiting at Scale, from SANS AppSec Las Vegas 2012
Rate Limiting at Scale, from SANS AppSec Las Vegas 2012Nick Galbreath
 
Nosqloakland 20091102.1
Nosqloakland 20091102.1Nosqloakland 20091102.1
Nosqloakland 20091102.1NorthScale
 
Micro-service architectures with Gilmour
Micro-service architectures with GilmourMicro-service architectures with Gilmour
Micro-service architectures with GilmourAditya Godbole
 
LocalDeliverySolutions
LocalDeliverySolutionsLocalDeliverySolutions
LocalDeliverySolutionsEric Crespin
 

Similar to 2600Hz - Telecom Rating and Limits (20)

Project report on (atm MAnagment system)
Project report on (atm MAnagment system)Project report on (atm MAnagment system)
Project report on (atm MAnagment system)
 
Banks offer various types of accounts, such as savings, checking, cer.pdf
 Banks offer various types of accounts, such as savings, checking, cer.pdf Banks offer various types of accounts, such as savings, checking, cer.pdf
Banks offer various types of accounts, such as savings, checking, cer.pdf
 
Transactional Streaming: If you can compute it, you can probably stream it.
Transactional Streaming: If you can compute it, you can probably stream it.Transactional Streaming: If you can compute it, you can probably stream it.
Transactional Streaming: If you can compute it, you can probably stream it.
 
Evergreen Indiana Local Admin Training
Evergreen Indiana Local Admin TrainingEvergreen Indiana Local Admin Training
Evergreen Indiana Local Admin Training
 
PayU Biz Product Deck (1)
PayU Biz Product Deck (1)PayU Biz Product Deck (1)
PayU Biz Product Deck (1)
 
The AI Advantage in Deductions Processing | Deductions Management Process | E...
The AI Advantage in Deductions Processing | Deductions Management Process | E...The AI Advantage in Deductions Processing | Deductions Management Process | E...
The AI Advantage in Deductions Processing | Deductions Management Process | E...
 
The AI Advantage In Deductions Processing | Emagia Deductions Automation | Em...
The AI Advantage In Deductions Processing | Emagia Deductions Automation | Em...The AI Advantage In Deductions Processing | Emagia Deductions Automation | Em...
The AI Advantage In Deductions Processing | Emagia Deductions Automation | Em...
 
Accounting software free
Accounting software freeAccounting software free
Accounting software free
 
Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017
 
Frappé Open Day Presentations - April 2016
Frappé Open Day Presentations - April 2016Frappé Open Day Presentations - April 2016
Frappé Open Day Presentations - April 2016
 
What's New in Deltek Vision 7.1, Invoice Approvals, Overhead Allocation and 5...
What's New in Deltek Vision 7.1, Invoice Approvals, Overhead Allocation and 5...What's New in Deltek Vision 7.1, Invoice Approvals, Overhead Allocation and 5...
What's New in Deltek Vision 7.1, Invoice Approvals, Overhead Allocation and 5...
 
KAM Pro Serv - Payment Processing.pptx
KAM Pro Serv - Payment Processing.pptxKAM Pro Serv - Payment Processing.pptx
KAM Pro Serv - Payment Processing.pptx
 
Simplify the Procuring Process with Procurement Software
Simplify the Procuring Process with Procurement SoftwareSimplify the Procuring Process with Procurement Software
Simplify the Procuring Process with Procurement Software
 
Pcounter Print Management - Overview
Pcounter Print Management - OverviewPcounter Print Management - Overview
Pcounter Print Management - Overview
 
Rate Limiting at Scale, from SANS AppSec Las Vegas 2012
Rate Limiting at Scale, from SANS AppSec Las Vegas 2012Rate Limiting at Scale, from SANS AppSec Las Vegas 2012
Rate Limiting at Scale, from SANS AppSec Las Vegas 2012
 
Nosqloakland 20091102.1
Nosqloakland 20091102.1Nosqloakland 20091102.1
Nosqloakland 20091102.1
 
Purchase plus
Purchase plusPurchase plus
Purchase plus
 
Micro-service architectures with Gilmour
Micro-service architectures with GilmourMicro-service architectures with Gilmour
Micro-service architectures with Gilmour
 
LocalDeliverySolutions
LocalDeliverySolutionsLocalDeliverySolutions
LocalDeliverySolutions
 
Telecom Billing by TimelyBill
Telecom Billing by TimelyBillTelecom Billing by TimelyBill
Telecom Billing by TimelyBill
 

Recently uploaded

Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 

Recently uploaded (20)

Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 

2600Hz - Telecom Rating and Limits

  • 3. @kazoocon People like to talk a lot about "billing" What IS billing? The request usually comes in the form "I just need something simple." That's usually a gross understatement of the actual desire.
  • 4. @kazoocon ● Recurring Subscriptions (monthly charges) ● Pro-rated monthly subscriptions ● Activation charges ● Per-minute / per-use charges ● Limits on spend (daily, monthly, pre-pay/credit base) ● Allocations of usage (400 minutes included - daily, monthly, etc.)
  • 5. @kazoocon ● Bursting / overage charges ● Rating of calls ● Pre-pay vs. post-pay ● Auto top up ● Deposit tracking ● Accounts Payable / Accounts Receivable
  • 6. @kazoocon ● Strategies for warning customers ● low balances ● overdue ● expiring credit card ● Discounts ● one time ● Continuous ● Rate decks (global + account based) ● Actual cost analysis
  • 8. @kazoocon Rating – What Is It Good For?
  • 9. @kazoocon Rate Document ● prefix:"1" ● iso_country_code:"US" ● description:"US default rate" ● direction:"both" ● rate_name:"US-1" ● routes:["^+1d+$"] ● options:[] ● weight:10 ● rate_increment:60 ● rate_minimum:60 ● rate_surcharge:1.00 ● rate_cost:0.01
  • 11. @kazoocon Testing Your Rate Deck sup hotornot_maintenance rates_for_did 4158867900 Candidates: RATE NAME | COST | INCREMENT | MINIMUM | SURCHARGE | WEIGHT | PREFIX US-1-INBOUND |0.0049 | 60 | 60 | 0.00 | 2 | 1 US-1-OUTBOUND |0.0089 | 60 | 60 | 0.00 | 2 | 1 Matching: RATE NAME | COST | INCREMENT | MINIMUM | SURCHARGE | WEIGHT | PREFIX * US-1-OUTBOUND | 0.0089 | 60 | 60 | 0.00 | 2 | 1 US-1-INBOUND | 0.0049 | 60 | 60 | 0.00 | 2 | 1
  • 13. @kazoocon ● Inbound ● Limit the number of simultaneous inbound calls that can be received ● Outbound ● Limit the number of simultaneous outbound calls that can be made ● Two-way ● Limit the number of simultaneous calls that can be made ● Resource consuming ● Any endpoint the system operators likely pay for (upstream carriers generally) ● Limit the number of calls that can consume resources (internal calls unaffected)
  • 14. @kazoocon ● Burst ● Allows account to consume more trunks than the base number allotted, typically for short intervals ● Good for seasonal, customer support, radio shows, call centers, schools, etc ● Bundled Trunks ● Inbound, Outbound, Twoway as well ● Limit determined by the number of users or devices (configurable) ● "twoway_bundled":"user", for example ● Prepay ● Pay up front, deduct until 0 ● No simultaneous call limit ● Postpay ● Basically prepay that can go negative
  • 15. @kazoocon ● Allotments ● Buckets of minutes per time-period ● Monthly, Weekly, Daily, Hourly, Minutely (seriously) Emergency calls are immediately authorized, as are outbound calls to tollfree numbers. Each CDR is augmented with two fields showing the trunk usage for the account and the reseller at the time of the call. The format is: {INBOUND}/{OUTBOUND}/{TWOWAY}/{BURST}.
  • 19. @kazoocon Track temporal data in temporal databases ● Affectionately called MODBs (month-only databases) ● Stores temporal data for a given month (ACCTID-YYYYMM) ● Keeps account database small and fast ● Monthly rollovers for transactions and other ledger-based work ● Views with map/reduce maintain the month's balances ● Once out of scope, MODBs can be archived and deleted
  • 20. @kazoocon ● Rate real-time, in parallel with authorization ● Helps with fraud ● Scales by accounts, so technically infinitely ● Tracks funny money ● Allows external billing systems ● Admins can easily apply credits to accounts
  • 22. @kazoocon Setup Authorization ● Enable authorization on calls ● sup whapps_config set_default ecallmgr authz_enabled true ● sup whapps_config flush ecallmgr ● sup -necallmgr ecallmgr_config flush ● Authorize local resource usage ● sup whapps_config set_default ecallmgr authz_local_resources true ● sup whapps_config flush ecallmgr ● sup -necallmgr ecallmgr_config flush ● Dry Run authz attempts (useful when testing authz) ● sup whapps_config set_default ecallmgr authz_dry_run true ● Still allows a call that would have been denied ● Require a rate to continue call ● sup whapps_config set_default ecallmgr {DIRECTION}_rate_required true ● If enabled, ensures a rate is found for the leg; otherwise kills the channel ● Default Authz action (if authz request fails) ● sup whapps_config set_default ecallmgr authz_default_action deny ● Alternative setting is “allow”
  • 23. @kazoocon Adding limits to an account Add limits to an account: POST /v2/accounts/{ACCOUNT_ID}/limits { "data": { "twoway_trunks": 0, "inbound_trunks": 11, "allow_prepay": true, "outbound_trunks": 5 } } Check the limits schema for various limits to be set here and read more about the limits API in applications/crossbar/doc/limits.md Resellers and system admins can perform this request.
  • 24. @kazoocon Manually limit account limit settings System admins can manually restrict an account's limits: Prefixing any of the limit doc's keys with “pvt_” will restrict the account's ability to set that limit. Setting “pvt_enabled" to false on the account's limit doc
  • 25. @kazoocon Authz Summary sup jonny5_maintenance authz_summary [{ACCOUNT_ID}] +--------------+----+-----+------------+---------+----------+---------+ | Account ID | Cs | RCs | Allotments | Inbound | Outbound | Per Min | +==============+====+=====+============+=========+==========+=========+ |{ACCOUNT_ID_1}| 1 | 1 | 0 | 1 | 0 | 0 | +--------------+----+-----+------------+---------+----------+---------+ |{ACCOUNT_ID_2}| 1 | 1 | 0 | 1 | 0 | 0 | +--------------+----+-----+------------+---------+----------+---------+ |{ACCOUNT_ID_3}| 1 | 1 | 0 | 1 | 0 | 0 | +--------------+----+-----+------------+---------+----------+---------+ sup jonny5_maintenance limits_summary [{ACCOUNT_ID}] +--------------+----+-----+----+-----------------+--------+-------------+ |Account ID | Cs | RCs | As | Trunks | PerMin | Max Postpay | | | | | |In|Out|Both|Burst| | | +==============+====+=====+====+=================+========+=============+ |{ACCOUNT_ID_1}| -1 | -1 | 0 |3 |0 |3 |0 | 124.668| disabled | +--------------+----+-----+----+-----------------+--------+-------------+ |{ACCOUNT_ID_2}| -1 | -1 | 0 |20|0 |20 |0 | 814.201| disabled | +--------------+----+-----+----+-----------------+--------+-------------+ |{ACCOUNT_ID_3}| -1 | -1 | 0 |0 |0 |0 |0 | 693.675| -5000.0 | +--------------+----+-----+----+-----------------+--------+-------------+
  • 26. @kazoocon Managing credit for accounts sup whistle_services_maintenance credit {ACCOUNT_ID} 5.0 sup whistle_services_maintenance debit {ACCOUNT_ID} 5.0
  • 27. @kazoocon Logs to Look For This call is consuming a flat rate trunk |{CALL_ID}|j5_request:186 (<0.29272.139>) account {ACCOUNT_ID} authorized channel: flat_rate |{CALL_ID}|j5_request:177 (<0.29272.139>) reseller {RESELLER_ID} authorized channel: flat_rate This call was authorized because it is an outbound tollfree call |{CALL_ID}|j5_authz_req:153 (<0.14181.140>) allowing outbound tollfree call |{CALL_ID}|j5_request:186 (<0.14181.140>) account {ACCOUNT_ID} authorized channel: limits_disabled |{CALL_ID}|j5_request:177 (<0.14181.140>) reseller {RESELLER_ID} authorized channel: limits_disabled
  • 28. @kazoocon What to look for in the CDR { "_id": "201509-{CALL_ID}", "_rev": "1-efde475f92bd0ef742d8de4d788125ac", "billing_seconds": "10", "call_direction": "inbound", "custom_channel_vars": { "base_cost": "49", "rate_name": "US-1-INBOUND", "surcharge": "0", "rate_minimum": "60", "rate_increment": "60", "rate": "49", "account_id": "{ACCOUNT_ID}", "account_billing": "limits_disabled", "reseller_id": "{RESELLER_ID}", "reseller_billing": "limits_disabled", "channel_authorized": "true", "global_resource": "false", "account_trunk_usage": "0/0/0/0", "reseller_trunk_usage": "0/0/0/0" }, }