I am trying to configure a basic sip and login with voiper. Here is my pjsip.conf
[general]
transport=udp
[transport-udp-nat]
type=transport
protocol=udp
bind=10.137.0.44:5060
[1001]
type=endpoint
transport=transport-udp
auth=auth1001
aor=1001
[auth1001]
type=auth
auth_type=userpass
username=1001
password=yourpassword
[1001]
type=aor
max_contacts=1
[1002]
type=endpoint
transport=transport-udp
auth=auth1002
aor=1002
context=internal
[auth1002]
type=auth
auth_type=userpass
username=1002
password=yourpassword
[1002]
type=aor
max_contacts=1
I followed these instructions GitHub - ranjithsurineni/Asterisk-VoIP-Setup-Tutorial
I am on qubes doing it in 3 virtual machines: one for pbx (setting that up later), one for sip, one for the client. They are connected to the same network adapter vm and are configured to allow traffic on all ports between them.
Jul 06 15:03:25 sip asterisk[1592]: [Jul 6 15:03:25] NOTICE[1642]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'REGISTER' from '<sip:1002@10.137.0.44>' failed for '10.137.0.45:42523' (callid: UWEyVt9Nsu7A8CD6_SZ72A..) - Failed to authenticate
Jul 06 15:03:49 sip asterisk[1592]: [Jul 6 15:03:49] NOTICE[1642]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'REGISTER' from '<sip:1002@10.137.0.44>' failed for '10.137.0.45:42523' (callid: -jwdi6jAOD2S2KQJT0NiNw..) - No matching endpoint found