Difference between revisions of "M4 Dial Peers"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 57: Line 57:
* [[M2 Routing Logic|M2 Routing Logic]]
* [[M2 Routing Logic|M2 Routing Logic]]
* [[M2 Regexp Examples|Regexp Examples]]
* [[M2 Regexp Examples|Regexp Examples]]
* [[M2 Disconect Code Changes]]
* [[M2 Disconnect Code Changes|Disconnect Code Changes]]

Revision as of 14:14, 25 June 2015

Description

Dial Peer is a logical routing entity (group of Termination Points with predefined rules) which allows to control how calls should be routed.

It consists of several rules and includes Termination Points over which calls should be routed.

Dial Peers are grouped together into Routing Groups which then are assigned to Origination Points.

In order to temporary remove a Dial Peer it can be set as inactive so it won't be used in determining a call's route.



General settings

Dial peers general.png


Stop Hunting - if call is routed through Dial Peer which has Stop Hunting enabled, then routing stops when all Termination Points in this Dial Peer fail. If Stop Hunting is disabled, then call can be routed through next Dial Peer.
Minimal Rate Margin - use only those Termination Points which generate profit (per minute) equal or higher than defined in this field. For example if user pays you 1 euro per minute when calling specific destination and Minimal Rate Margin is set to 0.3, then only Termination Points that have rate of 0.7 euro/min or cheeper will be used. User pays you 1 euro, your selfcost is 0.7 euro and you get 0.3 euro profit. Termination Points with rate higher than 0.7 euro/min would be skipped, because profit is less than 0.3 euro/min. Default value is 0, which means that you allow your minimal profit for calls to be 0 (user pays you the same as you pay to your provider). If value is negative, loss is possible.
Minimal Rate Margin Percent - same as 'Minimal Rate Margin' but instead of absolute values, you can use percentages. For example, if you pay to your provider 1 EUR/min and your Minimal Rate Margin Percent is set to 50%, then only calls with user rate equal or higher than 1.5 EUR/min are allowed to call. After 1 min of call, you will pay 1 EUR to you provider and user will pay you 1.5 EUR. Your profit will be 0.5 EUR which is 50% more of what you paid to your provider. If you Minimal Rate Margin is -30%, then you allow some losses in your calls. If you pay 1 EUR to your provider after 1 minute of call, then user should pay you 0.7 EUR or more. You will pay 1 EUR and you will get 0.7 EUR which is 30% less of what you paid.
No Follow - if checked, then only one Termination Point in this Dial Peer will be used. If call fails, then other Termination Points in this Dial Peer will not be used.


Routing by Destination/Number B

M2 dp destination by tariff.png


Destination by Regexp - describes which destinations should be allowed
Destination by Tariff - describes which destinations should be allowed for selected Tariff and matched by Destinations Mask (which is equivalent to SQL LIKE function). If you want to match all destinations in selected Tariff, then just enter % character in Destination Mask
Destination deny regexp - describes which destinations should be denied



Routing by Source/CallerID/Number A

Source regexp - describes which Source/CallerID/Number A should be allowed
Source deny regexp - which should be denied



Assigning Termination Points

Routing > Dial Peers > pressing on button in TP List column

M2 assigned termination points.png

Termination Point can be assigned to Dial Peer by pressing on ASSIGN TERMINATION POINT button (1), selecting Termination Point from Termination Points drop down list (2), setting Percent (3), Weight (4) and pressing ASSIGN button (5).
Active column show if Termination Point is active. Termination Point status can be changed in Termination Points edit page.
Pressing on Termination Points name (7) redirect to Termination Points edit page.
Pressing on Percent (8) allows it to be updated (to save it just press anywhere else).
Pressing on Weight (9) allows it to be updated (to save it just press anywhere else).
REMOVE button (10) removes Dial Peers relationship with Termination Point (not the Termination Point)

See also