Configuring regexp and callto parameters in cluster route module

From Yate Documentation
Jump to navigation Jump to search

This is an example on how to use cluster module to route the calls by setting parameters like regexp and callto.

Parameter regexp which is a regular expression that describes the node name match rule.

Parameter callto is used to forward the call to the target node.

Configuration parameters in cluster module

In clustering.conf file:

[general]
regexp=^[[:alnum:].-]\+$
callto=sip/sip:cluster/${called}@\0.dom.ain

In the above configuration suppose that:

The prefix equals cluster/ but the node is not local. The node name node2 is found matching against the regexp so the callto is evaluated by replacing parameters and matched strings.

Configuration for routing the call

In regexroute.conf file:

[default]
^cluster/=${sip_x-callto};billid=${sip_x-billid}


See also