[Users] Availability Of the $dd Pseudo Variable
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Apr 26 10:23:39 CEST 2006
Hi,
If not wrong, if you push a pseudo-variable that's empty to an AVP, you
get the "NULL" string - this might be useful to you - use avp_print() to
see if so.
regards,
bogdan
Tavis P wrote:
>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
>>>
>>>
>>
>>
>
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>
>
More information about the sr-users
mailing list