Hello guy’s, i make a call to an external number but neither party can hear the other. after 30s the call is automatically disconnected.
I have this in the logs:
Disconnecting channel for lack of audio RTP activity in 30 seconds
//rtp_custum.conf
[general]
rtpstart=10000
rtpend=20000
icesupport=true
stunaddr=stun.l.google.com:19302
//pjsip.transport.conf
[0.0.0.0-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
allow_reload=no
tos=cs3
cos=3
local_net=10.38.43.0/24
[0.0.0.0-wss]
type=transport
protocol=wss
bind=0.0.0.0
allow_reload=no
tos=cs3
cos=3
local_net=10.38.43.0/24
//pjsip.endpoint.conf
[004058]
type=endpoint
aors=004058
auth=004058-auth
tos_audio=ef
tos_video=af41
cos_audio=5
cos_video=4
allow=ulaw,alaw,g729
context=from-internal
callerid=dialerTEST004058 <004058>
dtmf_mode=rfc4733
direct_media=yes
outbound_auth=004058-auth
mailboxes=004058@default
mwi_subscribe_replaces_unsolicited=yes
aggregate_mwi=yes
use_avpf=no
rtcp_mux=no
max_audio_streams=1
max_video_streams=1
bundle=no
ice_support=no
media_use_received_transport=no
trust_id_inbound=yes
user_eq_phone=no
send_connected_line=yes
media_encryption=no
timers=yes
timers_min_se=90
media_encryption_optimistic=no
refer_blind_progress=yes
refer_blind_progress=yes
rtp_timeout=30
rtp_timeout_hold=300
rtp_keepalive=0
send_pai=yes
rtp_symmetric=yes
rewrite_contact=yes
force_rport=yes
language=fr
one_touch_recording=on
record_on_feature=apprecord
record_off_feature=apprecord
//log outputs
freepbx*CLI> sngrep
No such command 'sngrep' (type 'core show help sngrep' for other possible comman ds)
<--- Received SIP request (686 bytes) from UDP:10.38.2.233:53143 --->
REGISTER sip:pbx.com:5060 SIP/2.0
Via: SIP/2.0/UDP 10.38.2.233:53143;rport;branch=z9hG4bKPj0ca0bf98c4fa42c793cfa13 f8eda0a61
Route: <sip:pbx.com:5060;lr>
Max-Forwards: 70
From: "dialer-test-004055" <sip:004055@pbx.com>;tag=c80da8 57a2e94c778ebed1362db4ebd9
To: "dialer-test-004055" <sip:004055@pbx.com>
Call-ID: bd0137f24cb9492db91abfcc5a5bfe11
CSeq: 26795 REGISTER
User-Agent: MicroSIP/3.21.3
Contact: "dialer-test-004055" <sip:004055@10.38.2.233:53143;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
<--- Transmitting SIP response (633 bytes) to UDP:10.38.2.233:53143 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.38.2.233:53143;rport=53143;received=10.38.2.233;branch=z9hG4 bKPj0ca0bf98c4fa42c793cfa13f8eda0a61
Call-ID: bd0137f24cb9492db91abfcc5a5bfe11
From: "dialer-test-004055" <sip:004055@pbx.com>;tag=c80da8 57a2e94c778ebed1362db4ebd9
To: "dialer-test-004055" <sip:004055@pbx.com>;tag=z9hG4bKP j0ca0bf98c4fa42c793cfa13f8eda0a61
CSeq: 26795 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1715881394/ef0a29d7a6d6cff3bb47 f14791db2a8e",opaque="0dd6f5776cf88cfc",algorithm=MD5,qop="auth"
Server: FPBX-16.0.40.7(18.16.0)
Content-Length: 0
<--- Received SIP request (995 bytes) from UDP:10.38.2.233:53143 --->
REGISTER sip:pbx.com:5060 SIP/2.0
Via: SIP/2.0/UDP 10.38.2.233:53143;rport;branch=z9hG4bKPj25f3a6ee98a74a1ca5c9f10 27b96c008
Route: <sip:pbx.com:5060;lr>
Max-Forwards: 70
From: "dialer-test-004055" <sip:004055@pbx.com>;tag=c80da8 57a2e94c778ebed1362db4ebd9
To: "dialer-test-004055" <sip:004055@pbx.com>
Call-ID: bd0137f24cb9492db91abfcc5a5bfe11
CSeq: 26796 REGISTER
User-Agent: MicroSIP/3.21.3
Contact: "dialer-test-004055" <sip:004055@10.38.2.233:53143;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username="004055", realm="asterisk", nonce="1715881394/ef0 a29d7a6d6cff3bb47f14791db2a8e", uri="sip:pbx.com:5060", resp onse="52943c7716598c7a274376f7b7873b21", algorithm=MD5, cnonce="759a31a49309477a a66e50311813ca55", opaque="0dd6f5776cf88cfc", qop=auth, nc=00000001
Content-Length: 0
-- Added contact 'sip:004055@10.38.2.233:53143;ob' to AOR '004055' with expi ration of 300 seconds
-- Removed contact 'sip:004055@10.38.2.217:63664;ob' from AOR '004055' due t o remove existing
<--- Transmitting SIP response (584 bytes) to UDP:10.38.2.233:53143 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.38.2.233:53143;rport=53143;received=10.38.2.233;branch=z9hG4 bKPj25f3a6ee98a74a1ca5c9f1027b96c008
Call-ID: bd0137f24cb9492db91abfcc5a5bfe11
From: "dialer-test-004055" <sip:004055@pbx.com>;tag=c80da8 57a2e94c778ebed1362db4ebd9
To: "dialer-test-004055" <sip:004055@pbx.com>;tag=z9hG4bKP j25f3a6ee98a74a1ca5c9f1027b96c008
CSeq: 26796 REGISTER
Date: Thu, 16 May 2024 17:43:14 GMT
Contact: <sip:004055@10.38.2.233:53143;ob>;expires=299
Expires: 300
Server: FPBX-16.0.40.7(18.16.0)
Content-Length: 0
<--- Received SIP request (1140 bytes) from UDP:10.38.2.233:5060 --->
PUBLISH sip:004055@pbx.com:5060 SIP/2.0
Via: SIP/2.0/UDP 10.38.2.233:5060;rport;branch=z9hG4bKPj7b3c44ddbbd742b18b46eba7 9ff4ea6e
Route: <sip:pbx.com:5060;lr>
Max-Forwards: 70
From: "dialer-test-004055" <sip:004055@pbx.com>;tag=0bfd45 bc8b2344d8850cf7799a2a4e3c
To: "dialer-test-004055" <sip:004055@pbx.com>
Call-ID: 2d5a2e8792da4a6087646488a269a213
CSeq: 36564 PUBLISH
Event: presence
User-Agent: MicroSIP/3.21.3
Content-Type: application/pidf+xml
Content-Length: 573
<?xml version="1.0" encoding="UTF-8"?>
<presence entity="sip:004055@pbx.com:5060" arams:xml:ns:pidf" xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:rpid= "urn:ietf:params:xml:ns:pidf:rpid">
<tuple id="pje4e0aa4c04f4443d91cb552b932cf5bb">
<status>
<basic>open</basic>
</status>
<timestamp>2024-05-16T17:43:14.419Z</timestamp>
<note>Away</note>
</tuple>
<dm:person id="pj30e7ec55d0ec4698b3a56633e75dc867">
<rpid:activities>
<rpid:away />
</rpid:activities>
<dm:note>Away</dm:note>
</dm:person>
</presence>
<--- Transmitting SIP response (630 bytes) to UDP:10.38.2.233:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.38.2.233:5060;rport=5060;received=10.38.2.233;branch=z9hG4bK Pj7b3c44ddbbd742b18b46eba79ff4ea6e
Call-ID: 2d5a2e8792da4a6087646488a269a213
From: "dialer-test-004055" <sip:004055@pbx.com>;tag=0bfd45 bc8b2344d8850cf7799a2a4e3c
To: "dialer-test-004055" <sip:004055@pbx.com>;tag=z9hG4bKP j7b3c44ddbbd742b18b46eba79ff4ea6e
CSeq: 36564 PUBLISH
WWW-Authenticate: Digest realm="asterisk",nonce="1715881394/ef0a29d7a6d6cff3bb47 f14791db2a8e",opaque="74e1b41b3532c6b0",algorithm=MD5,qop="auth"
Server: FPBX-16.0.40.7(18.16.0)
Content-Length: 0
== Contact 004055/sip:004055@10.38.2.217:63664;ob has been deleted
== Endpoint 004055 is now Unreachable
<--- Transmitting SIP request (433 bytes) to UDP:10.38.2.233:53143 --->
OPTIONS sip:004055@10.38.2.233:53143;ob SIP/2.0
Via: SIP/2.0/UDP 10.38.43.75:5060;rport;branch=z9hG4bKPjd07b1d40-e0b8-45c6-96c9- c2291d0caa0d
From: <sip:004055@10.38.43.75>;tag=96e50f2c-c3ac-47c7-870b-732c74916552
To: <sip:004055@10.38.2.233;ob>
Contact: <sip:004055@10.38.43.75:5060>
Call-ID: 1ca6c4dd-87bc-4aae-b62d-e5ff3a83a25b
CSeq: 1366 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-16.0.40.7(18.16.0)
Content-Length: 0
<--- Received SIP response (796 bytes) from UDP:10.38.2.233:53143 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.38.43.75:5060;rport=5060;received=10.38.43.75;branch=z9hG4bK Pjd07b1d40-e0b8-45c6-96c9-c2291d0caa0d
Call-ID: 1ca6c4dd-87bc-4aae-b62d-e5ff3a83a25b
From: <sip:004055@10.38.43.75>;tag=96e50f2c-c3ac-47c7-870b-732c74916552
To: <sip:004055@10.38.2.233;ob>;tag=z9hG4bKPjd07b1d40-e0b8-45c6-96c9-c2291d0caa0 d
CSeq: 1366 OPTIONS
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Accept: application/sdp, application/pidf+xml, application/xpidf+xml, applicatio n/simple-message-summary, message/sipfrag;version=2.0, application/im-iscomposin g+xml, text/plain
Supported: replaces, 100rel, timer, norefersub, trickle-ice
Allow-Events: presence, message-summary, refer
User-Agent: MicroSIP/3.21.3
Content-Length: 0
== Endpoint 004055 is now Reachable
-- Contact 004055/sip:004055@10.38.2.233:53143;ob is now Reachable. RTT: 12 .115 msec
freepbx*CLI>
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
[root@freepbx ~]# sngrep
[root@freepbx ~]# ti<--- Received SIP request (686 bytes) from UDP:10.38.2.233:53143 --->
-bash: syntax error near unexpected token `('
[root@freepbx ~]# REGISTER sip:pbx.com:5060 SIP/2.0
5
-bash: REGISTER: command not found
[root@freepbx ~]# Via: SIP/2.0/UDP 10.38.2.233:53143;rport;branch=z9hG4bKPj0ca0bf98c4fa42c793cfa13 f8eda0a61
-bash: Via:: command not found
-bash: rport: command not found
-bash: f8eda0a61: command not found
[root@freepbx ~]# Route: <sip:pbx.com:5060;lr>
-bash: syntax error near unexpected token `newline'
[root@freepbx ~]# Max-Forwards: 70
1
-bash: Max-Forwards:: command not found
[root@freepbx ~]# From: "dialer-test-004055" <sip:004055@pbx.com>;tag=c80da8 57a2e94c778ebed1362db4ebd9
-bash: syntax error near unexpected token `;'
[root@freepbx ~]# To: "dialer-test-004055" <sip:004055@pbx.com>
-bash: syntax error near unexpected token `newline'
[root@freepbx ~]# Call-ID: bd0137f24cb9492db91abfcc5a5bfe11
p
-bash: Call-ID:: command not found
[root@freepbx ~]# CSeq: 26795 REGISTER
0
-bash: CSeq:: command not found
[root@freepbx ~]# User-Agent: MicroSIP/3.21.3
-bash: User-Agent:: command not found
[root@freepbx ~]# Contact: "dialer-test-004055" <sip:004055@10.38.2.233:53143;ob>
-bash: syntax error near unexpected token `newline'
[root@freepbx ~]# Expires: 300
P
-bash: Expires:: command not found
[root@freepbx ~]# Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
-bash: Allow:: command not found
[root@freepbx ~]# Content-Length: 0
-
-bash: Content-Length:: command not found
[root@freepbx ~]#
[root@freepbx ~]#
[root@freepbx ~]# <--- Transmitting SIP response (633 bytes) to UDP:10.38.2.233:53143 --->
-bash: syntax error near unexpected token `('
[root@freepbx ~]# SIP/2.0 401 Unauthorized
-bash: SIP/2.0: No such file or directory
[root@freepbx ~]# Via: SIP/2.0/UDP 10.38.2.233:53143;rport=53143;received=10.38.2.233;branch=z9hG4 bKPj0ca0bf98c4fa42c793cfa13f8eda0a61
p
-bash: Via:: command not found
-bash: bKPj0ca0bf98c4fa42c793cfa13f8eda0a61: command not found
[root@freepbx ~]# Call-ID: bd0137f24cb9492db91abfcc5a5bfe11
2
-bash: Call-ID:: command not found
[root@freepbx ~]# From: "dialer-test-004055" <sip:004055@pbx.com>;tag=c80da8 57a2e94c778ebed1362db4ebd9
-bash: syntax error near unexpected token `;'
[root@freepbx ~]# To: "dialer-test-004055" <sip:004055@pbx.com>;tag=z9hG4bKP j0ca0bf98c4fa42c793cfa13f8eda0a61
-bash: syntax error near unexpected token `;'
[root@freepbx ~]# CSeq: 26795 REGISTER
-bash: CSeq:: command not found
[root@freepbx ~]# WWW-Authenticate: Digest realm="asterisk",nonce="1715881394/ef0a29d7a6d6cff3bb47 f14791db2a8e",opaque="0dd6f5776cf88cfc",algorithm=MD5,qop="auth"
a
-bash: WWW-Authenticate:: command not found
[root@freepbx ~]# Server: FPBX-16.0.40.7(18.16.0)
-bash: syntax error near unexpected token `('
[root@freepbx ~]# Content-Length: 0
v
-bash: Content-Length:: command not found
[root@freepbx ~]#
[root@freepbx ~]#
[root@freepbx ~]# <--- Received SIP request (995 bytes) from UDP:10.38.2.233:53143 --->
-bash: syntax error near unexpected token `('
[root@freepbx ~]# REGISTER sip:pbx.com:5060 SIP/2.0
-bash: REGISTER: command not found
[root@freepbx ~]# Via: SIP/2.0/UDP 10.38.2.233:53143;rport;branch=z9hG4bKPj25f3a6ee98a74a1ca5c9f10 27b96c008
:
-bash: Via:: command not found
-bash: rport: command not found
-bash: 27b96c008: command not found
[root@freepbx ~]# Route: <sip:pbx.com:5060;lr>
-bash: syntax error near unexpected token `newline'
[root@freepbx ~]# Max-Forwards: 70
-
-bash: Max-Forwards:: command not found
[root@freepbx ~]# From: "dialer-test-004055" <sip:004055@pbx.com>;tag=c80da8 57a2e94c778ebed1362db4ebd9
-bash: syntax error near unexpected token `;'
[root@freepbx ~]# To: "dialer-test-004055" <sip:004055@pbx.com>
-bash: syntax error near unexpected token `newline'
[root@freepbx ~]# Call-ID: bd0137f24cb9492db91abfcc5a5bfe11
-bash: Call-ID:: command not found
[root@freepbx ~]# CSeq: 26796 REGISTER
-bash: CSeq:: command not found
[root@freepbx ~]# User-Agent: MicroSIP/3.21.3
-bash: User-Agent:: command not found
[root@freepbx ~]# Contact: "dialer-test-004055" <sip:004055@10.38.2.233:53143;ob>
-bash: syntax error near unexpected token `newline'
[root@freepbx ~]# Expires: 300
-bash: Expires:: command not found
[root@freepbx ~]# Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
-bash: Allow:: command not found
[root@freepbx ~]# Authorization: Digest username="004055", realm="asterisk", nonce="1715881394/ef0 a29d7a6d6cff3bb47f14791db2a8e", uri="sip:pbx.com:5060", resp
-bash: Authorization:: command not found
[root@freepbx ~]# Content-Length: 0
-bash: Content-Length:: command not found
[root@freepbx ~]#
[root@freepbx ~]#
[root@freepbx ~]# -- Added contact 'sip:004055
> -- Removed contact 'sip:004055@10.38.2.217:63664;ob' from AOR '004055' due t o remove
> <--- Transmitting SIP response (584 bytes) to UDP:10.38.2.233:531
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 10.38.2.233:53143;rport=53143;received=10.38.2.233;branch=z9hG4 bKPj25f3a6ee98a74a1ca5c9f1027b96c008
> Call-ID: bd0137f24cb9492db91abfcc5a5bfe11
> From: "dialer-test-004055" <sip:004055@p
> To: "dialer-test-0
> CSeq: 26796 REGISTER
> Date:
> Contact: <sip:004055@10.38.2.233:53143;ob>;expires=299
> Expires: 300
> Server: FP
> Content-Length: 0
>
>
> <--- Received SIP request (1140 bytes) from UDP:10.38.2.233:5060 --->
> PUBLISH sip:004055@pbx.com:5060 SIP/2.0
> Via: SIP/2.0/UDP 10.38.2.233:5060;rport;branch=z9hG4bKPj7b3c44ddbbd742b18b46eba7
>`Preformatted text`
Can someone help me understand why please?