<p>The example is wrong, indeed -- iirc, the transformations were not returning <code>$null</code> in the initial design, because they were supposed to be a property of a valid value. Not sure if there is any transformation returning <code>$null</code> right now.</p>
<p>However, changing this behaviour might break other existing configs, so this has to be discussed and analyzed properly.</p>
<p>Right now probably the <code>{s.count,;}</code> should be used to get what is the max index.</p>
<ul>
<li><a href="https://www.kamailio.org/wiki/cookbooks/5.3.x/transformations#scount_c" rel="nofollow">https://www.kamailio.org/wiki/cookbooks/5.3.x/transformations#scount_c</a></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/2128?email_source=notifications&email_token=ABO7UZJZY5PEFX25ARXLJ43QUP4BFA5CNFSM4JNCUPBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEOOCEQ#issuecomment-555540754">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJCP3254UQXCOFWEBLQUP4BFANCNFSM4JNCUPBA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKAKFSILUT4R2ZH24DQUP4BFA5CNFSM4JNCUPBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEOOCEQ.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/2128?email_source=notifications\u0026email_token=ABO7UZJZY5PEFX25ARXLJ43QUP4BFA5CNFSM4JNCUPBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEOOCEQ#issuecomment-555540754",
"url": "https://github.com/kamailio/kamailio/issues/2128?email_source=notifications\u0026email_token=ABO7UZJZY5PEFX25ARXLJ43QUP4BFA5CNFSM4JNCUPBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEOOCEQ#issuecomment-555540754",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>