Here is my sip.conf:
[general]
udpbindaddr=0.0.0.0:5060
context=from-outside
useragent=Raspberry Pi BPX
realm=bp214.erss.in
srvlookup=no
mohsuggest=default
parkinglot=default
allowguest=no
alwaysauthreject=yes
videosupport=no
maxcallbitrate=5120
ignoreregexpire=no
allowsubscribe=yes
notifyhold=yes
notifyringing=yes
callcounter=yes
progressinband=yes ; yes|no|never
tos_sip=af42
tos_audio=ef
cos_sip=3
cos_audio=5
rtptimeout=0
rtpkeepalive=60
jbenable=yes
jbforce=no
jbmaxsize=200
jbresyncthreshold=1000
jbimpl=fixed
jblog=no
tcpenable=no
tlsenable=no
websocket_enabled=yes
encryption=no
deny=0.0.0.0/0.0.0.0
permit=10.0.0.0/255.0.0.0
permit=172.16.0.0/255.240.0.0
permit=192.168.0.0/255.255.0.0
accept_outofcall_message=yes
auth_message_requests=no
outofcall_message_context=textmessages
; == Templates
basic
type=friend
qualify=yes
context=from-extensions
subscribecontext=subscriptions
host=dynamic
directmedia=no
nat=force_rport,comedia
dtmfmode=rfc2833
disallow=all
videosupport=yes
phones
transport=udp
allow=ulaw,alaw,g722,gsm,vp9,vp8,h264
webrtc
transport=wss
allow=opus,ulaw,vp9,vp8,h264
encryption=yes
avpf=yes
force_avp=yes
icesupport=yes
rtcp_mux=yes
dtlsenable=yes
dtlsverify=fingerprint
dtlscertfile=/root/certs/asterisk.pem
dtlscafile=/root/ca/Asterisk-Root-CA.crt
dtlssetup=actpass
100
callerid=“Conrad de Wet” <100>
secret=1234
200
callerid=“User 2” <200>
secret=1234
300
callerid=“300”
secret=1234
when configuring the sip end point(300) in zoiper, I get the 401: Unauthorized error