Astersik first installation 13.32

hi all, i’m new into asterisk. i’m trying to configure the asterisk 13.32.
the server run correctly(seams) but i can’t connect one client sip(zoiper). I receive always authentication error 401.
i’m starting with a basic configuration, but i can’t resolve the problem. here the bebug e pjsip.conf


[Nov 17 18:54:17] NOTICE[26016]: res_pjsip/pjsip_distributor.c:666 log_failed_request: Request 'REGISTER' from '<sip:myaccountID@192.168.1.249>' failed for '192.168.1.100:48224' (callid: 3lMmH3YLWGWqD1rJk0Qj5Q..) - No matching endpoint found
[Nov 17 18:54:17] NOTICE[26016]: res_pjsip/pjsip_distributor.c:666 log_failed_request: Request 'REGISTER' from '<sip:myaccountID@192.168.1.249>' failed for '192.168.1.100:48224' (callid: 3lMmH3YLWGWqD1rJk0Qj5Q..) - Failed to authenticate
<--- Transmitting SIP response (523 bytes) to UDP:192.168.1.100:48224 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.100:48224;rport=48224;received=192.168.1.100;branch=z9hG4bK-524287-1---7306295c09a5fe2b
Call-ID: 3lMmH3YLWGWqD1rJk0Qj5Q..
From: <sip:myaccountID@192.168.1.249>;tag=d4094139
To: <sip:myaccountID@192.168.1.249>;tag=z9hG4bK-524287-1---7306295c09a5fe2b
CSeq: 2 REGISTER
WWW-Authenticate: Digest  realm="asterisk",nonce="1605635657/ae62b96ebdcf61f31c521a198d160fd6",opaque="5081d0776f040417",algorithm=md5,qop="auth"
Server: Asterisk PBX 13.32.0
Content-Length:  0
type or paste code here

pjsip.conf is:

type or paste code here

;================================ TRANSPORTS ==
; Our primary transport definition for UDP communication behind NAT.
;[transport-udp-nat]
[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0
; NAT settings
;local_net = 10.0.0.0/8
;external_media_address = 203.0.113.1
;external_signaling_address = 203.0.113.1

[dcs-endpoint]
type=endpoint
context = DCS-Incoming
allow = !all,g722,ulaw
outbound_auth = dcs-auth
aors = dcs-aor
direct_media = no
;from_domain = sip.digiumcloud.net
from_domain = 192.168.1.249
[dcs-auth]
type = auth
auth_type = userpass
username = myaccountID
password = 123
;realm = sip.digiumcloud.net
realm = asterisk
[dcs-aor]
type = aor
;contact = sip:sip.digiumcloud.net
contact = sip:192.168.1.249
[dcs-identify]
type=identify
endpoint = dcs-endpoint
;match = 8.17.32.12

;================================ ENDPOINT TEMPLATES ==
;================================ MANAGEMENT ==

;Lindsey Freddie
;President for Life

[1107](endpoint-internal-d70)
auth = 1107
aors = 1107
callerid = Lindsey Freddie <1107>

[1107](auth-userpass)
password = 1107
;username = 0019159BF771
username = 1107
[1107](aor-single-reg)
mailboxes = 1107@example
type or paste code here

here few command with asterisk -r

Blockquote

Aor: 1114 1

  Aor:  1115                                                 1

  Aor:  2101                                                 1

  Aor:  6001                                                 1

  Aor:  alice-softphone                                      1

  Aor:  dcs-aor                                              0
Contact:  dcs-aor/sip:192.168.1.249                    93db4bf330 Unknown         nan

Endpoint: alice-softphone Unavailable 0 of inf
InAuth: alice-auth/alice-softphone
Aor: alice-softphone 1

Endpoint: dcs-endpoint Not in use 0 of inf
OutAuth: dcs-auth/myaccountID
Aor: dcs-aor 0
Contact: dcs-aor/sip:192.168.1.249 93db4bf330 Unknown nan

Blockquote

can you help me?
Peter

Asterisk 13 is unsupported. Please start over with the latest 16.x.x or 18.x.x version.

401 is not an error. It is a request to authenticate.

You are being asked to authenticate because your registration failed.

I think you are failing to register because your identify section provides no usable means of identification.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.