No such command 'pjsip show endopoints'

try to restart your asterisk and also read this Pjsip error with asterisk14.3.1