Yes the last number x in the address of externip=192.168.x.x is non zero. app-kotlin is a pjsip app, since the audio isn’t heard from the other end, I really don’t know where is the problem. The endpoints are on the same network wifi, hence have common IP address starting with 198.168.x.x
Here are the logs after setting “sip set debug on”:
!) On registering the two devices:-
SIP Debugging enabled
<--- SIP read from UDP:192.168.0.104:5060 --->
REGISTER sip:192.168.0.106 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.104:5060;rport;branch=z9hG4bKPjd0ff7ee7-cbb0-4df5-bebc-7797bb208d30
Route: <sip:192.168.0.106;lr>
Max-Forwards: 70
From: <sip:7001@192.168.0.106>;tag=0382f24a-2852-453f-8a44-7310fef07439
To: <sip:7001@192.168.0.106>
Call-ID: db48da61-f7a8-492c-879b-9599797e8691
CSeq: 27352 REGISTER
Contact: <sip:7001@192.168.0.104:5060;ob>
Expires: 600
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.0.104:5060 (NAT)
Sending to 192.168.0.104:5060 (NAT)
<--- Transmitting (NAT) to 192.168.0.104:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.0.104:5060;branch=z9hG4bKPjd0ff7ee7-cbb0-4df5-bebc-7797bb208d30;received=192.168.0.104;rport=5060
From: <sip:7001@192.168.0.106>;tag=0382f24a-2852-453f-8a44-7310fef07439
To: <sip:7001@192.168.0.106>;tag=as189801ee
Call-ID: db48da61-f7a8-492c-879b-9599797e8691
CSeq: 27352 REGISTER
Server: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4d859fc4"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'db48da61-f7a8-492c-879b-9599797e8691' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:192.168.0.104:5060 --->
REGISTER sip:192.168.0.106 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.104:5060;rport;branch=z9hG4bKPj679da2db-b1a2-415d-8ca2-7339014d026a
Route: <sip:192.168.0.106;lr>
Max-Forwards: 70
From: <sip:7001@192.168.0.106>;tag=0382f24a-2852-453f-8a44-7310fef07439
To: <sip:7001@192.168.0.106>
Call-ID: db48da61-f7a8-492c-879b-9599797e8691
CSeq: 27353 REGISTER
Contact: <sip:7001@192.168.0.104:5060;ob>
Expires: 600
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username="7001", realm="asterisk", nonce="4d859fc4", uri="sip:192.168.0.106", response="d4959da6989f23bd5516b03767674377", algorithm=MD5
Content-Length: 0
<------------->
--- (13 headers 0 lines) ---
Sending to 192.168.0.104:5060 (NAT)
-- Registered SIP '7001' at 192.168.0.104:5060
<--- Transmitting (NAT) to 192.168.0.104:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.104:5060;branch=z9hG4bKPj679da2db-b1a2-415d-8ca2-7339014d026a;received=192.168.0.104;rport=5060
From: <sip:7001@192.168.0.106>;tag=0382f24a-2852-453f-8a44-7310fef07439
To: <sip:7001@192.168.0.106>;tag=as189801ee
Call-ID: db48da61-f7a8-492c-879b-9599797e8691
CSeq: 27353 REGISTER
Server: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Expires: 600
Contact: <sip:7001@192.168.0.104:5060;ob>;expires=600
Date: Mon, 14 Apr 2025 16:57:05 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'db48da61-f7a8-492c-879b-9599797e8691' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:192.168.0.104:5060 --->
<------------->
<--- SIP read from UDP:192.168.0.104:5060 --->
<------------->
Really destroying SIP dialog 'db48da61-f7a8-492c-879b-9599797e8691' Method: REGISTER
<--- SIP read from UDP:192.168.0.103:5060 --->
REGISTER sip:192.168.0.106 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;rport;branch=z9hG4bKPjc8fade7f-337f-4610-8eac-1cffc9c5be97
Route: <sip:192.168.0.106;lr>
Max-Forwards: 70
From: <sip:7002@192.168.0.106>;tag=dce66cc7-20f3-4e7a-8c09-7dd705e54567
To: <sip:7002@192.168.0.106>
Call-ID: b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca
CSeq: 32 REGISTER
Contact: <sip:7002@192.168.0.103:5060;ob>
Expires: 600
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.0.103:5060 (NAT)
Sending to 192.168.0.103:5060 (NAT)
-- Registered SIP '7002' at 192.168.0.103:5060
<--- Transmitting (NAT) to 192.168.0.103:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bKPjc8fade7f-337f-4610-8eac-1cffc9c5be97;received=192.168.0.103;rport=5060
From: <sip:7002@192.168.0.106>;tag=dce66cc7-20f3-4e7a-8c09-7dd705e54567
To: <sip:7002@192.168.0.106>;tag=as5b979072
Call-ID: b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca
CSeq: 32 REGISTER
Server: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Expires: 600
Contact: <sip:7002@192.168.0.103:5060;ob>;expires=600
Date: Mon, 14 Apr 2025 16:57:40 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:192.168.0.103:5060 --->
REGISTER sip:192.168.0.106 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;rport;branch=z9hG4bKPjc8fade7f-337f-4610-8eac-1cffc9c5be97
Route: <sip:192.168.0.106;lr>
Max-Forwards: 70
From: <sip:7002@192.168.0.106>;tag=dce66cc7-20f3-4e7a-8c09-7dd705e54567
To: <sip:7002@192.168.0.106>
Call-ID: b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca
CSeq: 32 REGISTER
Contact: <sip:7002@192.168.0.103:5060;ob>
Expires: 600
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.0.103:5060 (NAT)
<--- Transmitting (NAT) to 192.168.0.103:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bKPjc8fade7f-337f-4610-8eac-1cffc9c5be97;received=192.168.0.103;rport=5060
From: <sip:7002@192.168.0.106>;tag=dce66cc7-20f3-4e7a-8c09-7dd705e54567
To: <sip:7002@192.168.0.106>;tag=as5b979072
Call-ID: b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca
CSeq: 32 REGISTER
Server: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Expires: 600
Contact: <sip:7002@192.168.0.103:5060;ob>;expires=600
Date: Mon, 14 Apr 2025 16:57:40 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:192.168.0.103:5060 --->
REGISTER sip:192.168.0.106 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;rport;branch=z9hG4bKPjc8fade7f-337f-4610-8eac-1cffc9c5be97
Route: <sip:192.168.0.106;lr>
Max-Forwards: 70
From: <sip:7002@192.168.0.106>;tag=dce66cc7-20f3-4e7a-8c09-7dd705e54567
To: <sip:7002@192.168.0.106>
Call-ID: b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca
CSeq: 32 REGISTER
Contact: <sip:7002@192.168.0.103:5060;ob>
Expires: 600
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.0.103:5060 (NAT)
<--- Transmitting (NAT) to 192.168.0.103:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bKPjc8fade7f-337f-4610-8eac-1cffc9c5be97;received=192.168.0.103;rport=5060
From: <sip:7002@192.168.0.106>;tag=dce66cc7-20f3-4e7a-8c09-7dd705e54567
To: <sip:7002@192.168.0.106>;tag=as5b979072
Call-ID: b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca
CSeq: 32 REGISTER
Server: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Expires: 600
Contact: <sip:7002@192.168.0.103:5060;ob>;expires=600
Date: Mon, 14 Apr 2025 16:57:41 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:192.168.0.103:5060 --->
REGISTER sip:192.168.0.106 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;rport;branch=z9hG4bKPjc8fade7f-337f-4610-8eac-1cffc9c5be97
Route: <sip:192.168.0.106;lr>
Max-Forwards: 70
From: <sip:7002@192.168.0.106>;tag=dce66cc7-20f3-4e7a-8c09-7dd705e54567
To: <sip:7002@192.168.0.106>
Call-ID: b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca
CSeq: 32 REGISTER
Contact: <sip:7002@192.168.0.103:5060;ob>
Expires: 600
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.0.103:5060 (NAT)
<--- Transmitting (NAT) to 192.168.0.103:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bKPjc8fade7f-337f-4610-8eac-1cffc9c5be97;received=192.168.0.103;rport=5060
From: <sip:7002@192.168.0.106>;tag=dce66cc7-20f3-4e7a-8c09-7dd705e54567
To: <sip:7002@192.168.0.106>;tag=as5b979072
Call-ID: b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca
CSeq: 32 REGISTER
Server: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Expires: 600
Contact: <sip:7002@192.168.0.103:5060;ob>;expires=600
Date: Mon, 14 Apr 2025 16:57:47 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca' in 32000 ms (Method: REGISTER)
And the logs when I start the call:-
<--- SIP read from UDP:192.168.0.103:5060 --->
REGISTER sip:192.168.0.106 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;rport;branch=z9hG4bKPjc8fade7f-337f-4610-8eac-1cffc9c5be97
Route: <sip:192.168.0.106;lr>
Max-Forwards: 70
From: <sip:7002@192.168.0.106>;tag=dce66cc7-20f3-4e7a-8c09-7dd705e54567
To: <sip:7002@192.168.0.106>
Call-ID: b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca
CSeq: 32 REGISTER
Contact: <sip:7002@192.168.0.103:5060;ob>
Expires: 600
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.0.103:5060 (NAT)
<--- Transmitting (NAT) to 192.168.0.103:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bKPjc8fade7f-337f-4610-8eac-1cffc9c5be97;received=192.168.0.103;rport=5060
From: <sip:7002@192.168.0.106>;tag=dce66cc7-20f3-4e7a-8c09-7dd705e54567
To: <sip:7002@192.168.0.106>;tag=as5b979072
Call-ID: b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca
CSeq: 32 REGISTER
Server: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Expires: 600
Contact: <sip:7002@192.168.0.103:5060;ob>;expires=600
Date: Mon, 14 Apr 2025 16:58:03 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'b9dc8d69-2973-4f77-ae78-f8f1cc2d16ca' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:192.168.0.103:5060 --->
INVITE sip:7001@192.168.0.106 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;rport;branch=z9hG4bKPja6e992cd-def2-40f8-996a-b282cc240b78
Max-Forwards: 70
From: sip:7002@192.168.0.106;tag=8691875d-8fb3-416d-a420-6b5414550ff3
To: sip:7001@192.168.0.106
Contact: <sip:7002@192.168.0.103:5060;ob>
Call-ID: 3253a3f8-997a-4f02-a39a-da82fce63a52
CSeq: 28312 INVITE
Route: <sip:192.168.0.106;lr>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 1121
v=0
o=- 3953638682 3953638682 IN IP4 192.168.0.103
s=pjmedia
b=AS:352
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 96 97 98 99 100 101 3 0 8 9 120 121 122
c=IN IP4 192.168.0.103
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.0.103
a=sendrecv
a=rtpmap:96 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:98 speex/32000
a=rtpmap:99 AMR/8000
a=fmtp:99 octet-align=1
a=rtpmap:100 AMR-WB/16000
a=fmtp:100 octet-align=1
a=rtpmap:101 iLBC/8000
a=fmtp:101 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:120 telephone-event/16000
a=fmtp:120 0-16
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=rtpmap:122 telephone-event/32000
a=fmtp:122 0-16
a=ssrc:1011807305 cname:36a185a466778f10
m=video 4002 RTP/AVP 99 103 106
c=IN IP4 192.168.0.103
b=TIAS:256000
a=rtcp:4003 IN IP4 192.168.0.103
a=sendrecv
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=42e01e; packetization-mode=1
a=rtpmap:103 VP8/90000
a=fmtp:103 max-fr=30; max-fs=580
a=rtpmap:106 VP9/90000
a=fmtp:106 max-fr=30; max-fs=580
a=ssrc:815506237 cname:36a185a466778f10
a=rtcp-fb:* nack pli
<------------->
--- (15 headers 44 lines) ---
Sending to 192.168.0.103:5060 (NAT)
Sending to 192.168.0.103:5060 (NAT)
Using INVITE request as basis request - 3253a3f8-997a-4f02-a39a-da82fce63a52
Found peer '7002' for '7002' from 192.168.0.103:5060
== Using SIP RTP CoS mark 5
Got SDP version 3953638682 and unique parts [- 3953638682 IN IP4 192.168.0.103]
Found RTP audio format 96
Found RTP audio format 97
Found RTP audio format 98
Found RTP audio format 99
Found RTP audio format 100
Found RTP audio format 101
Found RTP audio format 3
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 9
Found RTP audio format 120
Found RTP audio format 121
Found RTP audio format 122
Found audio description format speex for ID 96
Found audio description format speex for ID 97
Found audio description format speex for ID 98
Found audio description format AMR for ID 99
Found audio description format AMR-WB for ID 100
Found audio description format iLBC for ID 101
Found audio description format GSM for ID 3
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format G722 for ID 9
Found unknown media description format telephone-event for ID 120
Found audio description format telephone-event for ID 121
Found unknown media description format telephone-event for ID 122
Capabilities: us - (ulaw), peer - audio=(ulaw|gsm|alaw|g722|speex16|speex|speex32|amr|amrwb|ilbc)/video=(nothing)/text=(nothing), combined - (ulaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
> 0x7e816c0514e0 -- Strict RTP learning after remote address set to: 192.168.0.103:4000
Peer audio RTP is at port 192.168.0.103:4000
Looking for 7001 in internal (domain 192.168.0.106)
sip_route_dump: route/path hop: <sip:7002@192.168.0.103:5060;ob>
<--- Transmitting (NAT) to 192.168.0.103:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bKPja6e992cd-def2-40f8-996a-b282cc240b78;received=192.168.0.103;rport=5060
From: sip:7002@192.168.0.106;tag=8691875d-8fb3-416d-a420-6b5414550ff3
To: sip:7001@192.168.0.106
Call-ID: 3253a3f8-997a-4f02-a39a-da82fce63a52
CSeq: 28312 INVITE
Server: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Contact: <sip:7001@192.168.0.106:5060>
Content-Length: 0
<------------>
-- Executing [7001@internal:1] Answer("SIP/7002-00000010", "") in new stack
Audio is at 10540
Adding codec ulaw to SDP
Adding non-codec 0x1 (telephone-event) to SDP
<--- Reliably Transmitting (NAT) to 192.168.0.103:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bKPja6e992cd-def2-40f8-996a-b282cc240b78;received=192.168.0.103;rport=5060
From: sip:7002@192.168.0.106;tag=8691875d-8fb3-416d-a420-6b5414550ff3
To: sip:7001@192.168.0.106;tag=as48da30fb
Call-ID: 3253a3f8-997a-4f02-a39a-da82fce63a52
CSeq: 28312 INVITE
Server: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Contact: <sip:7001@192.168.0.106:5060>
Content-Type: application/sdp
Content-Length: 313
v=0
o=root 2001546104 2001546104 IN IP4 192.168.0.106
s=Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
c=IN IP4 192.168.0.106
t=0 0
m=audio 10540 RTP/AVP 0 121
a=rtpmap:0 PCMU/8000
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
m=video 0 RTP/AVP 99 103 106
<------------>
<--- SIP read from UDP:192.168.0.103:5060 --->
INVITE sip:7001@192.168.0.106 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.103:5060;rport;branch=z9hG4bKPja6e992cd-def2-40f8-996a-b282cc240b78
Max-Forwards: 70
From: sip:7002@192.168.0.106;tag=8691875d-8fb3-416d-a420-6b5414550ff3
To: sip:7001@192.168.0.106
Contact: <sip:7002@192.168.0.103:5060;ob>
Call-ID: 3253a3f8-997a-4f02-a39a-da82fce63a52
CSeq: 28312 INVITE
Route: <sip:192.168.0.106;lr>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 1121
v=0
o=- 3953638682 3953638682 IN IP4 192.168.0.103
s=pjmedia
b=AS:352
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 96 97 98 99 100 101 3 0 8 9 120 121 122
c=IN IP4 192.168.0.103
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.0.103
a=sendrecv
a=rtpmap:96 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:98 speex/32000
a=rtpmap:99 AMR/8000
a=fmtp:99 octet-align=1
a=rtpmap:100 AMR-WB/16000
a=fmtp:100 octet-align=1
a=rtpmap:101 iLBC/8000
a=fmtp:101 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:120 telephone-event/16000
a=fmtp:120 0-16
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=rtpmap:122 telephone-event/32000
a=fmtp:122 0-16
a=ssrc:1011807305 cname:36a185a466778f10
m=video 4002 RTP/AVP 99 103 106
c=IN IP4 192.168.0.103
b=TIAS:256000
a=rtcp:4003 IN IP4 192.168.0.103
a=sendrecv
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=42e01e; packetization-mode=1
a=rtpmap:103 VP8/90000
a=fmtp:103 max-fr=30; max-fs=580
a=rtpmap:106 VP9/90000
a=fmtp:106 max-fr=30; max-fs=580
a=ssrc:815506237 cname:36a185a466778f10
a=rtcp-fb:* nack pli
<------------->
--- (15 headers 44 lines) ---
Ignoring this INVITE request
<--- Transmitting (NAT) to 192.168.0.103:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bKPja6e992cd-def2-40f8-996a-b282cc240b78;received=192.168.0.103;rport=5060
From: sip:7002@192.168.0.106;tag=8691875d-8fb3-416d-a420-6b5414550ff3
To: sip:7001@192.168.0.106
Call-ID: 3253a3f8-997a-4f02-a39a-da82fce63a52
CSeq: 28312 INVITE
Server: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Contact: <sip:7001@192.168.0.106:5060>
Content-Length: 0
<------------>
Audio is at 10540
Adding codec ulaw to SDP
Adding non-codec 0x1 (telephone-event) to SDP
<--- Transmitting (NAT) to 192.168.0.103:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bKPja6e992cd-def2-40f8-996a-b282cc240b78;received=192.168.0.103;rport=5060
From: sip:7002@192.168.0.106;tag=8691875d-8fb3-416d-a420-6b5414550ff3
To: sip:7001@192.168.0.106;tag=as48da30fb
Call-ID: 3253a3f8-997a-4f02-a39a-da82fce63a52
CSeq: 28312 INVITE
Server: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Contact: <sip:7001@192.168.0.106:5060>
Content-Type: application/sdp
Content-Length: 313
v=0
o=root 2001546104 2001546105 IN IP4 192.168.0.106
s=Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
c=IN IP4 192.168.0.106
t=0 0
m=audio 10540 RTP/AVP 0 121
a=rtpmap:0 PCMU/8000
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
m=video 0 RTP/AVP 99 103 106
<------------>
Retransmitting #1 (NAT) to 192.168.0.103:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.103:5060;branch=z9hG4bKPja6e992cd-def2-40f8-996a-b282cc240b78;received=192.168.0.103;rport=5060
From: sip:7002@192.168.0.106;tag=8691875d-8fb3-416d-a420-6b5414550ff3
To: sip:7001@192.168.0.106;tag=as48da30fb
Call-ID: 3253a3f8-997a-4f02-a39a-da82fce63a52
CSeq: 28312 INVITE
Server: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Contact: <sip:7001@192.168.0.106:5060>
Content-Type: application/sdp
Content-Length: 313
v=0
o=root 2001546104 2001546104 IN IP4 192.168.0.106
s=Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
c=IN IP4 192.168.0.106
t=0 0
m=audio 10540 RTP/AVP 0 121
a=rtpmap:0 PCMU/8000
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
m=video 0 RTP/AVP 99 103 106
---
-- Executing [7001@internal:2] Dial("SIP/7002-00000010", "SIP/7001,60") in new stack
== Using SIP RTP CoS mark 5
Audio is at 13964
Adding codec ulaw to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 192.168.0.104:5060:
INVITE sip:7001@192.168.0.104:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.106:5060;branch=z9hG4bK4543e4cf;rport
Max-Forwards: 70
From: <sip:7002@192.168.0.106>;tag=as64b9aa76
To: <sip:7001@192.168.0.104:5060;ob>
Contact: <sip:7002@192.168.0.106:5060>
Call-ID: 35488d725bfc33a951cbd7246dbb502f@192.168.0.106:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Date: Mon, 14 Apr 2025 16:58:04 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces
Content-Type: application/sdp
Content-Length: 283
v=0
o=root 1356293601 1356293601 IN IP4 192.168.0.106
s=Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
c=IN IP4 192.168.0.106
t=0 0
m=audio 13964 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
-- Called SIP/7001
<--- SIP read from UDP:192.168.0.104:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.106:5060;rport=5060;received=192.168.0.106;branch=z9hG4bK4543e4cf
Call-ID: 35488d725bfc33a951cbd7246dbb502f@192.168.0.106:5060
From: <sip:7002@192.168.0.106>;tag=as64b9aa76
To: <sip:7001@192.168.0.104;ob>
CSeq: 102 INVITE
Content-Length: 0
<------------->
--- (7 headers 0 lines) ---
<--- SIP read from UDP:192.168.0.104:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.106:5060;rport=5060;received=192.168.0.106;branch=z9hG4bK4543e4cf
Call-ID: 35488d725bfc33a951cbd7246dbb502f@192.168.0.106:5060
From: <sip:7002@192.168.0.106>;tag=as64b9aa76
To: <sip:7001@192.168.0.104;ob>;tag=7e66d267-cf73-47e7-9d5b-a68162234387
CSeq: 102 INVITE
Contact: <sip:7001@192.168.0.104:5060;ob>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Content-Type: application/sdp
Content-Length: 318
v=0
o=- 3953638684 3953638685 IN IP4 192.168.0.104
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 0 101
c=IN IP4 192.168.0.104
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.0.104
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ssrc:406034045 cname:5745e7b5280ce9da
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
<------------->
--- (11 headers 15 lines) ---
Got SDP version 3953638685 and unique parts [- 3953638684 IN IP4 192.168.0.104]
Found RTP audio format 0
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format telephone-event for ID 101
Capabilities: us - (ulaw), peer - audio=(ulaw)/video=(nothing)/text=(nothing), combined - (ulaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
> 0x7e81c0042cb0 -- Strict RTP learning after remote address set to:
192.168.0.104:4000
Peer audio RTP is at port 192.168.0.104:4000
sip_route_dump: route/path hop: <sip:7001@192.168.0.104:5060;ob>
Transmitting (NAT) to 192.168.0.104:5060:
ACK sip:7001@192.168.0.104:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.0.106:5060;branch=z9hG4bK077fa9ba;rport
Max-Forwards: 70
From: <sip:7002@192.168.0.106>;tag=as64b9aa76
To: <sip:7001@192.168.0.104:5060;ob>;tag=7e66d267-cf73-47e7-9d5b-a68162234387
Contact: <sip:7002@192.168.0.106:5060>
Call-ID: 35488d725bfc33a951cbd7246dbb502f@192.168.0.106:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX 20.6.0~dfsg+~cs6.13.40431414-2build5
Content-Length: 0
I don’t understand what and where is the problem.