[OpenSIPS-Users] Permission doesn't match

Julian Santer julian.santer at rolmail.net
Thu Nov 8 11:52:13 EST 2018


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




More information about the Users mailing list