[OpenSIPS-Devel] Proposal for change in permissions module

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Sep 27 13:36:02 CEST 2011


Hi Saúl,

if in the check_address() you use group "0", it will search in all 
groups - group "0" is a kind of wild card. Will this help you ?

Regards,
Bogdan

On 09/27/2011 01:49 PM, Saúl Ibarra Corretgé wrote:
> Hi,
>
> 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
>
>
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>


-- 
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 19th of September 2011
OpenSIPS solutions and "know-how"




More information about the Devel mailing list