<p>That has to stay static, otherwise can end up in strange values, being on stack.<br>
I pushed a commit to reset the content of the buffer when using the function, no matter there is or not a value to retrieve. Can you test with master or with the patch to see if all ok? If yes, it will be backported.</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/2030?email_source=notifications&email_token=ABO7UZJYGF7EZFBYKWSPEN3QDRDKRA5CNFSM4IKIDX72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD34GBFA#issuecomment-519594132">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMOLRN7RWMM46QFKN3QDRDKRANCNFSM4IKIDX7Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZKLH2IZLIYBDVI33VLQDRDKRA5CNFSM4IKIDX72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD34GBFA.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/2030?email_source=notifications\u0026email_token=ABO7UZJYGF7EZFBYKWSPEN3QDRDKRA5CNFSM4IKIDX72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD34GBFA#issuecomment-519594132",
"url": "https://github.com/kamailio/kamailio/issues/2030?email_source=notifications\u0026email_token=ABO7UZJYGF7EZFBYKWSPEN3QDRDKRA5CNFSM4IKIDX72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD34GBFA#issuecomment-519594132",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>