Hello i found the solution of what’s i’m facing.I forgot to register user.But when i call to a user it says
Using INVITE request as basis request - 9qc51bka7kkpfusjb601
Found peer '012399009' for '012399009' from 172.250.230.136:58224
== Using SIP RTP CoS mark 5
Got SDP version 0 and unique parts [mozilla...THIS_IS_SDPARTA-99.0 602436884144578642 IN IP4 0.0.0.0]
Found RTP audio format 109
Found RTP audio format 9
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 101
Found audio description format opus for ID 109
Found audio description format G722 for ID 9
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format telephone-event for ID 101
Capabilities: us - (alaw|ulaw|g722|opus), peer - audio=(ulaw|alaw|g722|opus)/video=(nothing)/text=(nothing), combined - (alaw|ulaw|g722|opus)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
> 0x794750045830 -- Strict RTP learning after remote address set to: 43.242.135.210:46162
Peer audio RTP is at port 43.242.135.210:46162
Looking for 1061 in default (domain 192.168.130.20)
sip_route_dump: route/path hop: <sip:j0iert61@fo913ij2c0v7.invalid;transport=ws;ob>
<--- Transmitting (NAT) to 172.250.230.136:58224 --->
SIP/2.0 100 Trying
Via: SIP/2.0/WSS fo913ij2c0v7.invalid;branch=z9hG4bK1854021;received=172.250.230.136;rport=58224
From: <sip:012399009@172.250.230.160>;tag=1qv2kka04p
To: <sip:1061@192.168.130.20>
Call-ID: 9qc51bka7kkpfusjb601
CSeq: 2 INVITE
Server: Asterisk PBX GIT-18-591c1c77c7
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Contact: <sip:1061@172.250.230.160:5060;transport=ws>
Content-Length: 0
<------------>
-- Executing [1061@default:1] Dial("SIP/012399009-0000004f", "SIP/09978551579@192.168.130.20") in new stack
== Using SIP RTP CoS mark 5
Audio is at 11958
Adding codec alaw to SDP
Adding codec ulaw to SDP
Adding codec gsm to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 192.168.130.20:5060:
INVITE sip:09978551579@192.168.130.20 SIP/2.0
Via: SIP/2.0/UDP 172.250.230.160:5060;branch=z9hG4bK5fd1afcf
Max-Forwards: 70
From: <sip:012399009@172.250.230.160>;tag=as2872ac3a
To: <sip:09978551579@192.168.130.20>
Contact: <sip:012399009@172.250.230.160:5060>
Call-ID: 72fb4dd40d5b0918654f136a1d43d34a@172.250.230.160:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX GIT-18-591c1c77c7
Date: Fri, 02 Aug 2024 02:56:51 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 301
v=0
o=root 153197005 153197005 IN IP4 172.250.230.160
s=Asterisk PBX GIT-18-591c1c77c7
c=IN IP4 172.250.230.160
t=0 0
m=audio 11958 RTP/AVP 8 0 3 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:140
a=sendrecv
---
-- Called SIP/09978551579@192.168.130.20
<--- SIP read from UDP:192.168.130.20:5060 --->
SIP/2.0 488 Not acceptable here
Via: SIP/2.0/UDP 172.250.230.160:5060;branch=z9hG4bK5fd1afcf;received=172.250.230.160;rport=5060
From: <sip:012399009@172.250.230.160>;tag=as2872ac3a
To: <sip:09978551579@192.168.130.20>;tag=as529bc571
Call-ID: 72fb4dd40d5b0918654f136a1d43d34a@172.250.230.160:5060
CSeq: 102 INVITE
Server: CAIP SIP 2.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
Transmitting (no NAT) to 192.168.130.20:5060:
ACK sip:09978551579@192.168.130.20 SIP/2.0
Via: SIP/2.0/UDP 172.250.230.160:5060;branch=z9hG4bK5fd1afcf
Max-Forwards: 70
From: <sip:012399009@172.250.230.160>;tag=as2872ac3a
To: <sip:09978551579@192.168.130.20>;tag=as529bc571
Contact: <sip:012399009@172.250.230.160:5060>
Call-ID: 72fb4dd40d5b0918654f136a1d43d34a@172.250.230.160:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX GIT-18-591c1c77c7
Content-Length: 0
---
Scheduling destruction of SIP dialog '72fb4dd40d5b0918654f136a1d43d34a@172.250.230.160:5060' in 32000 ms (Method: INVITE)
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/012399009-0000004f' status is 'CHANUNAVAIL'
<--- Reliably Transmitting (NAT) to 172.250.230.136:58224 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/WSS fo913ij2c0v7.invalid;branch=z9hG4bK1854021;received=172.250.230.136;rport=58224
From: <sip:012399009@172.250.230.160>;tag=1qv2kka04p
To: <sip:1061@192.168.130.20>;tag=as20597135
Call-ID: 9qc51bka7kkpfusjb601
CSeq: 2 INVITE
Server: Asterisk PBX GIT-18-591c1c77c7
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
X-Asterisk-HangupCause: Bearer capability not available
X-Asterisk-HangupCauseCode: 58
Content-Length: 0
<------------>
<--- SIP read from WS:172.250.230.136:58224 --->
ACK sip:1061@192.168.130.20 SIP/2.0
Via: SIP/2.0/WSS fo913ij2c0v7.invalid;branch=z9hG4bK1854021
To: <sip:1061@192.168.130.20>;tag=as20597135
From: <sip:012399009@172.250.230.160>;tag=1qv2kka04p
Call-ID: 9qc51bka7kkpfusjb601
CSeq: 2 ACK
Max-Forwards: 70
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
[Aug 2 02:56:51] ERROR[2378493]: cdr_csv.c:275 writefile: Unable to open file /var/log/asterisk//cdr-csv//Master.csv : Permission denied
[Aug 2 02:56:51] WARNING[2378493]: cdr_csv.c:308 csv_log: Unable to write CSV record to master '/var/log/asterisk//cdr-csv//Master.csv' : Permission denied
Really destroying SIP dialog '9qc51bka7kkpfusjb601' Method: ACK
Reliably Transmitting (no NAT) to 172.250.230.136:58224:
OPTIONS sip:j0iert61@fo913ij2c0v7.invalid;transport=ws SIP/2.0
Via: SIP/2.0/WS 172.250.230.160:5060;branch=z9hG4bK23ed6c6a
Max-Forwards: 70
From: "asterisk" <sip:asterisk@172.250.230.160>;tag=as1b6cf22a
To: <sip:j0iert61@fo913ij2c0v7.invalid;transport=ws>
Contact: <sip:asterisk@172.250.230.160:5060;transport=ws>
Call-ID: 7cdde0a22b99a75d566e830644473f29@172.250.230.160:5060
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX GIT-18-591c1c77c7
Date: Fri, 02 Aug 2024 02:57:03 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
here is my sip.conf
[general]
realm=0.0.0.0 ; Replace this with your IP address
tlsbindaddr=[::]:5061
tlsdontverifyserver=no
tlsclientmethod=tlsv1
force_avp=yes
udpbindaddr=0.0.0.0 ; Replace this with your IP address
transport=ws,wss
websocket_enable=yes
tlscafile=/etc/asterisk/keys/asterisk.crt
dtlscertfile=/etc/asterisk/keys/asterisk.pem ; Path to your certificate
dtlsprivatekey=/etc/asterisk/keys/asterisk.key ; Path to your private key
[012399009] ; This will be WebRTC client
type=friend
host=dynamic ; Allows any host to register
transport=wss
avpf=yes
qualify=yes
secret=password
encryption=yes ; Tell Asterisk to use encryption for this peer
disallow=all
allow=alaw,ulaw,g722,opus
icesupport=yes ; Enable ICE support
directmedia=yes ; Ensure direct media is disabled
dtlsenable=yes ; Enable DTLS
dtlsverify=fingerprint ; Verify DTLS fingerprint
dtlscertfile=/etc/asterisk/keys/asterisk.crt ; Path to your certificate
dtlsprivatekey=/etc/asterisk/keys/asterisk.key ; Path to your private key
dtlssetup=actpass ; DTLS setup method
dtlsfingerprint=/etc/asterisk/keys/asterisk.key
[1061]
host=192.168.130.20
type=peer
qualify=yes
canreinvite=no
disallow=all
allow=alaw,ulaw,g722,opus
transport=udp
dtmfmode=rfc2833
nat=force_rport,comedia
directmedia=no
extensions.conf
[default]
exten => 2399009,1,Dial(SIP/012399009) ; Dialing 1060 will call the SIP client registered to 1060
exten => 1061,1,Dial(SIP/09978551579@192.168.130.20)