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:
git clone git://git.sip-router.org/kamailio

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






On Fri, Jun 21, 2013 at 6:56 AM, Sergey Okhapkin <sos@sokhapkin.dyndns.org> wrote:
Hmm... trusted_dump and trusted_reload work OK to me. Kamailio compiled from
git a week ago.

On Friday 21 June 2013 10:59:54 José Luis Millán wrote:
> Hi,
>
> I'm using 'allow_trusted()' from Permissions module without a problem in a
> Kamailio 4.0 routing logic. It does just work, but the MI command
> 'trusted_dump' tells me that the module is not in use:
>
> '''
> server:/home/jmillan# kamctl fifo trusted_dump
> 500 Trusted-module not in use
> '''
>
> Doing a 'trusted_reload' does neither make any query to database to
> retrieve the data.
>
> Other MI commands of same module do work correctly. ie: 'address_reload' or
> 'address_dump'
>
> Note: I have tested in a Kamailio 1.5 and the result is the same.
>
> Regards.

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users