How to invoke dialplan functions from ARI

The dialplan function is not “PJSIP_DIALPLAN_CONTACTS”. It is PJSIP_DIAL_CONTACTS. It can be retrieved using the variable route on asterisk[1] as "PJSIP_DIAL_CONTACTS(123).

[1] Asterisk - Asterisk Documentation