[OpenSIPS-Users] Can opensips handle 302 redirection?
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Nov 25 15:44:32 CET 2009
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