AMI Custom Event from DialPlan

Is there a function in the dialplan (pjsip.conf) where I can create a custom event.

instead of:
event: ‘Hangup’,

causetxt: ‘Normal Clearing’

I want to create my own:
event: ‘myEvent’,

causetxt: ‘you are awesome!’

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

Thank You! Yes I meant extensions.conf :disappointed_relieved: