<p>Hi</p>

<p>I have the following env<br>
Debian 64bit<br>
OpenSIPs 1.11.3-notls</p>

<p>I am using MemCached and db_http in order to resolve number portability with the following script</p>

<p>modparam("avpops", "db_url", "5 <a href="http://x.x.x.x/services">http://x.x.x.x/services</a>")<br>
modparam("avpops","avp_table","GetNumberRouting")<br>
modparam("cachedb_memcached", "cachedb_url","memcached:first://x.x.x.x/")<br>
modparam("cachedb_memcached", "cachedb_url","memcached:second://x.x.x.y/")<br>
modparam("cachedb_memcached", "exec_threshold", 150000)<br>
modparam("db_http", "SSL", 0)<br>
..........<br>
xlog("Check if the number is in portability cache [$avp(num)]");<br>
if(!cache_fetch("memcached:first","$avp(num)",$avp(net)))<br>
{<br>
   xlog("[$avp(num)] Not in cache 1. Query cache 2.");<br>
   if(!cache_fetch("memcached:second","$avp(num)",$avp(net)))<br>
   {<br>
     xlog("[$avp(num)] Not in cache 2. Doing Query to DB_HTTP");<br>
     avp_db_query("$avp(num)","$avp(net)","5");<br>
   }<br>
}</p>

<p>If the number can not be found at Memcached 1, new query sent to Memcached 2 and if not found there as well, third query is sent to db_http resource.</p>

<p>When happens that I get the following</p>

<p>Jan 29 23:12:03 opensips1 /sbin/opensips[5002]: Check if the number is in portability cache [211xxxxxx]<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5002]: DBG:core:cachedb_fetch: from script [memcached] - with grp [first]<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5002]: [211xxxxxx] Not in cache 1. Query cache 2.<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5002]: DBG:core:cachedb_fetch: from script [memcached] - with grp [second]<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5002]: [211xxxxxx] Not in cache 2. Doing Query to DB_HTTP<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5002]: DBG:avpops:ops_dbquery_avps: query [211xxxxxx]<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5064]: CRITICAL:core:receive_fd: EOF on 10<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5064]: DBG:core:handle_ser_child: dead child 3, pid 5002 (shutting down?)<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5064]: DBG:core:io_watch_del: io_watch_del op on index -1 10 (0x822ec0, 10, -1, 0x0,0x1) fd_no=95 called<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5064]: INFO:core:sig_usr: signal 15 received<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5061]: INFO:core:sig_usr: signal 15 received<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5058]: INFO:core:sig_usr: signal 15 received<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5060]: INFO:core:sig_usr: signal 15 received<br>
Jan 29 23:12:03 opensips1 /sbin/opensips[5063]: INFO:core:sig_usr: signal 15 received</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/405">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcibRhE11s5jEHBe2BPgqHfsBut8oxks5nmrrqgaJpZM4DZQHX.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/OpenSIPS/opensips/issues/405"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>