What does this mean? In order to register you need to know the address of the other side. But if they also need to register, how does one of them find the address to allow them to do the first registration?
There should be a script in your Asterisk source folder to help convert sip to pjsip, which I found helpful when first converting: /contrib/scripts/sip_to_pjsip/sip_to_pjsip.py
(run like: /contrib/scripts/sip_to_pjsip/sip_to_pjsip.py sip_sample.file pjsip_prep.file)
There is also the pjsip.conf sample file (if you built the sample configs) which is a very good resource.
That said, you will need a transport section, and then types registration, auth, aor, identify, and endpoint for your trunk. Maybe it looks something like this:
If the ITSP needs to register to you for some reason, you can refer to the “endpoint configured as a trunk” section in the sample pjsip.conf file, which is copied here:
;=============ENDPOINT CONFIGURED AS A TRUNK, INBOUND AUTH AND REGISTRATION===
;
; Here we are allowing a remote device to register to Asterisk and requiring
; that they authenticate for registration and calls.
; You'll note that this configuration is essentially the same as configuring
; an endpoint for use with a SIP phone.
;[7000]
;type=endpoint
;context=from-external
;disallow=all
;allow=ulaw
;transport=transport-udp
;auth=7000
;aors=7000
;[7000]
;type=auth
;auth_type=userpass
;password=7000
;username=7000
;[7000]
;type=aor
;max_contacts=1