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
Hi
This is part of my problem, the README.permissions file has only about four lines of info....
There was a post about using a mysql DB as the lookup, but I have no idea how to enable it, new to the world of SER :o)
Any further help muchly appreciated....
Ciao
-----Original Message----- From: Juha Heinanen [mailto:jh@tutpro.com] Sent: Wednesday, September 07, 2005 8:42 AM To: Tony Baartman Cc: 'Ricardo Martinez'; serusers@lists.iptel.org Subject: RE: [Serusers] IP Authentication
Tony Baartman writes:
modparam("permissions", "allow_trusted", "/tmp/trust_host")
permissions module does not have a parameter called "allow_trusted". see README file or source code.
-- juha