Hi,

With
"Local_Extension" I can't distinguish all cases, I can distinguish only successful or failed answer.

About first case:
I have no sequential numbers for local users and can't describe range as regex. So, the best way to identify if local user exists is to search id (and number-alias) in directory. I know about mod_xml_curl which can be used for filling dialplan and directory from some database, but I tried to find more simple way.

--
Regards,
Eugene Prokopiev