I just added `resid` parameter that allows registering the container result via modparam, see:
* https://github.com/kamailio/kamailio/commit/d2bac426192c074368bf78014e0d1d0c...
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.
For older version, try the workaround of getting the value or printing `$phn(src=>valid)` from KEMI script, before using the `KSR.phonenum.match()` function, like:
``` KSR.xdbg("$phn(src=>valid)\n"); ```