<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
seturi() just sets the request uri, then the t_replicate function
you call is sending to 2.2.2.2.<br>
<br>
You can use km_append_branch(...) which is the function to append
branches inherited from openser times. It is in the kex module:<br>
<br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules_k/kex.html#id2551404">http://kamailio.org/docs/modules/stable/modules_k/kex.html#id2551404</a><br>
<br>
Just fyi, there is an alternative of distributing the location
records using the presence mechanism, based on an IETF RFC, a
recommendation for IMS networks -- see pua_reginfo and
presence_reginfo<br>
<br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules_k/pua_reginfo.html">http://kamailio.org/docs/modules/stable/modules_k/pua_reginfo.html</a><br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules_k/presence_reginfo.html">http://kamailio.org/docs/modules/stable/modules_k/presence_reginfo.html</a><br>
<br>
Still the t_replicate() should be the simpler approach and should
work just fine with latest version.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 8/4/12 12:30 AM, Henning
Holtschneider wrote:<br>
</div>
<blockquote cite="mid:AE3A40A1-DC5C-4957-8BEA-A976FABB4621@loca.net"
type="cite">
<pre wrap="">Hello,
I'm trying to migrate an existing configuration from OpenSIPS 1.4.x to Kamailio 3.2.x. The old configuration replicates REGISTER requests to multiple servers using this code in the REGISTER routing block:
        add_sock_hdr("Local-Sock");
        add_rcv_param();
        append_branch(<a class="moz-txt-link-rfc2396E" href="sip:1.1.1.1:5060">"sip:1.1.1.1:5060"</a>);
        t_replicate(<a class="moz-txt-link-rfc2396E" href="sip:2.2.2.2:5060">"sip:2.2.2.2:5060"</a>);
        exit;