<p>Actually it is the underscore. When I look at the logs I think we can see a problem:</p>

<ul>
<li><p>When using a htable name without underscore myTable1:<br>
<em>modparam("htable","htable","myTable1=>size=1024;autoexpire=86400");</em><br>
and <em>event_route[htable:expired:myTable1] { ...}</em><br>
I get the following logs at starting time:<br>
<strong>Oct  6 13:48:16 torso1 kamailio-0[14834]: DEBUG: htable [ht_api.c:360]: ht_init_tables(): initializing htable [myTable1] with nr. of slots: 1024<br>
Oct  6 13:48:16 torso1 kamailio-0[14834]: DEBUG: htable [ht_api.c:375]: ht_init_tables(): event route for expired items in [myTable1] exists</strong></p></li>
<li><p>When using a hatable with an underscore my_table_1:<br>
<em>modparam("htable","htable","my_table_1=>size=1024;autoexpire=86400");</em><br>
and <em>event_route[htable:expired:] { ...}</em><br>
<strong>Oct  6 13:51:20 torso1 kamailio-0[16020]: DEBUG:  [route.c:129]: route_add(): mapping routing block (0xb01140)[htable:expired:my_table_1] to 15<br>
Oct  6 13:51:20 torso1 kamailio-0[16020]: DEBUG: htable [ht_api.c:372]: ht_init_tables(): event route for expired items in [my_table_1] does not exist</strong></p></li>
</ul>

<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/811#issuecomment-251994411">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZcicF3RfBq8gxREiuoOlqF7GRFDFks5qxRECgaJpZM4KOhgr">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZU45Fvd_BSpZAEawPAUkwQLJk-ttks5qxRECgaJpZM4KOhgr.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/811#issuecomment-251994411"></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":"PERSON","message":"@AlainDubois78 in #811: Actually it is the underscore. When I look at the logs I think we can see a problem:\r\n\r\n- When using a htable name without underscore myTable1:\r\n_modparam(\"htable\",\"htable\",\"myTable1=\u003esize=1024;autoexpire=86400\");_\r\nand _event_route[htable:expired:myTable1] { ...}_\r\nI get the following logs at starting time:\r\n**Oct  6 13:48:16 torso1 kamailio-0[14834]: DEBUG: htable [ht_api.c:360]: ht_init_tables(): initializing htable [myTable1] with nr. of slots: 1024\r\nOct  6 13:48:16 torso1 kamailio-0[14834]: DEBUG: htable [ht_api.c:375]: ht_init_tables(): event route for expired items in [myTable1] exists**\r\n\r\n- When using a hatable with an underscore my_table_1:\r\n_modparam(\"htable\",\"htable\",\"my_table_1=\u003esize=1024;autoexpire=86400\");_\r\nand _event_route[htable:expired:] { ...}_\r\n**Oct  6 13:51:20 torso1 kamailio-0[16020]: DEBUG: \u003ccore\u003e [route.c:129]: route_add(): mapping routing block (0xb01140)[htable:expired:my_table_1] to 15\r\nOct  6 13:51:20 torso1 kamailio-0[16020]: DEBUG: htable [ht_api.c:372]: ht_init_tables(): event route for expired items in [my_table_1] does not exist**"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/811#issuecomment-251994411"}}}</script>