Functions and dialplan working