On 10/30/2011 06:19 AM, Uri Shacked wrote:
I need to store the user i get from the 301 reply to an AVP and use it afterwards in another route.
How can i retrieve the contact from the 3xx reply?
uac_redirect does not have this option and t_load_contacts does not work for me as well....
This can be done with the use of $T_rpl(...) and some transformations.
Try this:
$var(contact) = $T_rpl($ct); $var(contact) = $(var(contact){nameaddr.uri}); $var(user) = $(var(contact){uri.user});