KAZOO-216: fix validator in wapi_dialplan
KAZOO-216: move function to header