<div dir="ltr">I am have openser installed and my expectation with the below configuration is open ser will forward the request it gets to the other servers ( dispatch.cfg ) in round robin fashion . <br><br>I mean first will goto the first serer and second to the second server and third again to first server like that..<br>
<br>My configs are like below<br><br>openser.cfg<br><br><br>children=4<br><br>/* uncomment the following lines to enable debugging */<br>debug=9<br>fork=no<br>log_stderror=yes<br>port=5060<br><br>/* uncomment and configure the following line if you want openser to <br>
bind on a specific interface/port/proto (default bind on all available) */<br>listen=udp:xxx.xxx.xxx.204:5060<br><br><br>####### Modules Section ########<br><br>#set module path<br>mpath="/usr/local/lib/openser/modules/"<br>
<br>/* uncomment next line for MySQL DB support */<br>#loadmodule "mysql.so"<br>loadmodule "sl.so"<br>loadmodule "tm.so"<br>loadmodule "rr.so"<br>loadmodule "maxfwd.so"<br>
loadmodule "usrloc.so"<br>loadmodule "registrar.so"<br>loadmodule "textops.so"<br>loadmodule "mi_fifo.so"<br>loadmodule "uri_db.so"<br>loadmodule "uri.so"<br>loadmodule "xlog.so"<br>
loadmodule "acc.so"<br>loadmodule "dispatcher.so"<br># ----------------- setting module-specific parameters ---------------<br><br># ----- mi_fifo params -----<br>modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")<br>
<br># ----- rr params -----<br># add value to ;lr param to cope with most of the UAs<br>modparam("rr", "enable_full_lr", 1)<br># do not append from tag to the RR (no need for this script)<br>modparam("rr", "append_fromtag", 0)<br>
# ----- rr params -----<br>modparam("registrar", "method_filtering", 1)<br># ----- uri_db params -----<br>/* by default we disable the DB support in the module as we do not need it<br> in this configuration */<br>
modparam("uri_db", "use_uri_table", 0)<br>modparam("uri_db", "db_url", "")<br># ----- usrloc params -----<br>modparam("usrloc", "db_mode", 0)<br>/* uncomment the following lines if you want to enable DB persistency<br>
for location entries */<br>#modparam("usrloc", "db_mode", 2)<br>#modparam("usrloc", "db_url",<br># "mysql://openser:openserrw@localhost/openser")<br><br><br># ----- auth_db params -----<br>
/* uncomment the following lines if you want to enable the DB based<br> authentication */<br><br>#------ dispatcher params -----<br>modparam("dispatcher","list_file","/usr/local/etc/openser/dispatcher.cfg")<br>
<br><br>####### Routing Logic ########<br><br><br># main request routing logic<br><br>route{<br><br> log(1,"This is the another log message \n"); <br> xlog("L_INFO", "SIP Request: method [$rm] from [$fu] to [$tu]\n");<br>
<br><br> if (!mf_process_maxfwd_header("10")) {<br> sl_send_reply("483","Too Many Hops");<br> exit;<br> }<br><br> ds_select_dst("2","4");<br><br> forward();<br>
}<br><br><br>dispatcher.cfg<br><br># $Id: dispatcher.list 3662 2008-02-07 13:06:00Z miconda $<br># dispatcher destination sets<br>#<br><br># line format<br># setit(integer) destination(sip uri) flags (integer, optional)<br>
<br># proxies<br>2 sip:xx.xx.xxx.137:5080<br>2 sip:xxx.xxx.xx.59:5080<br><br><br>continously it goes to 59 only it never goes to 137 .. <br><br>Any help in this would be appreciated.<br><br><br><br><br>Please <br></div>