Juha Heinanen wrote:
Kevin Brennan writes:
The problem I have with does_uri_exist() is it
matches the full uri, I
may have requests from the same user using different domains in the uri
ex. calls from PSTN would have user(a)pstn.gateway.com
i accept your point regarding calls from pstn gw provided that the user
part of the r-uri is an e.164 number, which is unique.
others could also
have user(a)sip.domain.com or just plain old user(a)domain.com depending on
how they were resolved.
sip.domain.com example i don't see valid. that can happen, but sip ua
sending the request is somehow misconfigured.
ref to
http://mit.edu/sip/sip.edu/dns.shtml
A SIP UA wanting to initiate a call to sip:bigcheese@bigu.edu will first
send a DNS SRV lookup to
bigu.edu. With a successful return, the SIP URI
may be re-written to sip:bigcheese@sipserver1.bigu.edu.
one solution might be a new
radius_does_uri_user_exist() function that
would return true if the user part exists and is unique, in which case
the domain would come back in reply item.
-- juha