[SR-Users] redirect client to keep original ruri
Daniel-Constantin Mierla
miconda at gmail.com
Wed Jan 25 15:16:46 CET 2012
Hello,
On 1/25/12 2:56 PM, Andrew Pogrebennyk wrote:
> Hello,
> assuming that I want to use contact from 302 response as outbound proxy
> but keep the original Request-URI, what should I do? Calling the
> revert_uri() after get_redirects() in failure_route doesn't do the trick.
an option - get the contact header from 302 in failure route via
$T_rpl($ct). Use its uri to set $du.
Alternative, set onreply_route and if it is 302 reply, take the contact
uri and add it in an avp. Use that avp in failure route.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda
More information about the sr-users
mailing list