<div>You need to add a path to a sip message and then replicate at sip level. The code I use to do this is:</div>
<div> </div>
<div> if (is_method("REGISTER")) {</div>
<div> # Uncomment this if you want to use digest authentication<br> if (!www_authorize("", "subscriber"))<br> {<br> www_challenge("", "0");<br>
return;<br> };</div>
<div> save("location");</div>
<div> # REPLICATE TO OTHER SERVER<br> add_path_received();<br> t_replicate("sip:<Other Server>:5060");<br> exit;<br>
};</div>
<div> </div>
<div>Then on the other server you will need to catch the registraiton like this:</div>
<div> </div>
<div> # RECEIVE REGISTRATIONS FROM OTHER SERVER<br> if(src_ip==<IP Address Of Server Sending Registration>)<br> {<br> xlog("LOG:Registration From Other Server\n");<br> if (is_method("REGISTER"))<br>
{<br> save("location");<br> exit;<br> }<br> }<br><br>Hope this helps,</div>
<div> </div>
<div>Ross</div>
<div> </div>
<div> </div>
<div class="gmail_quote">2009/11/1 Jiang Jinke <span dir="ltr"><<a href="mailto:jiangjinke@gmail.com">jiangjinke@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">I'm using the same location table with two/three proxy server, but I<br>can't make calls between the proxies.<br>
Do I have to do replication in SIP level ? I'd like to do this in a<br>simple way, but if replication will make the arch more flexible, then<br>it's acceptable with a more complicate config.<br><br>I'm having the following message in my syslog when the other endpoint<br>
is not in the same proxy server which was receiving the call.<br><br>syslog content:<br>WARNING:usrloc:dbrow2info: non-local socket <udp:xx.xx.xx.xx:5060>...ignoring<br>ERROR:core:get_out_socket: no socket found<br>
ERROR:tm:update_uac_dst: failed to fwd to af 2, proto 1 (no<br>corresponding listening socket)<br>ERROR:tm:t_forward_nonack: failure to add branches<br><br>Regards,<br>Jinke Jiang<br><br>_______________________________________________<br>
Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br>