Difference between revisions of "M4 How to make first call"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 15: Line 15:
* Buy Tariff is your self-cost. Usually, you get the Buy Tariff from your Supplier in a CSV format.
* Buy Tariff is your self-cost. Usually, you get the Buy Tariff from your Supplier in a CSV format.
* Sell Tariff is a Tariff for your Users. It’s your Buy Tariff + your profit margin.  
* Sell Tariff is a Tariff for your Users. It’s your Buy Tariff + your profit margin.  
 
<br>
A Tariff consists of Rates (prices to a particular prefix).
A Tariff consists of Rates (prices to a particular prefix).
To make a call, Supplier and User Tariffs have to be created and Rates added at least for one prefix.
To make a call, Supplier and User Tariffs have to be created and Rates added at least for one prefix.
Line 26: Line 26:
* Click on RATES  
* Click on RATES  
* Click on ADD NEW RATES and add a rate to your selected prefix/destination that you plan to dial.  
* Click on ADD NEW RATES and add a rate to your selected prefix/destination that you plan to dial.  
*
<br>


Useful links:
Useful links:

Revision as of 11:49, 18 March 2024

Read this before you start

This small guide will show how to make your first call after system installation.

Before making configurations, please check the M4 Routing Logic to see the bigger picture:

Warning.pngIMPORTANT! The configuration will allow any CallerID to dial any Destination from the set IP. Adjust settings accordingly to suit your needs.

Create a tariff

Tariffs are a set of rates (prices) to different destinations.

Go to Billing > Tariffs and here you will see all tariffs grouped by Buy and Sell Tariffs:

  • Buy Tariff is your self-cost. Usually, you get the Buy Tariff from your Supplier in a CSV format.
  • Sell Tariff is a Tariff for your Users. It’s your Buy Tariff + your profit margin.


A Tariff consists of Rates (prices to a particular prefix). To make a call, Supplier and User Tariffs have to be created and Rates added at least for one prefix. Go to Billing > Tariffs

  • Click on ADD NEW TARIFF.
  • Choose a name: Test_Buy_Tariff
  • Select currency
  • Select Terminator
  • Click Create
  • Click on RATES
  • Click on ADD NEW RATES and add a rate to your selected prefix/destination that you plan to dial.


Useful links:



TERMINATOR

Create a User which will be your Supplier (will sell traffic to you). Set min/max balance for this User (example 0, 10).

Create Device for Supplier and mark it as 'Act as Termination Point', mark it Active, set Tariff for it. Set '.*' (without quotes) in Source (CallerID) Allow field. The device should be IP Auth. Enter the proper IP for this Device (where to call will go)


ROUTING

Create Dial Peer (Routing -> Dial Peers).

Set '.*' (without quotes) for 'Destination regexp' and 'Source regexp' This will allow any CallerID to any Destination.

Assign Termination Point to the Dial Peer (Routing -> Dial Peers -> TP list icon)

Create a Routing Group (Routing -> Routing Groups). Assign Dial Peer to Routing Group. (icon Routing -> Routing Groups -> Dial Peers)


ORIGINATOR

Create a User which will be your Customer (will buy traffic from you). Set min/max balance for this User (example -10, 0).

Create a Device for the Customer and mark it as 'Act as Origination Point', mark it Active, set Routing Algorithm, Routing Group and Tariff for it. Set '.*' (without quotes) in Source (CallerID) Allow field. The device should be IP Auth. Enter the proper IP for this Device (from where the call will come)

Assign proper Routing Group and Tariff for the Origination Point.


Call




Configuration video




IMPORTANT

This is a basic tutorial just to make the first call. The configuration will allow any CallerID to dial any Destination from the set IP. Adjust settings accordingly to suit your needs.



See Also