<h3>Description</h3>
<p>Using the DBTEXT database engine I add a couple domains to the table, issue a reload and the attempt to list the domains loaded. The output of the listing only shows the 1st entry in the domain table, however, testing with a sip client, I can confirm that all domains are actually loaded, it appears that the listing of the domains is what is at fault here.</p>
<p>domain data:</p>
<pre><code># cat domain
id(int,auto) domain(string) did(string,null) last_modified(int)
1:testing.one.two:1:1506437399
2:testing.one.three:2:1506437399
3:testing.two.one:3:1506437399
4:testing.two.two:3:1506437399
</code></pre>
<p>domain showdb</p>
<pre><code># kamctl domain showdb
[1, 'testing.one.two', '1', 1506437399]
[2, 'testing.one.three', '2', 1506437399]
[3, 'testing.two.one', '3', 1506437399]
[4, 'testing.two.two', '3', 1506437399]
</code></pre>
<p>domain show</p>
<pre><code># kamctl domain show  
{
  "jsonrpc":  "2.0",
  "result": {
    "domain": "testing.one.two",
    "did":  "1"
  },
  "id": 32341
}
</code></pre>
<p>If I add some domain attribues the output is different again, data is the same above with the addition of some domain attrs.</p>
<p>domain_attrs:</p>
<pre><code># cat domain_attrs
id(int,auto) did(string) name(string) type(int) value(string) last_modified(int)
1:1:test_name:2:test_value:1506535015
</code></pre>
<p>domain show:</p>
<pre><code># kamctl domain show
{
  "jsonrpc":  "2.0",
  "result": {
    "did":  "1",
    "attr": "test_name"
  },
  "id": 32468
}
</code></pre>
<p>I'm using the following version of kamailio, compiled from the kamailio v5.0.3 src code.</p>
<p>kamailio version:</p>
<pre><code># kamailio -V
version: kamailio 5.0.3 (x86_64/linux) 
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, 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 on 17:43:41 Sep 15 2017 with gcc 4.8.5
</code></pre>
<p>Running onCentOS 7:</p>
<pre><code># uname -a
Linux klb01.home.ie 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
</code></pre>
<p>Any thoughts?</p>

<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/1251">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZSRRVHXjw5k0SUhwjBP7BiLZMDVuks5smpI6gaJpZM4PmMXL">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36Zc8wPJl01b-UyqPYJQf69-NkpQMxks5smpI6gaJpZM4PmMXL.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1251"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<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://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"v5.0.3: \"kamctl domain show\" not showing all domains (#1251)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1251"}}}</script>