Routing

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
 
(63 intermediate revisions by 2 users not shown)
Line 1: Line 1:
How to do routing in Yate? You have to know that it is done by using messages and it can be done from one or more modules. If more than one module it is used, then the priority that is set in each configuration file associated to the module will be used. This priority will establish the order of the execution for each module in Yate.  A numerically lower priority means a higher actual priority of the route. What is useful to know is that in each module the parameters can be set without handeling the message.
 
  
And now let's see which module are in charge with routing and some how to examples:
+
Yate has multiple routing modules.  A routing module is a module that handles (sees) the [[call.route]] message.
  
{|class="wikitable"
+
You can set all routing in a single module or use a combination of modules. If more than one module is used, then the priority that is set in each configuration file determines the order of the modules processing the message. A numerically lower priority means a higher priority of the route. A module can add/modify parameters without handling the message.
!Routing modules in Yate
+
 
!How to do routing in Yate
+
This is the list of the routing modules and a [[How To's]] for each of them:
|-
+
 
|[[Regfile|Regfile]] module || [[How to register users from regfile]]
+
{|class="yate-table"
|-
+
|class="yate-header-left"|'''Routing modules in Yate'''
|[[Regular expressions]] module || [[Redirecting Calls to another User in the Regex Module]]
+
|class="yate-header-right"|'''How to do routing in Yate'''
|-
+
|[[Javascript routing]] module || [[How to do routing using javascript]]
+
|-
+
|[[register|Register module]] || [[How to register users from register]]
+
|-
+
|[[Call_Forker|Call forker]] || [[Round_Robin_Routing|How to do round-robin routing]]
+
|-
+
|[[ENUM_Routing|ENUM]] based routing
+
|
+
|-
+
|[[Clustering]] support
+
 
|-
 
|-
 +
|class="yate-content-left"|
 +
* [[Regfile|Regfile module]]
 +
Module used for autentication, registration, and routing of users from a file.
 +
* [[Regular expressions|Regular expressions module]]
 +
Module used for routing incoming and outgoing call legs.
 +
* [[Javascript module|Javascript routing module]]
 +
Javascript module is a module support for programmatically routing a call.
 +
* [[register|Register module]]
 +
Module used to write CDR(Call Detail Record) data in the database.
 +
* [[Call_Forker|Call forker module]]
 +
Module used to route a call to multiple alternative targets.
 +
* [[ENUM_Routing|ENUM route module]]
 +
Performs routing using the ENUM protocols that maps phone numbers to VoIP (or even other PSTN) resources.
 +
* [[Clustering|Cluster route module]]
 +
This module allows building clusters of servers for a single domain.
 +
* [[Late routing Module]]
 +
This module can be used whenever you need to route the calls to one or several numbers or aliases whose addresses are unknown in advance.
 +
* [[Call Counters|Call Counters Module]]
 +
This module keeps a count of active calls per user specified context and adds one or all counters to be used in routing decisions.
 +
 +
| class="yate-content-right"|
 +
* [[How to register users from regfile]]
 +
Example of register users in Regfile module.
 +
* [[Redirecting Calls to another User in the Regex Module]]
 +
Example of redirecting calls to another user.
 +
* [[How to do routing using javascript]]
 +
Examples of how to route calls from javascript module.
 +
* [[How to register users from register]]
 +
Example of how to register users from a database.
 +
* [[Round_Robin_Routing|How to do round-robin routing]]
 +
Round robin routing examples.
 +
* [[Configuring regexp and callto parameters in cluster route module]]
 +
Example of configuring parameters in cluster route module.
 +
* [[Example of forking a call using lateroute|Forking a call using lateroute]]
 +
Examples for routing calls using lateroute.
 +
* [[How to use callcounters module to count incoming calls]]
 +
Example of count incoming calls.
 +
* [[How to route and bill from a database]]
 +
Example on how to route and bill from a database.
 
|}
 
|}
 +
 +
 +
'''See also'''
 +
 +
* [[Modules| All Yate modules]]
 +
* [[Telephony]]
 +
 +
[[Category:Routing]]

Latest revision as of 11:01, 10 March 2016

Yate has multiple routing modules. A routing module is a module that handles (sees) the call.route message.

You can set all routing in a single module or use a combination of modules. If more than one module is used, then the priority that is set in each configuration file determines the order of the modules processing the message. A numerically lower priority means a higher priority of the route. A module can add/modify parameters without handling the message.

This is the list of the routing modules and a How To's for each of them:

Routing modules in Yate How to do routing in Yate

Module used for autentication, registration, and routing of users from a file.

Module used for routing incoming and outgoing call legs.

Javascript module is a module support for programmatically routing a call.

Module used to write CDR(Call Detail Record) data in the database.

Module used to route a call to multiple alternative targets.

Performs routing using the ENUM protocols that maps phone numbers to VoIP (or even other PSTN) resources.

This module allows building clusters of servers for a single domain.

This module can be used whenever you need to route the calls to one or several numbers or aliases whose addresses are unknown in advance.

This module keeps a count of active calls per user specified context and adds one or all counters to be used in routing decisions.

Example of register users in Regfile module.

Example of redirecting calls to another user.

Examples of how to route calls from javascript module.

Example of how to register users from a database.

Round robin routing examples.

Example of configuring parameters in cluster route module.

Examples for routing calls using lateroute.

Example of count incoming calls.

Example on how to route and bill from a database.


See also

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers