sippy / rtpproxy

The RTPproxy is a high-performance software proxy for RTP streams that can work together with Sippy B2BUA, Kamailio, OpenSIPS and SER.
http://rtpproxy.org
BSD 2-Clause "Simplified" License
417 stars 114 forks source link

`systemctl start rtpproxy` does not start the systemd socket unit #76

Closed oussamahammami closed 6 years ago

oussamahammami commented 6 years ago

Hi,

This is a small issue with the rtpproxy rpm service, socket file in /usr/lib/systemd/system/

the rtpproxy socket unit should start when the rtpproxy service start.

Thanks for this awesome solution !

My operating system is (include version):

CentOS Linux release 7.4.1708 (Core)

I installed rtpproxy with yum from epel repo:

# rpm -qa|grep rtpproxy
rtpproxy-2.0.0-6.el7.x86_64

rtpproxy behavior differed from what I expected because::

The rtpproxy socket unit is inactive after the rtpproxy service start.

# systemctl start rtpproxy

# systemctl status rtpproxy.socket rtpproxy.service

● rtpproxy.socket - RTPproxy controlling socket
   Loaded: loaded (/usr/lib/systemd/system/rtpproxy.socket; enabled; vendor preset: disabled)
   Active: inactive (dead) since Fri 2018-06-15 11:46:55 UTC; 1h 43min ago
   Listen: 127.0.0.1:22222 (Stream)

Jun 15 11:46:47 preprod-sip-proxy-eu-west3-a-01 systemd[1]: Listening on RTPproxy controlling socket.
Jun 15 11:46:47 preprod-sip-proxy-eu-west3-a-01 systemd[1]: Starting RTPproxy controlling socket.
Jun 15 11:46:55 preprod-sip-proxy-eu-west3-a-01 systemd[1]: Closed RTPproxy controlling socket.
Jun 15 11:46:55 preprod-sip-proxy-eu-west3-a-01 systemd[1]: Stopping RTPproxy controlling socket.

● rtpproxy.service - A symmetric RTP proxy
   Loaded: loaded (/usr/lib/systemd/system/rtpproxy.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2018-06-15 13:30:28 UTC; 2s ago
 Main PID: 29601 (rtpproxy)
   CGroup: /system.slice/rtpproxy.service
           └─29601 /usr/bin/rtpproxy -f -p /var/run/rtpproxy/rtpproxy.pid -A 35.198.187.106 -F -l 10.156.0.25 -m 10000 -M 20000 -s udp:* 7722 -d INFO LOG_LOCAL0

Jun 15 13:30:27 preprod-sip-proxy-eu-west3-a-01 systemd[1]: Starting A symmetric RTP proxy...
Jun 15 13:30:28 preprod-sip-proxy-eu-west3-a-01 rtpproxy[29601]: INFO:main:GLOBAL: rtpproxy started, pid 29601
Jun 15 13:30:28 preprod-sip-proxy-eu-west3-a-01 systemd[1]: Started A symmetric RTP proxy.
oussamahammami commented 6 years ago

Sorry guys ! please ignore it .