mirror of
https://github.com/jambonz/jambonz-infrastructure.git
synced 2026-01-25 02:08:27 +00:00
* add jambonz medium AWS deployment: sbc(sip+rtp), fs, web+monitoring * fix terraform proxmox: correct calculation of private IP * fixs for jambonz-medium * spread sbc and fs across availability zones
50 lines
1.2 KiB
Desktop File
50 lines
1.2 KiB
Desktop File
|
|
[Unit]
|
|
Description=rtpengine
|
|
After=syslog.target network.target local-fs.target
|
|
|
|
[Service]
|
|
; service
|
|
Type=forking
|
|
Environment="LD_LIBRARY_PATH=/usr/local/lib/"
|
|
ExecStartPre=/bin/sh -c 'systemctl set-environment LOCAL_IP=`curl -s http://169.254.169.254/latest/meta-data/local-ipv4`'
|
|
ExecStartPre=/bin/sh -c 'systemctl set-environment PUBLIC_IP=`curl -s http://169.254.169.254/latest/meta-data/public-ipv4`'
|
|
ExecStartPre=echo 'del 42' > /proc/rtpengine/control
|
|
ExecStart=/usr/local/bin/rtpengine \
|
|
--interface private/${LOCAL_IP} \
|
|
--interface public/${LOCAL_IP}!${PUBLIC_IP} \
|
|
--listen-ng=22222 \
|
|
--listen-http=8080 \
|
|
--listen-udp=12222 \
|
|
--dtmf-log-dest=127.0.0.1:22223 \
|
|
--listen-cli=127.0.0.1:9900 \
|
|
--table=42 \
|
|
--pidfile /run/rtpengine.pid \
|
|
--port-min 40000 \
|
|
--port-max 60000 \
|
|
--recording-dir /tmp \
|
|
--recording-method pcap \
|
|
--recording-format eth \
|
|
--log-level 5 \
|
|
--delete-delay 0
|
|
PIDFile=/run/rtpengine.pid
|
|
TimeoutSec=15s
|
|
Restart=always
|
|
; exec
|
|
User=root
|
|
Group=daemon
|
|
LimitCORE=infinity
|
|
LimitNOFILE=100000
|
|
LimitNPROC=60000
|
|
;LimitSTACK=240
|
|
LimitRTPRIO=infinity
|
|
LimitRTTIME=7000000
|
|
IOSchedulingClass=realtime
|
|
IOSchedulingPriority=2
|
|
CPUSchedulingPolicy=rr
|
|
CPUSchedulingPriority=89
|
|
UMask=0007
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|