AMI Custom Event from DialPlan

I assume you are referring to extensions.conf and not pjsip.conf, in which case the UserEvent[1] application can be used to raise arbitrary AMI events. It is documented on the wiki.

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_UserEvent