<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(&quot;REGISTER&quot;)) {</div>
<div>                        # Uncomment this if you want to use digest authentication<br>                        if (!www_authorize(&quot;&quot;, &quot;subscriber&quot;))<br>                        {<br>                                www_challenge(&quot;&quot;, &quot;0&quot;);<br>
                                return;<br>                        };</div>
<div>                        save(&quot;location&quot;);</div>
<div>                        # REPLICATE TO OTHER SERVER<br>                        add_path_received();<br>                        t_replicate(&quot;sip:&lt;Other Server&gt;:5060&quot;);<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==&lt;IP Address Of Server Sending Registration&gt;)<br>        {<br>                xlog(&quot;LOG:Registration From Other Server\n&quot;);<br>               if (is_method(&quot;REGISTER&quot;))<br>
               {<br>                       save(&quot;location&quot;);<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">&lt;<a href="mailto:jiangjinke@gmail.com">jiangjinke@gmail.com</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">I&#39;m using the same location table with two/three proxy server, but I<br>can&#39;t make calls between the proxies.<br>
Do I have to do replication in SIP level ? I&#39;d like to do this in a<br>simple way, but if replication will make the arch more flexible, then<br>it&#39;s acceptable with a more complicate config.<br><br>I&#39;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 &lt;udp:xx.xx.xx.xx:5060&gt;...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>