<div dir="ltr"><p>t_replicate specifies the destination and it does not change the request, so you can not modify the user part with the t_replicate call. </p><p>You may try to change the user part of ther req-URI (rewriteuser,avps,...) and afterwards issuing the replication.</p>
<p>Hope it help,</p><p>Samuel.<br></p><br><div class="gmail_quote">2008/7/16 Pascal Maugeri &lt;<a href="mailto:pascal.maugeri@gmail.com">pascal.maugeri@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">Hum it does not look to work...<br><br>If I keep the t_replicate(&quot;<a href="mailto:sip%3Apascal@company.com" target="_blank">sip:pascal@company.com</a>&quot;) it will try resolve the destination with DNS server. I believe I should resolve first the user SIP URI with the location using USRLOC and then replicate using the location (eg.: sip:pascal@&lt;host&gt;:&lt;port&gt;) but I don&#39;t know how to do that. I haven&#39;t found anything in the module documentation for that purpose.<br>

<br>Regards,<br><font color="#888888">Pascal</font><div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Wed, Jul 16, 2008 at 3:08 PM, Iñaki Baz Castillo &lt;<a href="mailto:ibc@in.ilimit.es" target="_blank">ibc@in.ilimit.es</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
El Wednesday 16 July 2008 14:59:51 Pascal Maugeri escribió:<br>
<div>&gt; Hi<br>
&gt;<br>
&gt; Is it possible to replicate incoming SIP requests (eg. REGISTER) to another<br>
&gt; remote user SIP URI instead of host URI:<br>
&gt;<br>
&gt; For instance I want to do (having previously registered to OpenSER the user<br>
&gt; <a href="mailto:pascal.maugeri@company.com" target="_blank">pascal.maugeri@company.com</a>):<br>
&gt;<br>
</div>&gt; &nbsp; t_replicate(&quot;<a href="mailto:sip%3Apascal@company.com" target="_blank">sip:pascal@company.com</a> &lt;<a href="mailto:sip%253Apascal@company.com" target="_blank">sip%3Apascal@company.com</a>&gt;&quot;);<br>

<div>&gt;<br>
&gt; instead of<br>
&gt;<br>
&gt; &nbsp; t_replicate(&quot;sip:<a href="http://10.2.3.4:5060" target="_blank">10.2.3.4:5060</a>&quot;);<br>
&gt;<br>
&gt;<br>
&gt; I tried it with OpenSER 1.3 but I get the error message when it tries to<br>
&gt; replicate:<br>
&gt;<br>
&gt; &nbsp;3(8113) Main routing block. Method [REGISTER]<br>
&gt; &nbsp;3(8113) ERROR: mk_proxy: could not resolve hostname: &quot;<a href="http://company.com" target="_blank">company.com</a>&quot;<br>
&gt; &nbsp;3(8113) ERROR: uri2proxy: bad host name in URI<br>
</div>&gt; &lt;<a href="mailto:sip%3Apascal@company.net" target="_blank">sip:pascal@company.net</a>&lt;<a href="mailto:sip%253Apascal@company.net" target="_blank">sip%3Apascal@company.net</a>&gt;<br>
<br>
I don&#39;t know if t_replicate generates a request than runs<br>
into &quot;on_branch_route&quot;, but if that works then you could process<br>
on_branch_route, so both request run it separately and match the set URI,<br>
something as:<br>
<br>
&nbsp;t_replicate(&quot;sip:<a href="http://1.1.1.1:5060" target="_blank">1.1.1.1:5060</a>&quot;); &nbsp;&lt;-- facked URI<br>
<br>
<br>
on_branch_route[X] {<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;if $ru == &quot;sip:<a href="http://1.1.1.1:5060" target="_blank">1.1.1.1:5060</a>&quot; {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$ru = <a href="mailto:sip%253Apascal@company.com" target="_blank">sip%3Apascal@company.com</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>
<br>
}<br>
<br>
<br>
but not sure if it would work.<br>
<font color="#888888"><br>
<br>
--<br>
Iñaki Baz Castillo<br>
<a href="mailto:ibc@in.ilimit.es" target="_blank">ibc@in.ilimit.es</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a><br>
<a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
</font></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org">Users@lists.openser.org</a><br>
<a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>