[sr-dev] git:master: modules_k/xcap_server: Added new pseudo variable $xcapuri(name= >xuiddomain)
Juha Heinanen
jh at tutpro.com
Mon Aug 8 13:52:44 CEST 2011
Peter Dunkley writes:
> > thanks for the new pv. how about adding also name=>xuiduser? i do sip
> > request authorization like this:
> >
> > radius_proxy_authorize("$var(uri_domain)", "$var(uri_user)")
> >
> > and would thus need access to userpart of xuid.
looks like that is not strictly necessary, since userpart can be
accessed via {uri.user} transformation. the same holds for domain:
$xcapuri(u=>data) = $hu;
$var(uri) = $xcapuri(u=>xuid);
$var(uri_user) = $(var(uri){uri.user});
$var(uri_domain) = $(var(uri){uri.host});
-- juha
More information about the sr-dev
mailing list