[sr-dev] where is s proxy_challenge function?

Andrei Pelinescu-Onciul andrei at iptel.org
Fri Jul 2 11:14:09 CEST 2010


On Jul 01, 2010 at 21:31, Iñaki Baz Castillo <ibc at aliax.net> wrote:
> 2010/7/1 Juha Heinanen <jh at 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



More information about the sr-dev mailing list