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});
--
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web:
http://www.evaristesys.com/