Hello,

 

Consider the following Kamailio script:

 

route {

                ….

                route(DISPATCH);

 

                route(RELAY);

}

 

 

route[DISPATCH] {

ds_select_domain("1", "8");

return;

}

 

Dispatcher Table

SetID

Destination

1

192.168.1.10

1

192.168.1.11

 

 

Algorithm 8 uses the first destination, but if it’s not available, it uses the next one.

Does the ds_select_domain function send the SIP request to the first destination or is it the responsibility of the RELAY route to do this? I believe it’s the latter, according to the documentation.

 

Assuming the above (message is relayed in the RELAY route).

When Kamailio can’t reach the first destination, how does it internally handle the failover? Because once the SIP request has been relayed to the host, the script doesn’t have any instructions anymore.