[OpenSIPS-Users] Can opensips handle 302 redirection?

John Quick John.Quick at smartvox.co.uk
Wed Nov 25 15:58:14 CET 2009


Doh! I should have seen that module. (But there are so many of them!).

Thanks guys. Uac_redirect looks like it has what I need.

By the way, I found one of my errors in the processing destination set branches problem - it was
missing t_on_branch("1"). Yet another Homer Simpson moment.

Regards
John

> -----Original Message-----
> From: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro]
> Sent: 25 November 2009 14:45
> To: John.Quick at smartvox.co.uk; OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] Can opensips handle 302 redirection?
> 
> Hi John,
> 
> yes, it can locally handle the 3xx replies - see the uac_redirect
> module, the get_Redirects() function:
> 
> http://www.opensips.org/html/docs/modules/devel/uac_redirect.html#id228502
> 
> Regards,
> Bogdan
> 
> John Quick wrote:
> > Is it possible for opensips to trap a "302 Temporarily moved" reply following an INVITE? I would
> like
> > to check if the requested new Contact address contained in the reply packet is acceptable. If it
> is,
> > opensips will add a new branch and drop the 302 response. If it is not then I would want to
> redirect
> > the call to a media server or voicemail server to inform the caller of the problem.
> >
> > I have already tried several ideas using onreply_route and failure_route, but neither of these
> route
> > blocks has both access to the $ct.fields(uri) of the reply (where the requested divert address is
> > stored) and the capability of appending a new branch.
> >
> > I also tried using dialog values to store $ct.fields(uri) in onreply_route and then fetch the
> value
> > back again in failure_route, but it returns <null>. ($DLG_status is shown as 1 in both onreply
> and
> > failure route blocks even if I call create_dialog() before relaying the Invite).
> >
> > Any help greatly appreciated.
> >
> > John Quick
> >
> > P.S. I got no response to my last question about processing the uri of each branch in a
> destination
> > set returned by exec_dset(). Can anyone help with that?
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
> 
> 
> --
> Bogdan-Andrei Iancu
> www.voice-system.ro





More information about the Users mailing list