<p><a href="https://github.com/lazedo" class="user-mention">@lazedo</a> <br>
you can see that we sending expires=1 in our NSQ message and in nsq_pua.c</p>

<div class="highlight highlight-source-c"><pre>    <span class="pl-k">struct</span> json_object *ExpiresObj =  nsq_json_get_object(json_obj, BLF_JSON_EXPIRES);
    <span class="pl-k">if</span> (ExpiresObj != <span class="pl-c1">NULL</span>) {
        expires = <span class="pl-c1">json_object_get_int</span>(ExpiresObj);
        <span class="pl-k">if</span> (expires > <span class="pl-c1">0</span>)
            expires += (<span class="pl-k">int</span>)<span class="pl-c1">time</span>(<span class="pl-c1">NULL</span>);
    }</pre></div>

<p>you can see expires will be set to time + 1</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/pull/809#issuecomment-258260016">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZZ8jZwozTPCtH_h5Ck4wVkUC6ONxks5q6kAlgaJpZM4KNYFy">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZRTsLdBxnDmLhvR8qhO3e6JFnQeRks5q6kAlgaJpZM4KNYFy.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/pull/809#issuecomment-258260016"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request 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":"@eschmidbauer in #809: @lazedo \r\nyou can see that we sending expires=1 in our NSQ message and in nsq_pua.c\r\n```C\r\n\tstruct json_object *ExpiresObj =  nsq_json_get_object(json_obj, BLF_JSON_EXPIRES);\r\n\tif (ExpiresObj != NULL) {\r\n\t\texpires = json_object_get_int(ExpiresObj);\r\n\t\tif (expires \u003e 0)\r\n\t\t\texpires += (int)time(NULL);\r\n\t}\r\n```\r\nyou can see expires will be set to time + 1"}],"action":{"name":"View Pull Request","url":"https://github.com/kamailio/kamailio/pull/809#issuecomment-258260016"}}}</script>