<p></p>
<h3 dir="auto">Description</h3>
<p dir="auto">When I use Kamailio 5.6 with kazoo config file, then can see error messages:</p>
<pre class="notranslate"><code class="notranslate">WARNING: <core> [core/rvalue.c:1043]: rval_get_int(): automatic string to int conversion for "63823655406" failed
WARNING: <core> [core/rvalue.c:1949]: rval_expr_eval_int(): rval expression conversion to int failed (140,54-140,73)
</code></pre>
<p dir="auto">This warning message related to commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/bcd59d73e2fc5ae8e14cad520e726ef431f0563f/hovercard" href="https://github.com/kamailio/kamailio/commit/bcd59d73e2fc5ae8e14cad520e726ef431f0563f"><tt>bcd59d7</tt></a>.<br>
Kazoo sending timestamp using the Gregorian format and timestamp value greater than max int value.<br>
As a result, JSON string values with a timestamp cannot be parsed and converted to int.</p>
<p dir="auto">As I understand required to add long format support into Kamailio.<br>
This was tested using this Kamailio config.</p>
<pre class="notranslate"><code class="notranslate">listen=udp:127.0.0.1:5060

######## Advanced logger module ########
loadmodule "xlog.so"

######## Generic Hash Table container in shared memory ########
loadmodule "htable.so"

event_route[htable:mod-init] {
  if ( 63823655406 > 0 ) {
    xlog("L_ERR", "*** Kamailio support long data type!\n");
  } else {
    xlog("L_ERR", "*** Kamailio not support long data type!\n");
  }
}
</code></pre>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Kamailio is able to convert strings to long data type.</p>
<h4 dir="auto">Actual observed behavior</h4>
<p dir="auto">Kamailio was not able to convert strings to long data type.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lazedo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lazedo">@lazedo</a>, probable you want to know about this behavior.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/3172">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMVAY6T42BRAQV23W3VRWVR7ANCNFSM52JSMTGA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZPHISG3BZLQKHI7PWTVRWVR7A5CNFSM52JSMTGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4THHHU6Q.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/3172</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/3172",
"url": "https://github.com/kamailio/kamailio/issues/3172",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>