RTP now works

This commit is contained in:
MathewFrancis 2025-03-14 16:46:18 +05:30
parent fb39cad3e4
commit 5c637771e8
14 changed files with 39 additions and 11 deletions

View File

@ -1673,7 +1673,24 @@
;
; You can match a TEL URI From header by IP, header, or auth_username.
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
bind=0.0.0.0:5060
local_net=172.20.0.0/24 ; Your Docker network
external_media_address=103.227.97.200 ; If behind NAT
external_signaling_address=103.227.97.200
;[transport-udp]
;type=transport
;protocol=udp
;bind=0.0.0.0:5060
[global]
disallow=all
allow=ulaw
allow=alaw
allow=g722

View File

@ -8,7 +8,15 @@
; Defaults are rtpstart=5000 and rtpend=31000
;
rtpstart=10000
rtpend=20000
rtpend=10050
;rtpstart=20000
;rtpend=21000
strictrtp=no
probation=8
;rtpend=20000
;
; Whether to enable or disable UDP checksums on RTP traffic
;

View File

@ -9,7 +9,8 @@ services:
- mariadb
ports:
- "5060:5060/udp" # SIP signaling
- "5060:5060/tcp" # SIP signaling (TCP fallback)
# - "5060:5060/tcp" # SIP signaling (TCP fallback)
#- "20000-21000:20000-21000/udp" # RTP ports for audio
- "10000-10050:10000-10050/udp" # RTP ports
volumes:
- ./conf/odbc.ini:/etc/odbc.ini
@ -35,13 +36,13 @@ services:
- asterisk-net
# *** only needed if your not running docker as a sudo user necessary for mariadb container db access
user: "999:999" # Ensures the container runs as the mysql user, matching volume ownership
command: "--innodb-buffer-pool-size=256M"
healthcheck: # Optional: Ensure MariaDB is healthy before Asterisk connects
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-prootpassword"]
interval: 10s
timeout: 5s
retries: 5
# user: "999:999" # Ensures the container runs as the mysql user, matching volume ownership
# command: "--innodb-buffer-pool-size=256M"
# healthcheck: # Optional: Ensure MariaDB is healthy before Asterisk connects
# test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-prootpassword"]
# interval: 10s
# timeout: 5s
# retries: 5
# ***
networks:

Binary file not shown.

Binary file not shown.

4
MySQL_conf_pbx/test1/mariadb_data/ib_buffer_pool Normal file → Executable file
View File

@ -3,9 +3,11 @@
10,3
9,3
8,3
7,3
5,3
4,3
7,3
3,2
1,2
1,45
3,44
2,44