Hi,<br>I'm attempting to use t_replicate in order to load balance the registration proxy. However, <br>when the REGISTER packet goes to proxy2, it says "401 Unauthorized".<br><br>Both openser installations are working off of the same mysql database.
<br>The first proxy has a srv record for the domain being served, the second does not.<br><br>The first openser.cfg looks like this:<br><br> if (uri==myself) {<br> if (method=="REGISTER") {
<br> # Uncomment this if you want to use digest authentication<br> if (!www_authorize("<a href="http://voipcall.com">voipcall.com</a>", "subscriber")) {<br>
www_challenge("<a href="http://voipcall.com">voipcall.com</a>", "0");<br> exit;<br> };<br> save("location");
<br> t_replicate('proxy2');<br> exit;<br> };<br><br>the second looks like this:<br> if (uri==myself) {<br> if (method=="REGISTER") {
<br> # Uncomment this if you want to use digest authentication<br> if (!www_authorize("<a href="http://voipcall.com">voipcall.com</a>", "subscriber")) {<br>
www_challenge("<a href="http://voipcall.com">voipcall.com</a>", "0");<br> exit;<br> };<br> save("location");
<br> exit;<br> };<br><br>Both openser instances have aliases for the domain, and as I said before, are operating off of the same database backend.<br>Furthermore, if I set the sip client's sip domain so that it will register directly with proxy2, the phone registers with now problem.
<br><br>However, when the t_replicate executes,<br>syslog says this:<br>Dec 4 23:26:01 /usr/sbin/openser[15365]: check_nonce(): comparing [4574af56734dbd1d5c2c81242a74ba5cb5703c79] and [4574af56989148c2191ea66c5c3c1d75726da244]
<br>Dec 4 23:26:01 /usr/sbin/openser[15365]: pre_auth(): Invalid nonce value received<br><br>Thanks,<br>Mark<br><br>