[SR-Users] how to retrieve the contact username from 3xx reply?
Alex Balashov
abalashov at evaristesys.com
Sun Oct 30 11:49:16 CET 2011
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/
More information about the sr-users
mailing list