[OpenSIPS-Users] [OpenSER-Users] About openser redirect - forward
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Fri Aug 29 12:23:38 CEST 2008
David,
are you trying to redirect a REGISTER??
Regards,
Bogdan
David Villasmil wrote:
> I've tried using the redirect with twinkle, but it doesn't work... my
> script is:
>
> if($au=~"^username.*"){
> xlog("L_ERR","PROXY: REDIRECT $au TO sip.domain.com
> <http://sip.domain.com>\n");
> $ru = "sip:sip.domain.com <http://sip.domain.com>";
> sl_send_reply("302", "Redirect to SIP provider");
> exit;
> }
>
>
> log output
>
> Aug 26 07:09:28 sip99 /sbin/openser[12944]: PROXY: REDIRECT username
> TO sip.yip.com.br <http://sip.yip.com.br>
>
>
> tshark trace
>
> 192.168.1.253 <http://192.168.1.253> -> sip2.domain.com
> <http://sip2.domain.com> SIP Request: REGISTER sip:sip.domain.com
> <http://sip.domain.com>
> sip2.domain.com <http://sip2.domain.com> -> 192.168.1.253
> <http://192.168.1.253> SIP Status: 100 Trying (0 bindings)
> sip2.domain.com <http://sip2.domain.com> -> 192.168.1.253
> <http://192.168.1.253> SIP Status: 302 Redirect to SIP provider (1
> bindings)
>
> sip2.domain.com <http://sip2.domain.com> -> sip.domain.com
> <http://sip.domain.com> SIP Request: REGISTER sip:sip.domain.com
> <http://sip.domain.com>
>
>
> Why do I get the register coming from openser (sip2.domain.com
> <http://sip2.domain.com>)?
>
>
>
>
> On Tue, Aug 26, 2008 at 10:47 AM, Bogdan-Andrei Iancu
> <bogdan at voice-system.ro <mailto:bogdan at voice-system.ro>> wrote:
>
> Victor Pascual Ávila wrote:
> > On Tue, Aug 26, 2008 at 10:00 AM, Johansson Olle E
> <oej at edvina.net <mailto:oej at edvina.net>> wrote:
> >
> >> And a potential security issue. The RFC says that the user has to
> >> approve,
> >> but I haven't found any such application yet.
> >>
> >
> > As Iñaki mentioned, twinkle does so.
> >
> Even the old Kphone, when receiving a 3xx reply asks for a
> confirmation
> from user before doing the redirect.
>
> Regards,
> Bogdan
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
More information about the Users
mailing list