It does work !! I'm very happy :-) <br>Thank you so much Klaus for your help !<br>Pascal<br><br><div class="gmail_quote">On Tue, Oct 28, 2008 at 10:27 AM, Klaus Darilion <span dir="ltr"><<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">set the fr_timer to a short value (e.g. 2 seconds)<br>
<br>
klaus<br>
<br>
Pascal Maugeri schrieb:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
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>
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></div>
modparam("dispatcher", "ds_ping_from", "<a href="mailto:sip%3Afend1@10.132.184.33" target="_blank">sip:fend1@10.132.184.33</a> <mailto:<a href="mailto:sip%253Afend1@10.132.184.33" target="_blank">sip%3Afend1@10.132.184.33</a>>")<div class="Ih2E3d">
<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>
Regards,<br>
-pascal<br>
<br>
<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
</blockquote></div><br>