[SR-Users] Workings of the kamailio dispatcher module

Grant Bagdasarian GB at cm.nl
Tue Aug 6 15:00:08 CEST 2013


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130806/2107e83f/attachment.html>


More information about the sr-users mailing list