I've been using the $dd variable to apply some workarounds for NAT hairpinning problems (by forcing mediaproxy), however i just realized that 1. When the received column in the Location database isn't populated (ie the client is using stun and a lookup() is executed for that username, the $dd variable is null even though the ruri contains a vaild ip:port
This makes the $dd variable not ideal to be used to check the destination IP address of locally registered clients
Is it supposed to work this way?
As an intern solution, i was able to execute "fix_nated_register()" for ALL registrations (previously i was only executing it for nat clients)
tavis