<div>Hi!This my openser.cfg;I've 2 asteriskathome with openser installed;I want to copy the authentificated sip registration from one box to another and have always the same Sip registered in all 2 box, so if one box falls down the other can run without reinitialized all the sips (like Phoner..cubix...and also IP phones...)....I'm using vrrpd...12 is the master, 11 is the slave, 200 is the virtual IP(this point to the master in the first case..and all Sip proxies&nbsp;like the phoner or cubix points to the master..(I can set only 1 proxy.. 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.251.200/" target="_blank">192.168.251.200</a> ..in x-lite I can set more proxies and I'vent problems..)(for this I must use openser..)</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>This is the openser on the &quot;slave&quot; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.251.11/" target="_blank">192.168.251.11</a></div>
<div>&nbsp;</div>
<div>
<p># SCRIPT PER COPIARE LO STATO DELLE REGISTRAZIONI DEI SIP DAL .11 al .12 </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<br>log_stderror=no # (cmd line: -E)<br>listen=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.251.12/" target="_blank">192.168.251.12 
</a><br>listen=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.251.11/" target="_blank">192.168.251.11 </a><br>listen=192.1668.251.200<br>port=5060<br>children=5<br>dns=no<br>rev_dns=no<br># ------------------ module loading ---------------------------------- 
</p>
<p>loadmodule &quot;modules/mysql/mysql.so&quot;<br>loadmodule &quot;modules/sl/sl.so&quot;<br>loadmodule &quot;modules/tm/tm.so&quot;<br>loadmodule &quot;modules/maxfwd/maxfwd.so&quot;<br>loadmodule &quot;modules/usrloc/usrloc.so&quot; 
<br>loadmodule &quot;modules/registrar/registrar.so&quot;<br>loadmodule &quot;modules/auth/auth.so&quot;<br>loadmodule &quot;modules/auth_db/auth_db.so&quot;</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;&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.168.251.12/" target="_blank">
 192.168.251.12</a>) {<br>&nbsp;&nbsp;&nbsp;&nbsp;t_replicate(&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.251.12/" target="_blank">192.168.251.12</a>&quot;, &quot;5060&quot;);<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>
<p>&nbsp;</p>
<p>This is the openser on the&nbsp;&quot;master&quot; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.251.12/" target="_blank">192.168.251.12</a> </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p># SCRIPT PER COPIARE LO STATO DELLE REGISTRAZIONI DEI SIP DAL .12 al .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<br>log_stderror=yes # (cmd line: -E)<br>listen=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.251.12/" target="_blank">
 192.168.251.12</a><br>listen=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.251.11/" target="_blank">192.168.251.11 </a><br>listen=192.1668.251.200<br>port=5060<br>children=5<br>dns=no<br>
rev_dns=no </p>
<p># ------------------ module loading ----------------------------------</p>
<p>loadmodule &quot;modules/mysql/mysql.so&quot;<br>loadmodule &quot;modules/sl/sl.so&quot;<br>loadmodule &quot;modules/tm/tm.so&quot;<br>loadmodule &quot;modules/maxfwd/maxfwd.so&quot;<br>loadmodule &quot;modules/usrloc/usrloc.so&quot; 
<br>loadmodule &quot;modules/registrar/registrar.so&quot;<br>loadmodule &quot;modules/auth/auth.so&quot;<br>loadmodule &quot;modules/auth_db/auth_db.so&quot;</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;&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.168.251.11/" target="_blank">
 192.168.251.11</a>) {<br>&nbsp;&nbsp;&nbsp;&nbsp;t_replicate(&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.251.11/" target="_blank">192.168.251.11</a>&quot;, &quot;5060&quot;);<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>
<p>If I run the following command... I've problems with resolution of&nbsp;IP addresses...&nbsp;how can I resolve this problem??????????</p>
<p>100000000000000000000000000000000000000000000000000000 thanks.....................help me please!!!!!I'm becoming crazy...</p></div>
<div>&nbsp;</div>
<div>[root@asterisk12 ~]# tail -f /var/log/messages<br>Jun 21 03:33:43 asterisk12 openser: WARNING: fix_socket_list: could not rev. resolve <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.251.11/" target="_blank">
192.168.251.11</a><br>Jun 21 03:33:43 asterisk12 openser: WARNING: fix_socket_list: could not rev. resolve <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.251.200/" target="_blank">192.168.251.200 
</a><br>Jun 21 03:33:43 asterisk12 openser[19037]: Maxfwd module- initializing<br>Jun 21 03:33:43 asterisk12 openser[19037]: AUTH module - initializing<br>Jun 21 03:33:43 asterisk12 openser[19037]: AUTH_DB module - initializing 
<br>Jun 21 03:33:43 asterisk12 openser[19037]: INFO: udp_init: SO_RCVBUF is initially 110592<br>Jun 21 03:33:43 asterisk12 openser[19037]: INFO: udp_init: SO_RCVBUF is finally 221184<br>Jun 21 03:33:43 asterisk12 openser[19037]: INFO: udp_init: SO_RCVBUF is initially 110592 
<br>Jun 21 03:33:43 asterisk12 openser[19037]: INFO: udp_init: SO_RCVBUF is finally 221184<br>Jun 21 03:33:43 asterisk12 openser[19037]: ERROR: udp_init: bind(6, 0x8119a1c, 16) on <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.251.11/" target="_blank">
192.168.251.11 </a>: Cannot assign requested address<br>Jun 21 03:34:01 asterisk12 crond(pam_unix)[19040]: session opened for user root by (uid=0)<br>Jun 21 03:34:01 asterisk12 crond(pam_unix)[19040]: session closed for user root 
</div>
<div>&nbsp;</div>