[Users] Availability Of the $dd Pseudo Variable

Klaus Darilion klaus.mailinglists at pernau.at
Tue Apr 25 09:29:46 CEST 2006


Tavis P wrote:
> 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

the destination URI will only be used if it is different than the 
request URI. Thus you can check if $dd is empty/null and use $rd

regards
Klaus

> 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
> 
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users





More information about the Users mailing list