<div dir="ltr">I see the redirect from the server to the UAC, but the UAC never (should it?) acks the server, and never tries to regoster at the other domain.<br><br>I'll try only for INVITE, then... <br><br><div class="gmail_quote">
On Fri, Aug 29, 2008 at 2:36 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
note that most of the devices are not able to handle a redirect for a REGISTER - typically they do it for INVITE.<br>
<br>
Anyhow, do you see the outgoing 302 replay with the redirect contact?<div class="Ih2E3d"><br>
<br>
Regards,<br>
Bogdan<br>
<br>
David Villasmil wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes a REGISTER<div class="Ih2E3d"><br>
<br>
On Fri, Aug 29, 2008 at 12:23 PM, Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>>> wrote:<br>
<br>
David,<br>
<br>
are you trying to redirect a REGISTER??<br>
<br>
Regards,<br>
Bogdan<br>
<br>
David Villasmil wrote:<br>
<br>
I've tried using the redirect with twinkle, but it doesn't<br>
work... my script is:<br>
<br>
if($au=~"^username.*"){<br>
xlog("L_ERR","PROXY: REDIRECT $au TO <a href="http://sip.domain.com" target="_blank">sip.domain.com</a><br></div>
<<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>> <<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>>\n");<div class="Ih2E3d"><br>
$ru = "sip:<a href="http://sip.domain.com" target="_blank">sip.domain.com</a> <<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>><br>
<<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>>";<br>
<br>
sl_send_reply("302", "Redirect to SIP provider");<br>
exit;<br>
}<br>
<br>
<br>
log output<br>
<br>
Aug 26 07:09:28 sip99 /sbin/openser[12944]: PROXY: REDIRECT<br>
username TO <a href="http://sip.yip.com.br" target="_blank">sip.yip.com.br</a> <<a href="http://sip.yip.com.br" target="_blank">http://sip.yip.com.br</a>><br>
<<a href="http://sip.yip.com.br" target="_blank">http://sip.yip.com.br</a>><br>
<br>
<br>
tshark trace<br>
<br></div>
<a href="http://192.168.1.253" target="_blank">192.168.1.253</a> <<a href="http://192.168.1.253" target="_blank">http://192.168.1.253</a>> <<a href="http://192.168.1.253" target="_blank">http://192.168.1.253</a>><div class="Ih2E3d">
<br>
-> <a href="http://sip2.domain.com" target="_blank">sip2.domain.com</a> <<a href="http://sip2.domain.com" target="_blank">http://sip2.domain.com</a>><br>
<<a href="http://sip2.domain.com" target="_blank">http://sip2.domain.com</a>> SIP Request: REGISTER<br></div>
sip:<a href="http://sip.domain.com" target="_blank">sip.domain.com</a> <<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>> <<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>><div class="Ih2E3d">
<br>
<a href="http://sip2.domain.com" target="_blank">sip2.domain.com</a> <<a href="http://sip2.domain.com" target="_blank">http://sip2.domain.com</a>><br>
<<a href="http://sip2.domain.com" target="_blank">http://sip2.domain.com</a>> -> <a href="http://192.168.1.253" target="_blank">192.168.1.253</a><br></div>
<<a href="http://192.168.1.253" target="_blank">http://192.168.1.253</a>> <<a href="http://192.168.1.253" target="_blank">http://192.168.1.253</a>> SIP Status: 100<div class="Ih2E3d"><br>
Trying (0 bindings)<br>
<a href="http://sip2.domain.com" target="_blank">sip2.domain.com</a> <<a href="http://sip2.domain.com" target="_blank">http://sip2.domain.com</a>><br>
<<a href="http://sip2.domain.com" target="_blank">http://sip2.domain.com</a>> -> <a href="http://192.168.1.253" target="_blank">192.168.1.253</a><br></div>
<<a href="http://192.168.1.253" target="_blank">http://192.168.1.253</a>> <<a href="http://192.168.1.253" target="_blank">http://192.168.1.253</a>> SIP Status: 302<div class="Ih2E3d"><br>
Redirect to SIP provider (1 bindings)<br>
<a href="http://sip2.domain.com" target="_blank">sip2.domain.com</a> <<a href="http://sip2.domain.com" target="_blank">http://sip2.domain.com</a>><br>
<<a href="http://sip2.domain.com" target="_blank">http://sip2.domain.com</a>> -> <a href="http://sip.domain.com" target="_blank">sip.domain.com</a><br></div>
<<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>> <<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>> SIP Request:<div class="Ih2E3d"><br>
REGISTER sip:<a href="http://sip.domain.com" target="_blank">sip.domain.com</a> <<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>><br>
<<a href="http://sip.domain.com" target="_blank">http://sip.domain.com</a>><br>
<br>
<br>
Why do I get the register coming from openser (<a href="http://sip2.domain.com" target="_blank">sip2.domain.com</a><br></div>
<<a href="http://sip2.domain.com" target="_blank">http://sip2.domain.com</a>> <<a href="http://sip2.domain.com" target="_blank">http://sip2.domain.com</a>>)?<div class="Ih2E3d"><br>
<br>
<br>
<br>
<br>
<br>
On Tue, Aug 26, 2008 at 10:47 AM, Bogdan-Andrei Iancu<br>
<<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>><br>
<mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a><br>
<mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>>>> wrote:<br>
<br>
Victor Pascual Ávila wrote:<br>
> On Tue, Aug 26, 2008 at 10:00 AM, Johansson Olle E<br>
<<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a> <mailto:<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>><br></div><div class="Ih2E3d">
<mailto:<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a> <mailto:<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>>>> wrote:<br>
><br>
>> And a potential security issue. The RFC says that the<br>
user has to<br>
>> approve,<br>
>> but I haven't found any such application yet.<br>
>><br>
><br>
> As Iñaki mentioned, twinkle does so.<br>
><br>
Even the old Kphone, when receiving a 3xx reply asks for a<br>
confirmation<br>
from user before doing the redirect.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><br>
<mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>>><br>
<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>
<br>
<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div>