<pre><code>kamcmd> ul.add location 1002-test1 sip:1002-test1@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@192.168.89.82
                        Expires: permanent
                        Q: -1.000000
                        Call-ID: dfjrewr12386fd6-343@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@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@192.168.89.82
                        Expires: permanent
                        Q: -1.000000
                        Call-ID: dfjrewr12386fd6-343@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
                }
        }
}
</code></pre>
<pre><code>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
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1586">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZSiJQHe0WYgGSMzAmYjPjAngLE7lks5uFblWgaJpZM4VKt3x">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZY0GPByABokvwS1xVqGLEfJftUpBks5uFblWgaJpZM4VKt3x.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"usrloc: `received` optional parameter of RPC ul.add command has garbage if not set (#1586)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1586"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1586",
"url": "https://github.com/kamailio/kamailio/issues/1586",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "usrloc: `received` optional parameter of RPC ul.add command has garbage if not set (#1586)",
"sections": [
{
"text": "",
"activityTitle": "**Victor Seva**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@linuxmaniac",
"facts": [
{
"name": "Repository: ",
"value": "kamailio/kamailio"
},
{
"name": "Issue #: ",
"value": 1586
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1586,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1586\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1586"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 355130865\n}"
}
],
"themeColor": "26292E"
}
]</script>