This feature only works with  a mysql database, not with flat files.
 
This was the response to my question about this same issue some time ago.
 
http://lists.iptel.org/pipermail/serusers/2005-June/021361.html
 
Regards,
Ricardo.--
-----Mensaje original-----
De: Tony Baartman [mailto:bart@global.co.za]
Enviado el: Martes, 06 de Septiembre de 2005 18:40
Para: 'Ricardo Martinez'; serusers@lists.iptel.org
Asunto: RE: [Serusers] IP Authentication

Thanks, looks spot on, thanks!

 

I seem to be battling with Syntax though:

 

I've added the following:

 

loadmodule "/usr/local/lib/ser/modules/permissions.so"

modparam("permissions", "allow_trusted", "/tmp/trust_host")

 

if (allow_trusted()) {

                        log("GOT TRUSTED HOST");

break;

};

 

Error I get:

 

0(22784) parse error (69,20-21): Can't set module parameter

 

Line 69 is the modparam entry

 

Cheers

 

 


From: Ricardo Martinez [mailto:rmartinez@redvoiss.net]
Sent: Tuesday, September 06, 2005 11:44 PM
To: 'Tony Baartman'; serusers@lists.iptel.org
Subject: RE: [Serusers] IP Authentication

 

If you mean authenticate or trust an endpoint based on the source ip,

Maybe the allow-trusted command could help you.

You can search more info in the README file from the permission module.

 

Regards,

 

Ricardo Martinez.-

 

-----Mensaje original-----
De: Tony Baartman [mailto:bart@global.co.za]
Enviado el: Martes, 06 de Septiembre de 2005 17:39
Para: serusers@lists.iptel.org
Asunto: [Serusers] IP Authentication

Hi All

 

Has anyone an idea on how to do SIP IP authentication based on originating IP??

 

Please help

 

Thanx

 

Tony