When making calls between agents or through SIP trunk, the call is completed, but the audio does not work (call is muted) and the call drops after a few seconds. Searching the forum, I saw that many users reported that the problem may be related to the rtpengine service. I'm not sure if the problem is really related to it, but I tested some configurations, such as adding the following line to the /etc/rtpengine.conf file:
OPTIONS="-i external/IP_PRIVADO!IP_PUBLICO -o 60 -a 3600 -d 30 -s 120 -n 127.0.0.1:22222 -m 20000 -M 30000 -L 7 --log-facility=local1"
However, these changes had no effect.
I was in doubt about how to apply this configuration: whether I should replace all the content after [rtpengine] in the /etc/rtpengine.conf file or just add the OPTIONS line at the end. For PRIVATE_IP, I tested both the IP of the rtpengine container (10.22.22.98) itself and the private IP of my VM (which has two network interfaces, one with a public IP and another with a private IP).
I'm running OML in a Docker environment, so I've bound the rtpengine.conf file from the VM to the container. Below is the snippet from docker-compose.yml where I do this binding:
rtpengine:
image: ${OMLRTPENGINE_IMG}
container_name: oml-rtpengine
networks:
omnileads:
ipv4_address: ${RTPENGINE_CONTAINER_IPV4}
environment:
- ENV=${ENV}
- TZ=${TZ}
- SIP_NAT_MODE=${SIP_NAT_MODE}
- PUBLIC_IP=${PUBLIC_IP}
- PRIVATE_IP=${PRIVATE_IP}
- RTPENGINE_HOSTNAME=${RTPENGINE_CONTAINER_IPV4}
privileged: true
restart: on-failure
stop_grace_period: 10s
command: rtpengine --config-file /etc/rtpengine.conf
volumes:
- ./.custom_conf/rtpengine.conf:/etc/rtpengine.conf:ro
Current contents of the rtpengine.conf file:
[rtpengine]
interface=external/10.22.22.98!IP_PUBLICO
foreground=true
log-stderr=true
listen-ng=0.0.0.0:22222
port-min=20000
port-max=30000
recording-dir=/tmp
recording-method=pcap
recording-format=eth
log-level=6
delete-delay=0
#timeout=15
#offer-timeout=15
#silent-timeout=120
#final-timeout=3600
OPTIONS="-i external/10.22.22.98!IP_PUBLICO -o 60 -a 3600 -d 30 -s 120 -n 127.0.0.1:22222 -m 20000 -M 30000 -L 7 --log-facility=local1"
Questions and Requests:
- Is the rtpengine configuration correct? Should I replace all the content after [rtpengine] or just add the OPTIONS line?
- Could the muted connection issue be related to rtpengine? If so, how can I fix it?
- Are there any additional configurations I should check in the Docker environment or in the OML to resolve this issue?
I would appreciate any help or guidance in resolving this issue.