allow custom dialplan functions to be called from AGI (issue #4855)