Does the spacing around the “=” sign make a difference ? The endpoint part seems to want spaces. The auth6002 does not — comments ?
HERE is an example from the asterisk docs:
[ 6002 ]
type = endpoint
context = internal
disallow = all
allow = ulaw
aors = 6002
auth = auth6002
[ 6002 ]
type = aor
contact = sip: 6002 @192 .0. 2.1 : 5060
[auth6002]
type=auth
auth_type=userpass
password= 1234
username= 6001