[OpenSIPS-Devel] Proposal for change in permissions module

Saúl Ibarra Corretgé saul at ag-projects.com
Tue Sep 27 12:49:03 CEST 2011


While working with the permissions module I ran across the case where I'd do a check_address(...) but the group id wouldn't exist. AFAIS in the code, there are only 2 possible return values: 1 if a match was found, or -1 if it wasn't found.

I'd like to add a new return code, -2 which would be returned if the group id being checked doesn't exist. This way the script writer could decide if the fact that the group doesn't exist is the same as the ip/mask/... not matching in an *existing* group.

If there is no objection I'll make a patch and submit it to the tracker.

Thanks and regards,

Saúl Ibarra Corretgé
AG Projects

More information about the Devel mailing list