Hi<br><br>We have a configuration with one dispatcher that load-balances traffic to two SIP registrars.<br><br>When I shutdown one registrar server, the failure is detected in 30 seconds approximately. Is that a normal response time ? Or should we expect shorter response times ? (I expect yes :-) ).<br>
<br>More precisely, having two target gateways named REG1 and REG2, if Is shutdown REG2 at t0:<br>- traffic (SIP REGISTER messages) will be still load-balanced to REG1 and REG2 during the first 7 seconds (t0+7seconds),<br>
- then untill t0+30seconds, traffic will be sent exclusively to REG2 (the failed gw),<br>- from t0+30s to t0+35, traffic will be sent to both gateways REG1 and REG2 again,<br>- from t0+35s traffic will be sent to REG1 exclusively.<br>
<br>During the test we see the SIP OPTIONS messages sent to both REG1 and REG2.<br><br>For the dispatcher we are using the following configuration:<br><br><div style="margin-left: 40px;">modparam("dispatcher", "list_file", "/usr/local/etc/kamailio/dispatcher.list")<br>
modparam("dispatcher", "flags", 3)<br>modparam("dispatcher", "dst_avp", "$avp(i:271)")<br>modparam("dispatcher", "grp_avp", "$avp(i:272)")<br>
modparam("dispatcher", "cnt_avp", "$avp(i:273)")<br>modparam("dispatcher", "ds_ping_method", "OPTIONS")<br>modparam("dispatcher", "ds_ping_interval", 3)<br>
modparam("dispatcher", "ds_ping_from", "<a href="mailto:sip%3Afend1@10.132.184.33">sip:fend1@10.132.184.33</a>")<br>modparam("dispatcher", "ds_probing_threshhold", 1)<br>modparam("dispatcher", "ds_probing_mode", 1)<br>
modparam("dispatcher", "force_dst", 1)<br><br>route{<br><br> ds_select_dst("1", "0");<br> xlog("L_INFO","---> $avp(i:271) $avp(i:272) $avp(i:273)");<br>
t_on_failure("1");<br> t_relay();<br><br>}<br><br>failure_route[1] {<br><br> xlog("L_INFO", "Marking GW as failed...\n");<br> ds_mark_dst("i");<br> ds_next_dst();<br>
t_on_failure("1");<br> t_relay();<br><br>}<br><br><br></div>Regards,<br>-pascal<br><br>