Hi Guys,

Anybody knows how to get the ip of the new contact of the redirect? I need it to update one xavp variable that contains the INVITE destination.

6 2017-01-20 12:44:55.138473 172.16.213.38 172.16.208.121 SIP/SDP 85 Request: INVITE sip:01152780776@172.16.208.121:5060
9 2017-01-20 12:44:55.142296 172.16.208.121 172.16.213.38 SIP 661 Status: 302 Moved temporarily | 
10 2017-01-20 12:44:55.156268 172.16.213.38 172.16.208.121 SIP 423 Request: ACK sip:01152780776@172.16.208.121:5060
16 2017-01-20 12:44:55.293349 172.16.213.38 172.16.208.111 SIP/SDP 95 Request: INVITE sip:1152780776@172.16.208.111:5060;user=phone | 

My cfg:

# Manage failure routing cases
failure_route[MANAGE_FAILURE] {
....

if (t_check_status("302")) {
                 xlog("Got a 302 - redirecting");
                 get_redirects("*:1");
                 $xavp(ip_b[$avp(current_route)]=>name) = "172.16.208.111";#Hardcoded for testing
                 xlog("Got a 302 - redirecting $hdr(Contact)");
                 route(RELAY);
                 #t_relay();
         }

Thanks in advance.

Diego.