<p>I  just added <code>resid</code> parameter that allows registering the container result via modparam, see:</p>
<ul>
<li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/d2bac426192c074368bf78014e0d1d0ca97f3274/hovercard" href="https://github.com/kamailio/kamailio/commit/d2bac426192c074368bf78014e0d1d0ca97f3274"><tt>d2bac42</tt></a></li>
</ul>
<p>You have to use the git master branch. I didn't have an option to test, so feedback if it works or not would be appreciated.</p>
<p>For older version, try the workaround of getting the value or printing <code>$phn(src=>valid)</code> from KEMI script, before using the <code>KSR.phonenum.match()</code> function, like:</p>
<pre><code>KSR.xdbg("$phn(src=>valid)\n");
</code></pre>

<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/2052?email_source=notifications&email_token=ABO7UZOXPQ6DKSRPPAOXOVTQHT5CFA5CNFSM4IS3FYX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5VTKLY#issuecomment-527119663">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZM64ZS3FFXQ6H5MDWTQHT5CFANCNFSM4IS3FYXQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZPR75CCLH3X7HAXA3TQHT5CFA5CNFSM4IS3FYX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5VTKLY.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/2052?email_source=notifications\u0026email_token=ABO7UZOXPQ6DKSRPPAOXOVTQHT5CFA5CNFSM4IS3FYX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5VTKLY#issuecomment-527119663",
"url": "https://github.com/kamailio/kamailio/issues/2052?email_source=notifications\u0026email_token=ABO7UZOXPQ6DKSRPPAOXOVTQHT5CFA5CNFSM4IS3FYX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5VTKLY#issuecomment-527119663",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>