|
Home Resources Products
Developers |
Main • Lateroute
Late Route (Yate 2)This module can be used whenever you need to route the calls to one or several numbers or aliases whose addresses are not known in advance - like the phones or clients registered to Yate. A very common usage is in forking the call to several numbers since when building the fork only the numbers are known - not their currently registered location. Other common use is the handling of some ENUM routes pointing back to PSTN. [general] ; Global settings of the late routing module ; enabled: boolean: Enable late routing module operation ;enabled=true if the list of prefixes is not empty ; priority: int: Priority of call.execute handler ;priority=75 ; types: list: Comma separated list of target types to be late routed ; For each target of the form type/NNN a route request for NNN will be made ; The "pstn" and "voice" types must be enabled in the ENUM module ;types=lateroute,route,pstn,voice The regexp and called parameters are obsolete and must not be used in new configurations. Example:regexroute.conf holds: [default] ^100$=fork lateroute/201 | lateroute/202 | sip/sip:\0@my.gateway The call will first attempt to reach the 201 number through whatever routing possible - usually some form of registration. Then it will repeat for number 202 and only finally it will be directed to 100 at the gateway. Exact route and parameters for 201 and 202 don't have to be known in advance. How it worksThe late routing module allows making a routing decision late in Yate's message flow. Routing is possible in the call.execute message, setting a module for the outbound call leg. The module works by intercepting specific call.execute messages (based on the callto parameter) and redispatching the message as call.route. If the routing succeeds the callto parameter is replaced with the result of routing and the message is allowed to continue processing. Any parameters added or modified during routing will reach the outbound channel as expected. NOTE: No prerouting stage takes place. Prerouting is assumed to have already happened. NOTE: Take care to avoid routing loops. Take extra care to avoid routing loops when multiple servers are involved since forwarding loop avoidance information may be impossible for the interconnect protocol. |
3 May 2010: 8 March 2010: 6-7 February 2010: 2 Nov 2009: 6 Aug 2008: 4 Aug 2008: 10 Jul 2008: Feb 2008: 21 Jan 2008: 3 September: 14 August: 16 April: 25 September: 25 September: 11 July 2006: 10 July 2006: June 1st 2006: |