Anyone with a clever ideia to find out (programmaticaly) on what context, within the dialplan structure, a exten is just telling the base context
(with many includes inside) ?
Can you provide more detail about what exactly you are trying to achieve?
A extension can existe in more than one context like special extensions
(for instance s or i or h)
anyway you can execute “dialplan show context” in the asterisk cli