Excerpt |
---|
This page contains instructions on how to add a new cost to the channel. |
Table of Contents | ||
---|---|---|
|
Overview
In VoipNow, there are three distinct methods that you can use to set up the costs associated with a channel:
- clone the costs already defined for another channel
- upload a cost file in
.csv
format - manually add the costs using the interface
Clone channel costs
To automate the process, you can copy the costs previously defined for another channel. This feature is particularly useful if you have just created a new channel and you want to copy the area codes defined for an existing one. You will be able to manually add other costs or edit current costs after cloning.
To copy costs that have already been defined for another channel:
- Select the Import costs from another channel checkbox.
- Use the Get costs from channel drop-down list to select the channel whose costs you want to import. All channels available are displayed.
- Click OK to save settings and clone costs.
Note |
---|
Importing costs from another channel must be done carefully because this operation can affect the way in which VoipNow routes calls. Let us assume that you have manually defined the cost for area code |
The Clone Channel Costs function will only replicate the costs for area codes that are not already defined for the current channel (e.g. Let us assume that you have manually defined the cost for the area code 011
. You will import the costs from a channel that has defined area codes 01
and 011
. VoipNow will replicate the cost for area code 01
, but will not overwrite the cost for area code 011
).
Upload cost file
Note |
---|
Uploading a cost file is a risky operation because it replaces all the costs currently associated with the channel. You should disable the channel before performing this operation. |
To upload a cost file:
- Select the Agree to replace ALL channel costs checkbox.
- Choose File to upload and use the Browse button to locate it. If the cost file you are trying to upload is not valid, VoipNow will display an error message informing you about the first line that contains errors.
- Set the Field separator. This is the character used to separate the values from the
.csv
file. This field is not required. If you leave the text box empty, VoipNow assumes that the field separator is ',' (comma). - Click OK to save settings, upload the file, and replace the current channel costs.
Panel |
---|
This is an example of a valid cost file. Each line of the <Area code>, <Cost>, <Charge interval>, <Description>, <Network>, <Setup cost>, <Maximum charge> The following record is valid: 0033, 0.02, 60, Description, MobiCom, 8, 4999 This cost rule signifies that for calls prefixed with the Other examples of valid records: 043, 0.02, 60, Cheap land calls, LandTel, 0, 150 |
Manually add costs
If you want to manually define channel costs for various destinations, use the controls displayed below:
Panel | ||||
---|---|---|---|---|
| ||||
Cost <cost> <currency> / <charging_interval> seconds for call to area code <area_code>. Setup cost <amount> <currency>. Maximum charge per call <max_amount>. Network code <network_code>. Description <text> |
Where:
- <cost>: The cost charged by the channel per <charging_interval> for all calls to the <area_code>.
- <currency>: The system default currency set up in the Unified Communications → Settings → Zero Priority → Charging.
- <charging_interval>: The time interval for which the <cost> will be charged. Default: 60 seconds.
- <area_code>: The prefix of the destination phone number. This prefix indicates the Callee's geographical location. All outgoing calls routed through the channel to this area code will be charged with the specified amount.
- <amount>: A setup cost that will be charged for all calls routed through this channel to the specified <area_code>. This amount will be added to the total cost of the call. The setup cost can be 0. See the Setup Cost example below to understand how this it works.
- <max_amount>: The maximum amount that can be charged for a call, no matter its length. After reaching this sum, the call will not be disconnected. It will continue to be routed through this channel. The user will be charged just the maximum amount specified here. The maximum amount can be 0. In such conditions, the call will be practically free of charge, no matter its duration. If you do not fill in the <max_amount> box, the normal cost applies to the entire length of the call. See the Maximum Amount example below to understand how this it works
- <network_code>: Specify the code required to identify the network the destination phone number belongs to. For more details about number portability, you may check the Add and Remove Outgoing Routing Rules Group section.
- <text>: Associate a 128-character limited description to the area code cost.
You can use the +/- buttons to add or remove several call costs at the same time.
Note |
---|
If you do not add costs for all destinations, the system will not be able to route all calls. |
Examples
Simple cost
Panel |
---|
Cost |
Setup cost
Panel |
---|
If the calls to the area code are charged with The setup cost can be used at determining the best cost for routing a call. Let us assume that we have two channels with the following call costs: Channel #1 Channel #2 Taking into consideration the Average call duration parameter that was defined in the Unified Communications → Settings → Zero Priority → Charging tab, VoipNow can compute the cost for each channel and determine the most cost effective alternative to route the call using the following formula: min((setup_cost/average_call*charging_interval + call_cost)/charging_interval*average_call) For this example, if the average_call duration is 180 seconds, the results are: Channel #1 Channel #2 In conclusion, the cost of an average length call is smaller for Channel #1, even if the setup fee is bigger. VoipNow will route the calls around the average length and longer through the channel with the best cost. |
Maximum amount
Panel |
---|
A call to the area code is charged with Normally, this call would be charged with If you do not fill in the <max_amount> box, the call will be charged with the defined cost for its entire length. For the example above, the call will be charged |
4psarelated | ||
---|---|---|
| ||
Hiddenlabel |
---|
voipnow300_channels/channels_cost |
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.