I did a quick test on a system that has the latest kamailio from branch 4.1 and was ok -- see below. I tested db_mode=1 or 2, though.

# /usr/local/kamailio/sbin/kamctl ul show

Domain:: location table=512 records=1 max_slot=1
    AOR:: 1001
        Contact:: sip:1001@1.2.3.4:40187;transport=UDP;ob Q=
            Expires:: 38
            Callid:: dPlovWVWKd0N6fEOPvFtqjknrIAv8-g2
            Cseq:: 54907
            User-agent:: QjSimple 0.6.6 (pjproject 1.14.2/darwin)
            State:: CS_SYNC
            Flags:: 0
            Cflag:: 0
            Socket:: udp:2.3.4.5:5060
            Methods:: 8143
            Ruid:: uloc-5321b268-976-1
            Reg-Id:: 0
            Last-Keepalive:: 1394725807
            Last-Modified:: 1394725807

# /usr/local/kamailio/sbin/kamctl ul show 1001

Contact:: <sip:1001@1.2.3.4:40187;transport=UDP;ob>;q=;expires=36;flags=0x0;cflags=0x0;state=1;socket=<udp:2.3.4.5:5060>;methods=0x1FCF;user_agent=<QjSimple 0.6.6 (pjproject 1.14.2/darwin)>;reg-id=0

# /usr/local/kamailio/sbin/kamailio -v

version: kamailio 4.1.2 (x86_64/linux) 9ce73e
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 9ce73e
compiled on 19:07:28 Mar 10 2014 with gcc 4.4.7

On 13/03/14 13:24, Raphael Borges wrote:
Daniel understood, is really very strange. I will continue analyzing. 

Anyone else had the same problem? 

Thank you.


2014-03-13 9:17 GMT-03:00 Daniel-Constantin Mierla <miconda@gmail.com>:
Hello,

the code has to be reviewed, but personally I didn't have time for it yet -- hope to get to it very soon.

I don't remember big changes of dumping the cache, there were some related to database queries, the reason why I asked for db_mode.

Cheers,
Daniel


On 13/03/14 13:09, Raphael Borges wrote:
Hello, something new?

thanks.


2014-03-11 10:46 GMT-03:00 Raphael Borges <raphaelsilvaborges@gmail.com>:
this value so:

modparam("usrloc", "db_mode", 1)

thanks


2014-03-11 10:38 GMT-03:00 Daniel-Constantin Mierla <miconda@gmail.com>:

Hello,

What value do you have for db_mode parameter of usrloc module?

Cheers,
Daniel


Daniel-Constantin Mierla

On 11 Mar 2014, at 13:45, Raphael Borges <raphaelsilvaborges@gmail.com> wrote:

Hello, 

I'm having a problem with the command kamctl ul show, and I do not understand what is happening. On my server when I run just "kamctl ul show" command works fine but when I run "kamctl ul show [<username>]" an error happens. Before when I was using Kamailio 3.1, its work ok. I looked for some documentation and found nothing about this.

For example:

$ /home2/local/kamailio/sbin/kamctl ul show

Domain:: location table=512 records=1 max_slot=1
        AOR:: 2501
                Contact:: sip:2501@192.168.XXX.XXX:5060;transport=udp Q=
                        Expires:: 3594
                        ...
Domain:: aliases table=512 records=0 max_slot=0


$ /home2/local/kamailio/sbin/kamctl ul show 2501
404 AOR not found

Thanks for Help.
Best regards.

Raphael

_______________________________________________
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

_______________________________________________
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





_______________________________________________
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

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference - April 2-4, 2014, Berlin, Germany
http://www.kamailioworld.com

_______________________________________________
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



-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference - April 2-4, 2014, Berlin, Germany
http://www.kamailioworld.com