<div dir="ltr">Iñaki,<br><br>&nbsp;&nbsp;&nbsp;&nbsp; I tried redirecting with your syntax<br><br>$ru = &quot;<a href="http://sip.voipstunt.com/" target="_blank">sip.voipstunt.com</a>&quot;;<br>
send_reply(&quot;302&quot;, &quot;Redirect to SIP provider&quot;);<br>
exit;<br>
<br>but i get an erro<br>&quot;unknown command, missing loadmodule?&quot;<br><br>I can&#39;t figure out what module I should load, I tried uac_redirect but that&#39;s not it.<br><br>thanks<br><br>David<br><br><br><br><div class="gmail_quote">
On Fri, Jun 20, 2008 at 6:00 PM, Iñaki Baz Castillo &lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</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;">
<div class="Ih2E3d">El Viernes, 20 de Junio de 2008, Valerio Di Marino escribió:<br>
</div>&gt; Thanks for your answer.<br>
<br>
Ok, but next time continue the thread in the maillist ;)<br>
<br>
<br>
&gt; 2008/6/20 Iñaki Baz Castillo <a href="mailto:ibc@aliax.net">ibc@aliax.net</a>:<br>
<div class="Ih2E3d">&gt; &gt; AFAIK if a UAC is redirected it will not include the already used<br>
&gt; &gt; credentials<br>
&gt; &gt; in the new request to the new destination (maybe I&#39;m wrong).<br>
&gt;<br>
</div>&gt; Do you think is possible to force using the pseudovariables ?<br>
<br>
No, it&#39;s not possible. When a UAAC receives a 302 it generates a completely<br>
new request with destination the URI of the &quot;Contact&quot; in the 302.<br>
<div class="Ih2E3d"><br>
<br>
&gt; &gt; If you need solving NAT in your OpenSer then you need to forward the<br>
&gt; &gt; request<br>
&gt; &gt; in it after make fix NAT.<br>
&gt;<br>
</div>&gt; How ? Can explain better ?<br>
<br>
If a UAC receives a 302 it will generate a new INVITE. If the UAC has not<br>
configured your OpenSer as outbound proxy, the new INVITE it generates will<br>
go directly to the SIP provider, so it&#39;s not possible your OpenSer makes fix<br>
the NAT (fix &quot;Contact&quot; and so).<br>
But maybe your SIP provider makes fix the NAT by itself, or you can try STUN<br>
in your UAC&#39;s.<br>
<div class="Ih2E3d"><br>
<br>
&gt; &gt; If not you could use forwarding or redirect.<br>
&gt;<br>
</div>&gt; With redirect, openser will send an address and the uer will contact the<br>
&gt; new address: is it correct ? (I am not shure).<br>
<br>
Yes, OpenSer replies a 302 with the new URI in the &quot;Contact&quot; header.<br>
<div class="Ih2E3d"><br>
<br>
&gt; &gt; In OpenSer to get a redirection you must set the RURI ($ru = ...) and<br>
&gt; &gt; reply a<br>
&gt; &gt; 302 to the user.<br>
&gt;<br>
</div>&gt; Can you send &nbsp;ma a routine syntax ?<br>
&gt; For example, I would redirect to <a href="http://sip.voipstunt.com" target="_blank">sip.voipstunt.com</a><br>
<br>
Something like:<br>
<br>
$ru = &quot;<a href="http://sip.voipstunt.com" target="_blank">sip.voipstunt.com</a>&quot;;<br>
send_reply(&quot;302&quot;, &quot;Redirect to SIP provider&quot;);<br>
exit;<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
--<br>
Iñaki Baz Castillo<br>
<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>
</div></div></blockquote></div><br></div>