When using SIP you can direct dial to a device at a particular IP address and port using this form in your Dial statement:
Dial(sip/$OUTNUMfirstname.lastname@example.org:port) (where OUTNUM is replaced by the number you are sending to the device).
But if you are trying to use PJSIP only, and you change SIP to PJSIP, calls fail. The only example I could find for doing this is from here and shows this:
What has me confused is the /mytrunk/ part of this. In this case the call isn’t going through a trunk, it’s going direct to a device at a specific IP address. Does this have to be associated with a trunk when using PJSIP, or is there a way to do this without including a trunk name?