[Serusers] Redirect

Greg Fausak lgfausak at gmail.com
Wed Jun 14 07:16:00 CEST 2006


I think this would basically work:

route
{
    if(is_method("INVITE"))
    {
        rewritehostport("redirect.to.com");
        sl_send_reply("302", "Moved Temporarily");
        return;
    }
    sl_send_reply("403", "Sorry");
}

-g


On 6/13/06, Anderson Alves Albuquerque <andersonaa at gmail.com> wrote:
>
>
>   I would like to see the example of ser replying with a redirect.
>
>
>
> On 6/13/06, Greg Fausak <lgfausak at gmail.com> wrote:
> > Anderson:
> >
> > Did you want an example of ser replying with a redirect (that
> > is, ser is the redirect server), or, do you want an example of
> > ser getting and responding to an external redirect?
> >
> > -g
> >
> >
> > On 6/13/06, Anderson Alves Albuquerque <andersonaa at gmail.com> wrote:
> > >
> > >
> > >  Does someone has some example with redirect in SER and could send it?
> > >
> > > --
> > > [],
> > > Anderson
> > >
> > > _______________________________________________
> > > Serusers mailing list
> > > Serusers at lists.iptel.org
> > > http://lists.iptel.org/mailman/listinfo/serusers
> > >
> > >
> > >
> >
> >
> > --
> > Greg Fausak
> > greg at thursday.com
> >
>
>
>
> --
> [],
> Anderson Alves de Albuquerque.
>
> ---------------------------------------------------------------
> E-mails: andersonalvesdealbuquerque#hotmail.com (replace #
> by @)
>              andersonaa#gmail.com (replace # by @)
>
> Telefones:
>     Residencial:          +55 (21) 2256-1612
>     Celular:                 +55 (21) 9883-0758
>     Virtual (VOIP):      +55 (21) 2598-3000   Ramal: 1100-0202
>
> ICQ:   73222660
> MSN: andersonalvesdealbuquerque#hotmail.com (replace # by
> @)
> ---------------------------------------------------------------
>
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
>


-- 
Greg Fausak
greg at thursday.com



More information about the sr-users mailing list