<div dir="ltr">Iñaki,<br><br> I tried redirecting with your syntax<br><br>$ru = "<a href="http://sip.voipstunt.com/" target="_blank">sip.voipstunt.com</a>";<br>
send_reply("302", "Redirect to SIP provider");<br>
exit;<br>
<br>but i get an erro<br>"unknown command, missing loadmodule?"<br><br>I can't figure out what module I should load, I tried uac_redirect but that'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 <<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>> 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>> Thanks for your answer.<br>
<br>
Ok, but next time continue the thread in the maillist ;)<br>
<br>
<br>
> 2008/6/20 Iñaki Baz Castillo <a href="mailto:ibc@aliax.net">ibc@aliax.net</a>:<br>
<div class="Ih2E3d">> > AFAIK if a UAC is redirected it will not include the already used<br>
> > credentials<br>
> > in the new request to the new destination (maybe I'm wrong).<br>
><br>
</div>> Do you think is possible to force using the pseudovariables ?<br>
<br>
No, it's not possible. When a UAAC receives a 302 it generates a completely<br>
new request with destination the URI of the "Contact" in the 302.<br>
<div class="Ih2E3d"><br>
<br>
> > If you need solving NAT in your OpenSer then you need to forward the<br>
> > request<br>
> > in it after make fix NAT.<br>
><br>
</div>> 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's not possible your OpenSer makes fix<br>
the NAT (fix "Contact" and so).<br>
But maybe your SIP provider makes fix the NAT by itself, or you can try STUN<br>
in your UAC's.<br>
<div class="Ih2E3d"><br>
<br>
> > If not you could use forwarding or redirect.<br>
><br>
</div>> With redirect, openser will send an address and the uer will contact the<br>
> new address: is it correct ? (I am not shure).<br>
<br>
Yes, OpenSer replies a 302 with the new URI in the "Contact" header.<br>
<div class="Ih2E3d"><br>
<br>
> > In OpenSer to get a redirection you must set the RURI ($ru = ...) and<br>
> > reply a<br>
> > 302 to the user.<br>
><br>
</div>> Can you send ma a routine syntax ?<br>
> 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 = "<a href="http://sip.voipstunt.com" target="_blank">sip.voipstunt.com</a>";<br>
send_reply("302", "Redirect to SIP provider");<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>