I know this is an old thread, but I'm having a strange issue like this with trustedDump and trustedReload in permissions module.
I compiled latest git:
I can only reload trusted data by restart kamailio
and when I do trustedDump command, i get strange output like:
root@ua01-proxy01:~# kamctl kamcmd permissions.trustedDump
{
table: 27
item: {
ip: 10.10.5.112úæ¼ÿÿÿÿÿÿÿÿ
proto: 0
pattern: NULL
tag: peer
}
table: 31
item: {
ip: 10.10.1.112(‘¹‚÷m»‚jÉUŠ´'æ
-_-+-: 0
-a++e_+: NULL
+ag: -ee_
}
+ab+e: 48
i+e+: {
i-: 192.168.159.10
-_-+-: 0
-a++e_+: NULL
+ag: -ee_
}
+ab+e: 70
i+e+: {
i-: 192.168.157.10
-_-+-: 0
-a++e_+: NULL
+ag: -ee_
}
+ab+e: 74
i+e+: {
i-: 192.168.101.154
-_-+-: 0
-a++e_+: NULL
+ag: f_01
}
+ab+e: 75
i+e+: {
i-: 192.168.101.155
-_-+-: 0
-a++e_+: NULL
+ag: f_02
}
}
with reload i get:
root@ua01-proxy01:~# kamctl kamcmd permissions.trustedReload
error: 500 - Reload failed.
and kamailio log shows:
Apr 22 10:16:21 ua01-proxy01 /usr/sbin/kamailio[20252]: ERROR: permissions [trusted.c:78]: reload_trusted_table(): no connection to database
Apr 22 10:16:25 ua01-proxy01 /usr/sbin/kamailio[20252]: ERROR: permissions [trusted.c:78]: reload_trusted_table(): no connection to database
I'm using postgres (not sure if that matters).
Can someone test this and see if it's not just me?
Thanks,
V