[OpenSER-Devel] location issues

Daniel-Constantin Mierla miconda at gmail.com
Fri Jun 27 09:21:13 CEST 2008



On 06/26/08 16:44, Klaus Darilion wrote:
> Is it useful to have an AoR without username?
I don't need it personally. It is why I asked.

>  Maybe AoRs without 
> username should be rejected always.
>   

I would prefer the same as well.

Cheers,
Daniel

> regards
> klaus
>
> Daniel-Constantin Mierla schrieb:
>   
>> Hello,
>>
>> there seems to be an incoherence in dealing with the AoR for location 
>> records in conjunction with use_domain 1.
>>
>> The save() from registrar function build the aor only from domain part 
>> if the user part is missing. However, when loading the records, usrloc 
>> module discards the records with empty username or use_domain=1 and 
>> empty domain. Moreover, the DB update and delete functions from usrloc 
>> expect all the time an @ in AoR when use_domain=1, doing no safe check, 
>> causing crashes. DB insert considers the AoR to be the domain when 
>> use_domain=1 and there is no @ in AoR.
>>
>> I believe the right way to go now is:
>> - when use_domain is 1 - if '@' is missing from AoR, consider all the 
>> time to be just the domain, accept to load records with empty username
>>
>> A question will be, what happens if a registration is for a domain and 
>> use_domain=0? Discard the registration request? I don't recall now why 
>> and when registrations for domains were included, but they might be useful.
>>
>> Any comments?
>>
>> Cheers,
>> Daniel
>>
>>     
>
> _______________________________________________
> Devel mailing list
> Devel at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/devel
>
>   

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Devel mailing list