[Users] Availability Of the $dd Pseudo Variable
Tavis P
tavis.lists at galaxytelecom.net
Tue Apr 25 19:11:51 CEST 2006
Klaus Darilion wrote:
> 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
>
Ahh, thank you
How would you recommend to check for null values? The only method i've
found so far is doing a regex match
>> 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 sr-users
mailing list