Gosub doesn't get called

At the end I found out that the problem was DYNAMIC_FEATURES.

The software that runs on top of Asterisk (via AGI) was doing weird things with the DYNAMIC_FEATURES variable.

Thank you @cable for the help