<div>&nbsp;This is my openser.cfg;</div>
<div>I'm using it to replicate the SIP registration from one asterisk to another one (to have always the same registration status of SIP in all 2 asterisk,in case of falls, every 2 ,have the same configuration and softphones run without registration problem...(this is my purpose....)&nbsp;. 
</div>
<div>&nbsp;</div>
<div>
<p># demo script showing how to set-up usrloc replication<br># SCRIPT PER COPIARE LO STATO DELLE REGISTRAZIONI DEI SIP DAL .12 all' .11 </p>
<p># ----------- global configuration parameters ------------------------</p>
<p>debug=3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # debug level (cmd line: -dddddddddd)<br>fork=no&nbsp;&nbsp; <br>log_stderror=yes # (cmd line: -E)<br>#listen=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.16.25.11/" target="_blank">
 192.16.25.11</a> <br>port=5060&nbsp;&nbsp; <br># ------------------ module loading ---------------------------------- </p>
<p>loadmodule &quot;/usr/local/lib/openser/modules/mysql.so&quot;<br>loadmodule &quot;/usr/local/lib/openser/modules/sl.so&quot;<br>loadmodule &quot;/usr/local/lib/openser/modules/tm.so&quot;<br>#loadmodule &quot;/usr/local/lib/openser/modules/rr.so&quot; 
<br>loadmodule &quot;/usr/local/lib/openser/modules/maxfwd.so&quot;<br>loadmodule &quot;/usr/local/lib/openser/modules/usrloc.so&quot;<br>loadmodule &quot;/usr/local/lib/openser/modules/registrar.so&quot;<br>#loadmodule &quot;/usr/local/lib/openser/modules/textops.so&quot;&nbsp; 
<br>loadmodule &quot;/usr/local/lib/openser/modules/auth.so&quot;<br>loadmodule &quot;/usr/local/lib/openser/modules/auth_db.so&quot;&nbsp;&nbsp; </p>
<p># ----------------- setting module-specific parameters ---------------</p>
<p># digest generation secret; use the same in backup server;<br># also, make sure that the backup server has sync'ed time<br>modparam(&quot;auth&quot;, &quot;secret&quot;, &quot;alsdkhglaksdhfkloiwr&quot;)</p>
<p># -------------------------&nbsp; request routing logic -------------------</p>
<p># main routing logic</p>
<p>route{</p>
<p>&nbsp;# initial sanity checks -- messages with<br>&nbsp;# max_forwars==0, or excessively long requests<br>&nbsp;if (!mf_process_maxfwd_header(&quot;10&quot;)) {<br>&nbsp;&nbsp;sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);<br>&nbsp;&nbsp;return; 
<br>&nbsp;};<br>&nbsp;#if (len_gt( max_len )) {<br>&nbsp;if ( msg:len &gt; max_len ){&nbsp; <br>&nbsp;&nbsp;sl_send_reply(&quot;513&quot;, &quot;Message too big&quot;);<br>&nbsp;&nbsp;return;<br>&nbsp;};</p>
<p>&nbsp;# if the request is for other domain use UsrLoc<br>&nbsp;# (in case, it does not work, use the following command<br>&nbsp;# with proper names and addresses in it)<br>&nbsp;if (uri==myself) {</p>
<p>&nbsp;&nbsp;if (method==&quot;REGISTER&quot;) {</p>
<p>&nbsp;&nbsp;&nbsp;# verify credentials<br>&nbsp;&nbsp;&nbsp;if (!www_authorize(&quot;&quot;, &quot;subscriber&quot;)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;www_challenge(&quot;&quot;, &quot;0&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;return;<br>&nbsp;&nbsp;&nbsp;};</p>
<p>&nbsp;&nbsp;&nbsp;# if ok, update contacts and ...<br>&nbsp;&nbsp;&nbsp;save(&quot;location&quot;);<br>&nbsp;&nbsp;&nbsp;# ... if this REGISTER is not a replica from our<br>&nbsp;&nbsp;&nbsp;# peer server, replicate to the peer server<br>&nbsp;&nbsp;&nbsp;if (!src_ip==<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.16.25.12/" target="_blank">
 192.16.25.12</a>) {<br>&nbsp;&nbsp;&nbsp;&nbsp;t_replicate(&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.16.25.12/" target="_blank">192.16.25.12</a>&quot;,&quot;5060&quot;);&nbsp; <br>&nbsp;&nbsp;&nbsp;};<br>&nbsp;&nbsp;&nbsp;return;<br>&nbsp;&nbsp;}; 
<br>&nbsp;&nbsp;# do whatever else appropriate for your domain<br>&nbsp;&nbsp;log(&quot;non-REGISTER\n&quot;); <br>&nbsp;};<br>}</p></div>
<div>When I run openser happens this:</div>
<div>&nbsp;</div>
<div>[root@asterisk11 ~]# openser<br>&nbsp;0(3294) WARNING: fix_socket_list: could not rev. resolve <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.16.25.11/" target="_blank">192.16.25.11</a><br>&nbsp;0(3294) WARNING: fix_socket_list: could not rev. resolve 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.16.25.11/" target="_blank">192.16.25.11</a><br>Listening on<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; udp: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">
127.0.0.1</a> [<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">127.0.0.1</a>]:5060<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; udp: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.16.25.11/" target="_blank">
192.16.25.11</a> [<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.16.25.11/" target="_blank"> 192.16.25.11</a>]:5060<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tcp: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">
127.0.0.1</a> [<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1/" target="_blank">127.0.0.1</a>]:5060<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tcp: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.16.25.11/" target="_blank">
192.16.25.11</a> [<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.16.25.11/" target="_blank"> 192.16.25.11</a>]:5060<br>Aliases:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tcp: asterisk11.local:5060<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; udp: asterisk11.local
 :5060</div>
<div>WARNING: no fork mode&nbsp; and more than one listen address found(will use only the the first one)<br>stateless - initializing<br>&nbsp;0(0) Maxfwd module- initializing<br>&nbsp;0(0) AUTH module - initializing<br>&nbsp;0(0) AUTH_DB module - initializing 
<br>&nbsp;0(0) INFO: udp_init: SO_RCVBUF is initially 110592<br>&nbsp;0(0) INFO: udp_init: SO_RCVBUF is finally 221184<br>&nbsp;0(0) WARNING: using only the first listen address (no fork)</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>and then the windows doesn't respond.....is all stop....where is the problem?</div>
<div>10000000 thanks!</div>