Redirecting Calls to another User in the Regex Module

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "In regexroute.conf: ^123456$=return;called=johndoe Routing priorities: * regexroute.conf: i.e. preroute=10 route=10 * regfile.conf: i.e. preroute=...")
 
Line 2: Line 2:
  
 
  ^123456$=return;called=johndoe  
 
  ^123456$=return;called=johndoe  
 +
 +
In [[regfile]]:
 +
 +
[johndoe]
 +
password=pass_secret
  
 
Routing priorities:
 
Routing priorities:

Revision as of 14:36, 4 October 2012

In regexroute.conf:

^123456$=return;called=johndoe 

In regfile:

[johndoe]
password=pass_secret

Routing priorities:

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

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.


Naturally, instead of regfile.conf you can use the database module (register.conf), with the priorities set accordingly.

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers