Billing Module of Elastix

Discussion in 'General' started by okle100, Oct 1, 2008.

  1. okle100

    Joined:
    Jul 2, 2008
    Messages:
    10
    Likes Received:
    0
    Hi All,

    I am trying to setup the billing module of elastix but i have hard time figuring out how it works.

    Here are the tests I have done, and the results from those tests:

    rate = 1
    rate offset = 0.000
    time = 2.32
    cost = 2.32

    rate = 1
    rate offset = 0.1
    time = 2.32
    cost = 2.82

    rate = 1
    rate offset = 0.5
    time = 2.32
    cost = 4.82

    rate = 1
    rate offset = 1.0
    time = 2.32
    cost = 7.32

    Can someone point me in the right direction of how this billing works, and some manuals, or just plain explain what is the point of rate, and rate offset settings?

    Also is it possible to setup different rates for different parts of the day. As some of the trunk providers here have different rates, for weekdays and afternoons, or it is hjust on trunk bases?

    Thank you, and Best Regards
     
  2. augustynr

    Joined:
    Nov 20, 2007
    Messages:
    113
    Likes Received:
    0
    Can someone explain this?
     
  3. jackyzrk

    Joined:
    Dec 3, 2007
    Messages:
    13
    Likes Received:
    0
    it work by second, not by minute. If you need to make it woke by minute, you have to modify the file
    /var/www/html/modules/billing_report/index.php

    It's very easy.

    And the offrate is added to the total cost by one time.
     
  4. scenarist

    Joined:
    Apr 18, 2011
    Messages:
    92
    Likes Received:
    0
    rate=1
    rate offset=0.00
    time=2.32
    cost=2.32


    Code:
    rate=1
    means 1 $/min = > (1/60 = 0.0166) => (0.0166 $/sec)

    Code:
    time=2.32 min
    =>
    2.32min *60sec = 139.2 sec => 139.2sec * 0.0166 $/sec = 2.32 $

    but I dont understand what means "rate offset" on another examples ?
    in above examples rate offset is added on total cost by the following
    rate ofsset=0.1 => added 0.5 + cost = 0.5 + 2.32 = total cost = 2.82
    rate offset=0.5 => added 2.5 + cost = 2.5 + 2.32 = total cost = 4.82
    rate offset=1 => added 5 + cost = 5 + 2.32 = total cost = 7.32

    but I dont know how is calculate rate offset ?
     

Share This Page