Hello,
I’m new to Asterisk and SIP telephony in general, trying to build a web Softphone,
I setup asterisk and added my WebRTC endpoints, so that I can make Local calls between them.
Now I just got a provider SIP account (Username/Password and server address…), My account works fine in other Softphones.
When I try to call to receive calls, I can see that mys server is receiving the INVITE request from the provider but then it returns a 401 Unauthorized Tried many solutions but nothing seems to work, since I’m new to the domain so I’m not sure how can I fix this
Here is the Log
<--- Received SIP request (1282 bytes) from UDP:196.41.228.32:5060 --->
INVITE sip:213982420090@192.168.1.18:5060 SIP/2.0
Via: SIP/2.0/UDP 196.41.228.32:5060;branch=z9hG4bK-524287-1---5db72d61b26cbcb56f87d93ea811d67b;rport
Via: SIP/2.0/UDP 196.41.228.115:5071;rport=5071;branch=z9hG4bK-ahbc4rmu3votu6zn
Max-Forwards: 69
Record-Route: <sip:196.41.228.32;lr;ep;pinhole=UDP:41.111.136.198:65476>
Contact: sip:196.41.228.115:5071
To: <sip:213982420090@196.41.228.32>
From: <sip:0556382997@196.41.228.32>;tag=UQJ44NLV6G2A3XRAM4RQ____.o
Call-ID: 3a64c388a15dac2@196.41.228.244~2o
CSeq: 450 INVITE
Expires: 300
Allow: INVITE, ACK, BYE, CANCEL, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS, UPDATE
Content-Disposition: session
Content-Type: application/sdp
User-Agent: PortaSIP
P-Asserted-Identity: <sip:0556382997@196.41.228.32>
Remote-Party-ID: <sip:0556382997@196.41.228.32>;party=calling
cisco-GUID: 3468086570-3909692268-1066052068-1066052068
h323-conf-id: 3468086570-3909692268-1066052068-1066052068
Content-Length: 310
v=0
o=PortaSIP 3299437597378171192 1 IN IP4 196.41.228.115
s=-
t=0 0
m=audio 60438 RTP/AVP 18 3 8 0 4 101
c=IN IP4 196.41.228.115
a=rtpmap:18 G729/8000/1
a=rtpmap:3 GSM/8000/1
a=rtpmap:8 PCMA/8000/1
a=rtpmap:0 PCMU/8000/1
a=rtpmap:4 G723/8000/1
a=rtpmap:101 telephone-event/8000/1
a=fmtp:101 0-15
<--- Transmitting SIP response (733 bytes) to UDP:196.41.228.32:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 196.41.228.32:5060;rport=5060;received=196.41.228.32;branch=z9hG4bK-524287-1---5db72d61b26cbcb56f87d93ea811d67b
Via: SIP/2.0/UDP 196.41.228.115:5071;rport=5071;branch=z9hG4bK-ahbc4rmu3votu6zn
Record-Route: <sip:196.41.228.32;lr;ep;pinhole=UDP:41.111.136.198:65476>
Call-ID: 3a64c388a15dac2@196.41.228.244~2o
From: <sip:0556382997@196.41.228.32>;tag=UQJ44NLV6G2A3XRAM4RQ____.o
To: <sip:213982420090@196.41.228.32>;tag=z9hG4bK-524287-1---5db72d61b26cbcb56f87d93ea811d67b
CSeq: 450 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1632322393/9bd16c297da55a8e6d03c87f5ad657d0",opaque="195c9a35060ce674",algorithm=md5,qop="auth"
Server: Asterisk PBX 18.4.0
Content-Length: 0
<--- Received SIP request (597 bytes) from UDP:196.41.228.32:5060 --->
ACK sip:213982420090@192.168.1.18:5060 SIP/2.0
Via: SIP/2.0/UDP 196.41.228.32:5060;branch=z9hG4bK-524287-1---5db72d61b26cbcb56f87d93ea811d67b;rport
Via: SIP/2.0/UDP 196.41.228.115:5071;rport=5071;branch=z9hG4bK-ahbc4rmu3votu6zn
Max-Forwards: 69
To: <sip:213982420090@196.41.228.32>;tag=z9hG4bK-524287-1---5db72d61b26cbcb56f87d93ea811d67b
From: <sip:0556382997@196.41.228.32>;tag=UQJ44NLV6G2A3XRAM4RQ____.o
Call-ID: 3a64c388a15dac2@196.41.228.244~2o
CSeq: 450 ACK
Allow: INVITE, ACK, BYE, CANCEL, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
User-Agent: PortaSIP
Content-Length: 0
Thanks in advance.