[SR-Users] redirect client to keep original ruri

Andrew Pogrebennyk apogrebennyk at sipwise.com
Wed Jan 25 16:09:47 CET 2012


Daniel, thank you - method (2) works like a charm.

On 01/25/2012 03:16 PM, Daniel-Constantin Mierla wrote:
> an option - get the contact header from 302 in failure route via
> $T_rpl($ct). Use its uri to set $du.

I was getting an error for some reason:

 0(7860) ERROR: <core> [pvapi.c:516]: error searching pvar "T_rpl"
 0(7860) ERROR: <core> [pvapi.c:720]: wrong char [$/36] in [$T_rpl($ct)]
at [7 (5)]

version: kamailio 3.1.5

> 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.

This works.

Regards,
Andrew



More information about the sr-users mailing list