Hello,<br><br>I&#39;m using kamailio as a simple load balancer.<br>My dispatcher list is something like that:<br><br>1   sip:server1:5060<br>1   sip:server2:5060<br>2   sip:server1:5060<br><br>and /etc/hosts is<br><br>10.1.1.1   server1<br>

10.1.1.2   server2<br><br>When I want to do some maintenance task in one of the servers, server2, for exemple, I simply change /etc/hosts like that:<br><br>10.1.1.1   server1<br>
10.1.1.1   server2<br><br>And all the traffic is redirected to server 1. It&#39;s a simple yet effective way to remove a server from balancing.<br>The thing is that it works on kamailio 1.5.3, but on kamailio 3.0.3 it doesn&#39;t work, since kamailio appears to resolv names only by DNS.<br>

I receive this message on startup:<br><br>Sep  1 12:04:32 install /usr/local/sbin/kamailio[16077]: ERROR: dispatcher [dispatch.c:241]: could not resolve server1<br>Sep  1 12:04:32 install /usr/local/sbin/kamailio[16077]: ERROR: dispatcher [dispatcher.c:247]: no dispatching list loaded from file<br>

Sep  1 12:04:32 install /usr/local/sbin/kamailio[16077]: ERROR: &lt;core&gt; [sr_module.c:874]: init_mod(): Error while initializing module dispatcher<br><br><br>Is there any way to avoid this behavior, and force kamailio to use /etc/hosts?<br>

<br>Thank you.<br><br clear="all">Santiago Soares<br>Fone: (41) 8488-0537<br>