The issue is that upon hitting a routing failure to a specific gateway in a domain, we do not want to try the next domain but instead the next gateway in the current domain, and so on until no gateway remains and we return a 503 message. This is a common way of handling failure routes in the Dispatcher but it doesn't seem that the CarrierRoute supports it.
Ovidiu Sas-3 wrote:
carrierroute has a specific way of dealing with errors, see cr_next_domain(). http://www.kamailio.net/docs/modules/1.4.x/carrierroute.html#id2452857 You will need to populate two tables:
- carrierroute
- carrierfailureroute
Form the examples given on the README file it seems that you will need to use different domains for failure route. In the end, it is a matter of populating the cr tables in order to properly control the traffic.
Regards, Ovidiu Sas