The Village Telco and VoIP Billing

45
 The Village Telco and VoIP Billing

description

 

Transcript of The Village Telco and VoIP Billing

Page 1: The Village Telco and VoIP Billing

   

The Village Telcoand 

VoIP Billing

Page 2: The Village Telco and VoIP Billing

   

Goal

● To get an understanding of the Village Telco model and its components

● Set up and manage a billing platform for a VoIP network

Page 3: The Village Telco and VoIP Billing

   

Agenda

1. The Village Telco• Concept• Components

2. A2Billing Concepts

3. A2Billing Testbed

Page 4: The Village Telco and VoIP Billing

   

PART 1The Village Telco

Page 5: The Village Telco and VoIP Billing

   

The Village Telco

● A vision of a sustainable ICT communication infrastructure

● Low cost, easy to setup, easy to manage, scalable, open source, standard­based, wireless, local do­it­your­self telephony company!

Page 6: The Village Telco and VoIP Billing

   

The Village Telco● Routing Backbone Infrastructure

– Supernode

● Telephony Wireless Clients– Mesh potato (Wireless + VoIP)

● Central server– IP Gateway

– Billing server

– Voice Gateway

– Provisioning server

– Monitoring

Page 7: The Village Telco and VoIP Billing

   

The Village Telco

Page 8: The Village Telco and VoIP Billing

   

VoIP in Wireless Africa

● Parts of the Village Telco testbed● Routing backbone infrastructure

– Infrastructure or mesh

● Client Device– Mesh potato (under development) 

– Access point + VoIP client device● Central Server 

Page 9: The Village Telco and VoIP Billing

   

VoIP in Wireless Africa

● Central Server– IP Gateway

– Billing server– Voice Gateway (May ­09)

– Provisioning server (May ­09)

– Monitoring (May ­09)

Page 10: The Village Telco and VoIP Billing

   

IP Gateway

● Two interfaces– Internet upstreams– LAN

● Route SIP traffic– Solve NAT problems if any

● DHCP server

Page 11: The Village Telco and VoIP Billing

   

Billing server

● A2Billing● LAMP platform

– Linux, Apache, MySQL, PHP5

● Customer management and billing– Create and manage customers– Define service levels and rates– Billing

Page 12: The Village Telco and VoIP Billing

   

Voice Gateway

● Trunk technologies– SIP/IAX– GSM/CDMA (May ­09)– Skype (May ­09)

Page 13: The Village Telco and VoIP Billing

   

PART 2A2Billing

Page 14: The Village Telco and VoIP Billing

   

A2Billing [A2B]

● Billing platform for voice● LAMP configuration● Two web based UI

– Administration (http://your­domain/A2Billing­UI)– Customer (http://your­domain/A2BCustomer­UI)

Page 15: The Village Telco and VoIP Billing

   

A2B Concepts

1.Customer

2.Callplan

3.Rate card

4.Rate

5.Trunk

6.Provider

Page 16: The Village Telco and VoIP Billing

   

Page 17: The Village Telco and VoIP Billing

   

Providers and Trunks

● Provider– One provider can have one or more trunks

● Trunk– Belongs to a provider– Technology: SIP/IAX/Local– Provider IP: IP address of provider– Authentication (sip.conf)

Page 18: The Village Telco and VoIP Billing

   

Page 19: The Village Telco and VoIP Billing

   

Callplans

● Callplan: service level– Each customer is associated with one callplan

● Callplan is a collection of rate cards connected to a billing algorithm

Page 20: The Village Telco and VoIP Billing

   

Rate Cards

● Rate card:  a collection of rates● Rate: specifies buying and selling costs for a 

certain trunk/provider

Page 21: The Village Telco and VoIP Billing

   

Page 22: The Village Telco and VoIP Billing

   

Billing Algorithm

● LCR (Least Cost Routing)– Select the trunk with the cheapest carrier cost. 

(buying rate)

● LCD (Least Cost Dialing)– Select the trunk with the cheapest retail rate (selling 

rate) 

Page 23: The Village Telco and VoIP Billing

   

Rate

● Defines buying and selling rates for a certain trunk/provider

● Belongs to a certain rate card● Buying/selling rate ($/s)● Buying/selling rate min duration (s)● Buying/selling rate billing block (s)● Connect/disconnect charge ($)

Page 24: The Village Telco and VoIP Billing

   

Customer

● Card number Identifies user in Asterisk● Card alias username for A2B web● WebUI password password for A2B web● Tariff Callplan● Access Single/Simultaneously● Currency USD● Run service Yes/No

Page 25: The Village Telco and VoIP Billing

   

Page 26: The Village Telco and VoIP Billing

   

DID

● Direct Inward Dialing● Phone number for incoming calls● Needs to be defined in A2Billing for each local 

customer/extension● DID can be globally unique or locally unique

Page 27: The Village Telco and VoIP Billing

   

PART 3A2Billing Testbed

Page 28: The Village Telco and VoIP Billing

   

Page 29: The Village Telco and VoIP Billing

   

Equipment

● 2 x IP04● 1 x PAP2T (ATA)● 2 x analogue phones● 1 x PC

Page 30: The Village Telco and VoIP Billing

   

Actors

● Village Telco (running billing software) [you]● Local client [you]● External client [you]● VoIP provider [us]

Page 31: The Village Telco and VoIP Billing

   

Functionality

● Local phone calls (local user ­> local user)● Incoming phone calls (external user ­> local user)● Outgoing VoIP call (local user ­> VoIP provider)

Page 32: The Village Telco and VoIP Billing

   

Page 33: The Village Telco and VoIP Billing

   

Dialplan

● extensions.conf● A2Billing

– All calls that needs to be handled by A2Billing– All incoming calls from local customers

● DID– Route calls back to local customers

Page 34: The Village Telco and VoIP Billing

   

Providers and Trunks

● Provider: WA_OUT (outgoing calls)– Label: VoIP Upstreams– Technology: SIP– Provider IP: 192.168.46.x

● Provider: WA_LOCAL (local phone calls)– Label: VoIP Local– Technology: Local– Provider IP:  %dialingnumber%@did

Page 35: The Village Telco and VoIP Billing

   

Callplan

● Silver Member (WA_SILVER)● Gold Member (WA_GOLD)

● Billing algorithm: LCR or LCD

Page 36: The Village Telco and VoIP Billing

   

Rate card

● A rate card is associated with a trunk● WA_out_default VoIP upstreams● WA_local_gold VoIP local● WA_local_silver VoIIP local

Page 37: The Village Telco and VoIP Billing

   

Rate

● Defines buying and selling rates for a certain trunk/provider

● Belongs to a certain rate card● Buying/selling rate ($/s)● Buying/selling rate min duration (s)● Buying/selling rate billing block (s)● Connect/disconnect charge ($)

Page 38: The Village Telco and VoIP Billing

   

Example● Buying rate:  1 USD/min● Buy rate minimum duration 30s● Buy rate billing block  30s● Selling rate 2 USD/min● Selling rate minimum duration  60s● Selling rate billing block 60s● Connect charge 0● Disconnect charge 0

Page 39: The Village Telco and VoIP Billing

   

Customer

● Card number Identifies user in Asterisk● Card alias username for A2B web● WebUI password password for A2B web● Tariff Callplan● Access Single/Simultaneously● Currency USD● Run service Yes/No

Page 40: The Village Telco and VoIP Billing

   

Configure VoIP Clients

● Retrieve SIP configuration parameters– A2Billing Customer UI

● Configure SIP client – VoIPtel GUI

Page 41: The Village Telco and VoIP Billing

   

Configure VoIP Clients

● Dialplan● Users (one for each port on the IP04)● Service provider (Voice Gateway)

– Host, username, password

● Calling rule– All outgoing calls goes to Voice Gateway– Prefix: 00

Page 42: The Village Telco and VoIP Billing

   

Configure Incoming Calls

● Calls from outside to local extensions● Create DID (Direct Inward Dialing)

– DID number– Billing (free or charged)

● A2Billing admin menu

Page 43: The Village Telco and VoIP Billing

   

Configure external client

● Create SIP user in Asterisk– sip.conf (SIP user)– extensions.conf (context)

● Configure ATA ● Configure softphone

Page 44: The Village Telco and VoIP Billing

   

As easy as that....

Page 45: The Village Telco and VoIP Billing

   

Remember!

● Checkpoints● Typos in lab spec? Let us know!● Text editors

– Vi or Gedit

● Before you ask for help– Read read and read again!– Verify your configurations since last checkpoint

● Username, passwords and URLs