On Jul 01, 2010 at 21:31, IƱaki Baz Castillo ibc@aliax.net wrote:
2010/7/1 Juha Heinanen jh@tutpro.com:
if (!proxy_authenticate("$fd.digest_realm", "credentials")) {
What is $fd.digest_realm ?
It's a domain level avp (the 'd' in fd), from the caller avp list (the 'f'), named digest_realm.
If you write only $digest_realm then this is a shorcut for $f.digest_realm. If there is no user level avp defined with this name ($fu.digest_realm does not exist), the $f.digest_realm == $fd.digest_realm (the value from the domain list is used). So if you don't have any $f*.digest_realm defined, the above is equivalent with $digest_realm.
For more info about the different avp lists, levels (uri, user, domain and global) and how they are selected, see: http://sip-router.org/wiki/devel/avps-ser
Andrei