<p>It seems to be related to the functions exported via KEMI that return string value. I looked at the code, but I could not find a reason for it.</p>
<p>The next ruby line is executing ok:</p>
<pre><code> KSR.err("RUBY - #{KSR.is_INVITE} - #{KSR::PV.get('$pp')}\n")
</code></pre>
<p>$pp returns the process id, which is int.</p>
<p>Next one causes a crash:</p>
<pre><code>  KSR.err("RUBY - #{KSR.is_INVITE} - #{KSR::PV.get('$si')}\n")
</code></pre>
<p>$si returns source ip as a string.</p>
<p>I am not familiar with Ruby, I did the embedding of Ruby following some online examples. Maybe other people familiar with Ruby ecosystem can provide some hints.</p>
<p>If it cannot be sorted out, I can add again the code for dealing with PVs from v5.3, however, in that case there will still be some functions that won't work, like those exposed by kemix module.</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/2180?email_source=notifications&email_token=ABO7UZOBGNIMFTPYAD3TJBTQ4XR3ZA5CNFSM4J4LDHFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIMZXAI#issuecomment-572103553">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPXXUBLXA5OB7ZTGGDQ4XR3ZANCNFSM4J4LDHFA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZK2OBKES5BMBYBLKRDQ4XR3ZA5CNFSM4J4LDHFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIMZXAI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2180?email_source=notifications\u0026email_token=ABO7UZOBGNIMFTPYAD3TJBTQ4XR3ZA5CNFSM4J4LDHFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIMZXAI#issuecomment-572103553",
"url": "https://github.com/kamailio/kamailio/issues/2180?email_source=notifications\u0026email_token=ABO7UZOBGNIMFTPYAD3TJBTQ4XR3ZA5CNFSM4J4LDHFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIMZXAI#issuecomment-572103553",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>