Hello,<br><br>I'm trying to setup kamailio as load balancer Behind that load balancer I'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'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'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="/usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/"<br><br>loadmodule "xlog.so"<br><br><br>
<br># ----------------- setting module-specific parameters ---------------<br>
<br>#!define WITH_DISP<br><br>#!ifdef WITH_DISP<br>loadmodule "dispatcher.so"<br>loadmodule "db_mysql.so"<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("dispatcher", "db_url","mysql://<a href="http://openser:openserrw@10.1.1.50/openser" target="_blank">openser:openserrw@10.1.1.50/openser</a>")<br>
#!endif<br><br>####### Routing Logic ########<br>route{<br>#!ifdef WITH_DISP<br>if( uri=~"sip:.*session=chat.*" ) {<br> xlog("L_DEBUG", "PoC:relaying chat session by Request URI");<br>
ds_select_dst("1", "3");<br><br> forward();<br>} else {<br> xlog("L_DEBUG", "PoC:relaying PoC Session by round-robin");<br> ds_select_dst("1", "4");<br>
forward();<br>}<br>#!else<br>xlog("L_DEBUG", "PoC: Relaying by hardcoded route");<br>t_relay("10.1.1.50", "6666");<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>