Hello,<br><br>I&#39;m trying to setup kamailio as load  balancer  Behind that load balancer I&#39;ve a registrar and a presence server.<br><br>When I start a client for the REGISTER and subscribe messages all looks to work fine. The messages from clients are properly balanced to the backend and responses are forwarded properly to the clients.<br>

<br>However when my presence server sends a NOTIFY I find the load balancer module answers 404 message to the presence server.<br>I&#39;m thinking the problem is front-end kamailio cannot locate users.  I am quite newbie to use Kamailio for this purpose so sorry if what i&#39;m saying contains a big mistake. <br>

<br>My load balancer script looks as following:<br><br>log_facility=LOG_LOCAL0<br><br>fork=yes<br>children=4<br><br>listen=<a href="http://10.1.1.63:6666" target="_blank">10.1.1.63:6666</a><br>listen=<a href="http://10.1.1.63:5060" target="_blank">10.1.1.63:5060</a><br>


alias=<a href="http://dev.genaker.net" target="_blank">dev.myenvironment.net</a><br><br>mpath=&quot;/usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/&quot;<br><br>loadmodule &quot;xlog.so&quot;<br><br><br>

<br># ----------------- setting module-specific parameters ---------------<br>
<br>#!define WITH_DISP<br><br>#!ifdef WITH_DISP<br>loadmodule &quot;dispatcher.so&quot;<br>loadmodule &quot;db_mysql.so&quot;<br>#!endif<br><br><br><br># ----- dispatcher -----<br>#!ifdef WITH_DISP<br># Set database used for dispatcher servers. As we will use default values, no further<br>

# information is needed<br>modparam(&quot;dispatcher&quot;, &quot;db_url&quot;,&quot;mysql://<a href="http://openser:openserrw@10.1.1.50/openser" target="_blank">openser:openserrw@10.1.1.50/openser</a>&quot;)<br>
#!endif<br><br>####### Routing Logic ########<br>route{<br>#!ifdef WITH_DISP<br>if( uri=~&quot;sip:.*session=chat.*&quot; ) {<br>        xlog(&quot;L_DEBUG&quot;, &quot;PoC:relaying chat session by Request URI&quot;);<br>


        ds_select_dst(&quot;1&quot;, &quot;3&quot;);<br><br>        forward();<br>} else {<br>        xlog(&quot;L_DEBUG&quot;, &quot;PoC:relaying PoC Session by round-robin&quot;);<br>        ds_select_dst(&quot;1&quot;, &quot;4&quot;);<br>


        forward();<br>}<br>#!else<br>xlog(&quot;L_DEBUG&quot;, &quot;PoC: Relaying by hardcoded route&quot;);<br>t_relay(&quot;10.1.1.50&quot;, &quot;6666&quot;);<br>#!endif<br>}<br>~<br><br>So the questions are: Does this module need to locate users? Should I include usrloc module iin that sip proxy node in order to be able to locate the users??<br>

<br>Thanks<br>Albert<br>