Redirecting Calls to another User in the Regex Module

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
Example of redirecting calls to another user.
 +
 +
===Configuration files===
 +
 
In [[Regular expressions|regexroute.conf]]:
 
In [[Regular expressions|regexroute.conf]]:
  
Line 8: Line 12:
 
  password=pass_secret
 
  password=pass_secret
  
Routing priorities:
+
=== Setting routing priorities===
 +
 
 
* regexroute.conf: i.e. preroute=10 route=10  
 
* regexroute.conf: i.e. preroute=10 route=10  
 
* regfile.conf: i.e. preroute=50 route=50  
 
* regfile.conf: i.e. preroute=50 route=50  
 +
 +
=== Explanation priorities===
  
 
YATE will start routing with regexroute.conf (highest priority, as it has the '''lowest number'''!). There the number ''123456'' matches, changes the called parameter to ''johndoe'' and returns. As the number has not been routed yet, YATE tries the files with the lower routing priority, now trying to route ''johndoe''. ''johndoe'' is found in regfile.conf, and the originally called number ''123456'' is routed to the user ''johndoe''.  
 
YATE will start routing with regexroute.conf (highest priority, as it has the '''lowest number'''!). There the number ''123456'' matches, changes the called parameter to ''johndoe'' and returns. As the number has not been routed yet, YATE tries the files with the lower routing priority, now trying to route ''johndoe''. ''johndoe'' is found in regfile.conf, and the originally called number ''123456'' is routed to the user ''johndoe''.  
  
 +
=== Different scenario===
 +
 +
This configuration can be done also, if instead of using regfile.conf, you use the database module (register.conf), with the priorities set accordingly.
 +
 +
 +
'''See also'''
 +
 +
* [[Register | Register module]]
 +
* [[Routing]]
 +
* [[How To's]]
  
Naturally, instead of regfile.conf you can use the database module (register.conf), with the priorities set accordingly.
+
[[Category:Routing]] [[Category:Call redirecting]]

Latest revision as of 16:58, 31 October 2013

Example of redirecting calls to another user.

Contents

[edit] Configuration files

In regexroute.conf:

^123456$=return;called=johndoe 

In regfile.conf:

[johndoe]
password=pass_secret

[edit] Setting routing priorities

  • regexroute.conf: i.e. preroute=10 route=10
  • regfile.conf: i.e. preroute=50 route=50

[edit] Explanation priorities

YATE will start routing with regexroute.conf (highest priority, as it has the lowest number!). There the number 123456 matches, changes the called parameter to johndoe and returns. As the number has not been routed yet, YATE tries the files with the lower routing priority, now trying to route johndoe. johndoe is found in regfile.conf, and the originally called number 123456 is routed to the user johndoe.

[edit] Different scenario

This configuration can be done also, if instead of using regfile.conf, you use the database module (register.conf), with the priorities set accordingly.


See also

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers