Re: [OpenSER-Users] Allow_trusted problems

2007-12-17 Thread Juha Heinanen
CSB writes: > I am curious why the second field is 0 and not any. Is that expected? in db_mode = 1, proto field is coded when the in-memory table is filled and any is coded to 0. sorry that i cannot find why allow_trusted fails for you. i guess your only choice is to all some LOG statements to

Re: [OpenSER-Users] Allow_trusted problems

2007-12-17 Thread CSB
> > > Thanks for the suggestion. Have just tried that - no difference. > > try the same query you see on your db log manually to see if it really > returns something. if any is returned for proto field and null for > from > pattern, then allow_trusted should return true. > Prior to setting db_mod

Re: [OpenSER-Users] Allow_trusted problems

2007-12-16 Thread Juha Heinanen
CSB writes: > Thanks for the suggestion. Have just tried that - no difference. try the same query you see on your db log manually to see if it really returns something. if any is returned for proto field and null for from pattern, then allow_trusted should return true. in db_mode=1, you should

Re: [OpenSER-Users] Allow_trusted problems

2007-12-16 Thread CSB
>> Could anyone provide any suggestions on what I'm doing wrong? > >looks like what you do is correct and also by looking at the code i >didn't find anything obviously wrong. have you tried using db_mode = 1? >i don't myself have a 1.1 proxy to test. Thanks for the suggestion. Have just tried tha

[OpenSER-Users] Allow_trusted problems

2007-12-16 Thread Juha Heinanen
CSB writes: > Could anyone provide any suggestions on what I'm doing wrong? looks like what you do is correct and also by looking at the code i didn't find anything obviously wrong. have you tried using db_mode = 1? i don't myself have a 1.1 proxy to test. -- juha

[OpenSER-Users] Allow_trusted problems

2007-12-16 Thread CSB
For some reason I cannot get allow_trusted() to evaluate to true for a matching URI. Relevant sections of the config (OpenSER 1.1): modparam("auth_db|permissions|uri_db|usrloc|domain", "db_url", "mysql://username:[EMAIL PROTECTED]/ser") modparam("permissions", "db_mode", 0) modparam("permissions"