---------- Forwarded message ---------- From: Uri Shacked uri.shacked@gmail.com Date: Sun, Oct 30, 2011 at 12:16 PM Subject: how to retrieve the contact username from 3xx reply? To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List" sr-users@lists.sip-router.org
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....
Anyone has an idea?
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});