<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>
&nbsp;&nbsp; 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=&quot;/usr/local/lib/openser/modules/&quot;<br>
<br>/* uncomment next line for MySQL DB support */<br>#loadmodule &quot;mysql.so&quot;<br>loadmodule &quot;sl.so&quot;<br>loadmodule &quot;tm.so&quot;<br>loadmodule &quot;rr.so&quot;<br>loadmodule &quot;maxfwd.so&quot;<br>
loadmodule &quot;usrloc.so&quot;<br>loadmodule &quot;registrar.so&quot;<br>loadmodule &quot;textops.so&quot;<br>loadmodule &quot;mi_fifo.so&quot;<br>loadmodule &quot;uri_db.so&quot;<br>loadmodule &quot;uri.so&quot;<br>loadmodule &quot;xlog.so&quot;<br>
loadmodule &quot;acc.so&quot;<br>loadmodule &quot;dispatcher.so&quot;<br># ----------------- setting module-specific parameters ---------------<br><br># ----- mi_fifo params -----<br>modparam(&quot;mi_fifo&quot;, &quot;fifo_name&quot;, &quot;/tmp/openser_fifo&quot;)<br>
<br># ----- rr params -----<br># add value to ;lr param to cope with most of the UAs<br>modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)<br># do not append from tag to the RR (no need for this script)<br>modparam(&quot;rr&quot;, &quot;append_fromtag&quot;, 0)<br>
# ----- rr params -----<br>modparam(&quot;registrar&quot;, &quot;method_filtering&quot;, 1)<br># ----- uri_db params -----<br>/* by default we disable the DB support in the module as we do not need it<br>&nbsp;&nbsp; in this configuration */<br>
modparam(&quot;uri_db&quot;, &quot;use_uri_table&quot;, 0)<br>modparam(&quot;uri_db&quot;, &quot;db_url&quot;, &quot;&quot;)<br># ----- usrloc params -----<br>modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,&nbsp;&nbsp; 0)<br>/* uncomment the following lines if you want to enable DB persistency<br>
&nbsp;&nbsp; for location entries */<br>#modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,&nbsp;&nbsp; 2)<br>#modparam(&quot;usrloc&quot;, &quot;db_url&quot;,<br>#&nbsp;&nbsp;&nbsp; &quot;mysql://openser:openserrw@localhost/openser&quot;)<br><br><br># ----- auth_db params -----<br>
/* uncomment the following lines if you want to enable the DB based<br>&nbsp;&nbsp; authentication */<br><br>#------ dispatcher params -----<br>modparam(&quot;dispatcher&quot;,&quot;list_file&quot;,&quot;/usr/local/etc/openser/dispatcher.cfg&quot;)<br>
<br><br>####### Routing Logic ########<br><br><br># main request routing logic<br><br>route{<br><br>&nbsp;&nbsp;&nbsp; log(1,&quot;This is the another log message \n&quot;);&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; xlog(&quot;L_INFO&quot;, &quot;SIP Request: method [$rm] from [$fu] to [$tu]\n&quot;);<br>
<br><br>&nbsp;&nbsp;&nbsp; if (!mf_process_maxfwd_header(&quot;10&quot;)) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; ds_select_dst(&quot;2&quot;,&quot;4&quot;);<br><br>&nbsp;&nbsp;&nbsp; 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>