[OpenSIPS-Users] Permission doesn't match
Bogdan-Andrei Iancu
bogdan at opensips.org
Wed Nov 14 09:20:52 EST 2018
Hi Julian,
If you do a "subnet_dump" (see
http://www.opensips.org/html/docs/modules/2.4.x/permissions.html#mi_subnet_dump),
do you see both records ?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
http://opensips.org/training/OpenSIPS_Bootcamp_2018/
On 11/08/2018 06:52 PM, Julian Santer wrote:
> Hi guys,
>
> I have some question to the permission module. We are using Opensips
> 2.2.6.
> The permissions are load from the address table located in a MySQL DB.
>
> My config looks like:
>
> ...
> else if (check_address("52", "$si", "$sp", "$proto", "$avp(ctx)", "$ua"))
> {
> xlog("L_INFO", "Entered here due permission 52 - LF_BASE");
> }
> else if (check_address("54", "$si", "$sp", "$proto", "$avp(ctx)", "$ua"))
> {
> xlog("L_INFO", "Entered here due permission 54 - LF_BASE");
> }
> ...
>
> address table:
> id grp ip mask port proto pattern context_info
> 41 52 192.168.1.0 24 0 any AVM*.06.* test
> 648 54 192.168.1.0 24 0 any AVM*.07.* test
>
> This line is matching:
> Nov 8 17:10:59 M=REGISTER RURI=sip:test.com F=sip:abc at test.com
> T=sip:abc at test.com SRC=192.168.1.46:5060 UAC=AVM FRITZ!Box Fon WLAN
> 7390 84.06.85 (Sep 10 2018) ID=9A0B1C90057A9126 at 192.168.1.46 B=<null>
> Nov 8 17:10:59 Entered here due permission 52 - M=REGISTER
> RURI=sip:test.com F=sip:abc at test.com T=sip:abc at test.com
> SRC=192.168.1.46:5060 UAC=AVM FRITZ!Box Fon WLAN 7390 84.06.85 (Sep 10
> 2018) ID=9A0B1C90057A9126 at 192.168.146 B=<null>
>
> But this line is not matching:
> Nov 8 17:35:19 M=REGISTER RURI=sip:test.com F=sip:def at test.com
> T=sip:def at test.com SRC=192.168.1.215:5060 UAC=AVM FRITZ!Box 7490
> 113.07.01 (Sep 11 2018) ID=5DC1E7DC326043BA at 192.168.1.215 B=<null>
>
> I already did a opensipsctl address reload and several times restarted
> the whole opensips service.
> Have you maybe some hint for me?
>
> Kind regards,
> Julian Santer
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list