Much of the Asterisk information on the internet is old. I looked at Asterisk again after about 10 years since the last time.
I needed an auto dialer for my CUCM 11.5 cluster. Here is a working pjsip.conf for the SIP trunks and extensions.conf.
My cluster is E.164 with 8 digit alternate numbers. CUCM standard SIP profile with SIP OPTIONS Ping enabled. Non Secure SIP Trunk Profile with "Accept unsolicited notification" and "Accept replaces header"
pjsip.conf
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[CUCMTRUNK]
type=endpoint
context=sip-inbound
transport=transport-udp
disallow=all
allow=ulaw
identify_by=ip
[CUCM1](CUCMTRUNK)
aors=CUCM1
[CUCM1]
type=aor
contact=sip:10.1.1.20
[CUCM1]
type=identify
endpoint=CUCM1
match=10.1.1.20
[CUCM2](CUCMTRUNK)
aors=CUCM2
[CUCM2]
type=aor
contact=sip:10.1.1.21
[CUCM2]
type=identify
endpoint=CUCM2
match=10.1.1.21
[CUCM3](CUCMTRUNK)
aors=CUCM3
[CUCM3]
type=aor
contact=sip:10.2.2.3
[CUCM3]
type=identify
endpoint=CUCM3
match=10.2.2.3
extensions.conf
[sip-inbound]
include=asterisk-internal
[asterisk-internal]
exten=80013333,1,Answer()
same=n,Wait(1)
same=n,Playback(hello-world)
same=n,Hangup()
exten=_8XXXXXXX,1,Dial(PJSIP/${EXTEN}@CUCM3)
exten=_8XXXXXXX,2,Dial(PJSIP/${EXTEN}@CUCM2)
exten=_8XXXXXXX,3,Dial(PJSIP/${EXTEN}@CUCM1)
exten=_+.,1,Dial(PJSIP/${EXTEN}@CUCM3)
exten=_+.,2,Dial(PJSIP/${EXTEN}@CUCM2)
exten=_+.,3,Dial(PJSIP/${EXTEN}@CUCM1)