Permission doesn't match

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Permission doesn't match

Julian Santer
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:[hidden email] T=sip:[hidden email] SRC=192.168.1.46:5060 UAC=AVM FRITZ!Box Fon WLAN 7390 84.06.85 (Sep
10 2018) ID=9A0B1C90057A9126@192.168.1.46 B=<null>
Nov  8 17:10:59 Entered here due permission 52 - M=REGISTER RURI=sip:test.com F=sip:[hidden email] T=sip:[hidden email] SRC=192.168.1.46:5060 UAC=AVM
FRITZ!Box Fon WLAN 7390 84.06.85 (Sep 10 2018) ID=9A0B1C90057A9126@192.168.146 B=<null>

But this line is not matching:
Nov  8 17:35:19 M=REGISTER RURI=sip:test.com F=sip:[hidden email] T=sip:[hidden email] SRC=192.168.1.215:5060 UAC=AVM FRITZ!Box 7490 113.07.01 (Sep 11
2018) ID=5DC1E7DC326043BA@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
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users