-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve Quick Start documentation (#165)
* Improve Quick Start documentation
- Loading branch information
1 parent
14620f3
commit 313b757
Showing
15 changed files
with
681 additions
and
2,279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
|
||
.. _quick_start_chapter2: | ||
|
||
================ | ||
Additional Route | ||
================ | ||
|
||
In this Chapter we'll improve basic configuration that is described in :ref:`Chapter 1 <quick_start_chapter1>` above by adding new :ref:`Dialpeers <dialpeers>` that will help to spend less money for calling to the alternative routes. | ||
|
||
In our new example the same :ref:`Vendor <contractors>` (Contractor B from basic configuration) proposed us special price for all calls that will be made to the numbers that start from **38048** (code of Odesa region in Ukraine). | ||
|
||
.. mermaid:: | ||
|
||
graph LR | ||
gw1[Customer gw</br> IP 127.0.0.1] | ||
gw2[Vendor Gateway B</br>IP 128.0.0.1] | ||
subgraph yeti[Yeti SBC] | ||
destination380[Destination</br>prefix: 380</br>rate:1.5] | ||
dialpeer380[Dialpeer</br>prefix: 380</br>rate:1.0] | ||
dialpeer38048[Dialpeer</br>prefix: 38048</br>rate:0.5] | ||
end | ||
|
||
|
||
gw1 -->|Call to <b>380</b>662296132</br> rate $1.5/minute| destination380 | ||
destination380 --> dialpeer380 | ||
dialpeer380 -->|Call to <b>380</b>662296132</br> rate $1.0/minute| gw2 | ||
|
||
gw1 -->|Call to <b>38048</b>7860570</br> rate $1.5/minute| destination380 | ||
destination380 --> dialpeer38048 | ||
dialpeer38048 -->|Call to <b>38048</b>7860570</br> rate $0.5/minute| gw2 | ||
|
||
linkStyle 0 stroke-width:2px,fill:none,stroke:green; | ||
linkStyle 1 stroke-width:2px,fill:none,stroke:green; | ||
linkStyle 2 stroke-width:2px,fill:none,stroke:green; | ||
linkStyle 3 stroke-width:2px,fill:none,stroke:blue; | ||
linkStyle 4 stroke-width:2px,fill:none,stroke:blue; | ||
linkStyle 5 stroke-width:2px,fill:none,stroke:blue; | ||
|
||
|
||
1. Creation of additional Dialpeer | ||
================================== | ||
|
||
At the first step we'll configure one additional :ref:`Dialpeer <dialpeers>` that should be associated with :ref:`Routing Group <routing_group>`, :ref:`Vendor <contractors>`, :ref:`Vendor's Account <accounts>` and :ref:`Vendor's Gateway <gateways>` that were configured in :ref:`Chapter 1 <quick_start_chapter1>` above. In our example we use **38048** as **Prefix** and we'll pay 0.5 monetary unit per minute. | ||
|
||
======================= ===================================== | ||
Object to create Attributes | ||
======================= ===================================== | ||
Dialpeer * Prefix: 38048 | ||
* Enabled: True | ||
* Routing Group: My RoutingGroup | ||
* Vendor: Contractor B | ||
* Account: Account B | ||
* Initial Rate: 0.5 | ||
* Next Rate: 0.5 | ||
* Gateway: Gateway B | ||
======================= ===================================== | ||
|
||
|
||
2. Test the call | ||
================ | ||
|
||
For the call testing it is necessary to fill :ref:`Routing Simulation <routing_simulation>` form and to press **Simulate routing** button. | ||
|
||
============================== ===================== | ||
Field name Value | ||
============================== ===================== | ||
Remote ip 127.0.0.1 | ||
Remote port 10000 | ||
Src number 001234567890 | ||
Dst number 380487860570 | ||
============================== ===================== | ||
|
||
As a result two records will be shown, where the first record is an actual record of Call Profile that will be send to the Yeti/SEMS node for making call. This Call Profile has Initial and Next Rates of Dialpeer that was newly created. Full log of call processing also will be shown under the resulting records. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
.. _quick_start_chapter3: | ||
|
||
=============================== | ||
Additional termination provider | ||
=============================== | ||
|
||
In this Chapter we'll add additional local termination partner(Vendor 2) who providing route to **38048705** prefix with price **$0.2 per minute**. We also will provide better price to this destination for customer. Configuration based on :ref:`Chapter 2 <quick_start_chapter2>` | ||
|
||
.. mermaid:: | ||
|
||
graph LR | ||
gw1[Customer gw</br> IP 127.0.0.1] | ||
gw2[Vendor gw</br>IP 128.0.0.1] | ||
gw3[Vendor2 gw</br>IP 129.0.0.1] | ||
|
||
subgraph yeti[Yeti SBC] | ||
subgraph Rateplan | ||
destination380[Destination</br>prefix: 380</br>rate:1.5] | ||
destination38048705[Destination</br>prefix: 38048705</br>rate:1.0] | ||
end | ||
subgraph RoutingPlan | ||
dialpeer380[Dialpeer</br>prefix: 380</br>rate:1.0] | ||
dialpeer38048[Dialpeer</br>prefix: 38048</br>rate:0.5] | ||
dialpeer38048705[Dialpeer</br>prefix: 38048705</br>rate:0.2] | ||
end | ||
|
||
end | ||
|
||
|
||
gw1 -->|Call to <b>380</b>662296132</br> rate $1.5/minute| destination380 | ||
destination380 --> dialpeer380 | ||
dialpeer380 -->|Call to <b>380</b>662296132</br> rate $1.0/minute| gw2 | ||
|
||
gw1 -->|Call to <b>38048</b>7050321</br> rate $1.5/minute| destination380 | ||
destination380 --> dialpeer38048 | ||
dialpeer38048 -->|Call to <b>38048</b>7050321</br> rate $0.5/minute| gw2 | ||
|
||
gw1 -->|Call to <b>38048705</b>0321</br> rate $1.0/minute| destination38048705 | ||
destination38048705 --> dialpeer38048705 | ||
dialpeer38048705 -->|Call to <b>38048705</b>0321</br> rate $0.2/minute| gw3 | ||
|
||
linkStyle 0 stroke-width:2px,fill:none,stroke:green; | ||
linkStyle 1 stroke-width:2px,fill:none,stroke:green; | ||
linkStyle 2 stroke-width:2px,fill:none,stroke:green; | ||
linkStyle 3 stroke-width:2px,fill:none,stroke:blue; | ||
linkStyle 4 stroke-width:2px,fill:none,stroke:blue; | ||
linkStyle 5 stroke-width:2px,fill:none,stroke:blue; | ||
linkStyle 6 stroke-width:2px,fill:none,stroke:violet; | ||
linkStyle 7 stroke-width:2px,fill:none,stroke:violet; | ||
linkStyle 8 stroke-width:2px,fill:none,stroke:violet; | ||
|
||
|
||
|
||
|
||
1. Creation of new Vendor and Account | ||
===================================== | ||
|
||
At the first step we'll configure one additional :ref:`Contractor <contractors>` and :ref:`Account <accounts>` for it | ||
|
||
======================= =========================== | ||
Object to create Attributes | ||
======================= =========================== | ||
Contractor * Name: Vendor2 | ||
* Enabled: True | ||
* Vendor: True | ||
* Customer: False | ||
|
||
Account * Name Vendor2 Account | ||
* Contractor: Vendor2 | ||
* Max Balance: 100 | ||
======================= =========================== | ||
|
||
|
||
|
||
2. Creation of new termination Gateway | ||
====================================== | ||
|
||
At the second step we'll configure one additional termination :ref:`Gateway <gateways>` that will be linked to Vendor2 | ||
|
||
======================= =========================== | ||
Object to create Attributes | ||
======================= =========================== | ||
Gateway * Name: Vendor2 Gateway | ||
* Contractor: Vendor2 | ||
* Enabled: True | ||
* Allow origination: False | ||
* Allow termination: True | ||
* Host: 129.0.0.1 | ||
======================= =========================== | ||
|
||
|
||
3. Creation of additional Dialpeer | ||
================================== | ||
|
||
At the third step we'll configure one additional :ref:`Dialpeer <dialpeers>` to route calls to prefix **38048705** via new termination gateway with price $0.2 per minute. | ||
|
||
|
||
======================= ================================= | ||
Object to create Attributes | ||
======================= ================================= | ||
Dialpeer * Prefix: 38048705 | ||
* Enabled: True | ||
* Routing Group: My RoutingGroup | ||
* Vendor: Vendor2 | ||
* Account: Vendor2 Account | ||
* Initial Rate: 0.2 | ||
* Next Rate: 0.2 | ||
* Gateway: Vendor2 Gateway | ||
======================= ================================= | ||
|
||
|
||
4. Test the call | ||
================ | ||
|
||
For the call testing it is necessary to fill :ref:`Routing Simulation <routing_simulation>` form and to press **Simulate routing** button. | ||
|
||
============================== ===================== | ||
Field name Value | ||
============================== ===================== | ||
Remote ip 127.0.0.1 | ||
Remote port 10000 | ||
Src number 001234567890 | ||
Dst number 380487050321 | ||
============================== ===================== | ||
|
||
As a result two records will be shown, where the first record is an actual record of Call Profile that will be send to the Yeti/SEMS node for making call. This Call Profile uses Gateway C for termination the call. Full log of call processing also will be shown under the resulting records. | ||
|
||
.. note:: | ||
|
||
If you don't see necessary results, please, make sure that you enter everything correctly. |
Oops, something went wrong.