[SR-Users] Get ip from contact on redirect

Daniel Tryba d.tryba at pocos.nl
Fri Jan 20 17:11:32 CET 2017


On Fri, Jan 20, 2017 at 01:04:00PM -0300, Diego Nadares wrote:
> 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.

Don't know about an IP, but you get the contact in the (failure)
response with: $T_rpl($ct)
The host part of this contact is: $(T_rpl($ct){nameaddr.uri});
You'd have to do some DNS lookups to get the IP.




More information about the sr-users mailing list