[sr-dev] [kamailio/kamailio] usrloc: `received` optional parameter of RPC ul.add command has garbage if not set (#1586)

Victor Seva notifications at github.com
Wed Jul 11 10:37:42 CEST 2018


```
kamcmd> ul.add location 1002-test1 sip:1002-test1 at 192.168.89.82 0 -1.0 . 0 0 0
kamcmd> ul.lookup location 1002-test1                                                                                                                                                                                                                                                       
{
        AoR: 1002-test1
        Contacts: {
                Contact: {
                        Address: sip:1002-test1 at 192.168.89.82
                        Expires: permanent
                        Q: -1.000000
                        Call-ID: dfjrewr12386fd6-343 at kamailio.rpc
                        CSeq: 1
                        User-Agent: kamailio SIP Router - RPC Server
                        Received: if you get this string, you don'tcheck rpc_scan return code !!! (very bad)
                        Path: [not set]
                        State: CS_SYNC
                        Flags: 0
                        CFlags: 0
                        Socket: [not set]
                        Methods: 0
                        Ruid: ulcx-5b448e81-e67-5
                        Instance: [not set]
                        Reg-Id: 0
                        Server-Id: 0
                        Tcpconn-Id: 0
                        Keepalive: 0
                        Last-Keepalive: 0
                        Last-Modified: 0
                }
        }
}
kamcmd> ul.add location 1002-test1 sip:1002-test1 at 192.168.89.82 0 -1.0 . 0 0 0 . .
kamcmd> ul.lookup location 1002-test1
{
        AoR: 1002-test1
        Contacts: {
                Contact: {
                        Address: sip:1002-test1 at 192.168.89.82
                        Expires: permanent
                        Q: -1.000000
                        Call-ID: dfjrewr12386fd6-343 at kamailio.rpc
                        CSeq: 1
                        User-Agent: kamailio SIP Router - RPC Server
                        Received: [not set]
                        Path: [not set]
                        State: CS_SYNC
                        Flags: 0
                        CFlags: 0
                        Socket: [not set]
                        Methods: 0
                        Ruid: ulcx-5b448e81-e67-5
                        Instance: [not set]
                        Reg-Id: 0
                        Server-Id: 0
                        Tcpconn-Id: 0
                        Keepalive: 0
                        Last-Keepalive: 0
                        Last-Modified: 0
                }
        }
}
```

```
version: kamailio 5.1.4 (x86_64/linux) 
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, 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 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled with gcc 4.8.2
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1586
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180711/2b7f6c6d/attachment.html>


More information about the sr-dev mailing list