Turn session doesn't expire

116 views
Skip to first unread message

Ahmed Mater

unread,
Sep 12, 2018, 2:42:40 PM9/12/18
to TURN Server (Open-Source project)
Hi all, I've a problem with turn server which turn sessions are still opening and didn't terminate so the number of sessions are increasing gradually. I have to restart the service to decrease number of sessions.
Here's is a sample of session:

    256) id=000000000000002835, user <ahmed>:
      realm: vs1d.ahmed.net
      started 1310271 secs ago
      expired
      client protocol UDP, relay protocol UDP
      client addr [2401:4900:2080:efc5:e9a:8edc:8c2:1db]:53916, server addr [2607:fd0:1005:14::a]:3478
      relay addr [2607:f00:105:1b4::a]:18767
      fingerprints enforced: OFF
      mobile: OFF
      usage: rp=25, rb=852, sp=24, sb=2856
       rate: r=0, s=0, total=0 (bytes per sec)

what i need to know why the sessions are not closed and what the meaning of expired option and how i can change it ?

Appreciate any feedback. Thanks

Mihály Mészáros

unread,
Sep 12, 2018, 9:57:28 PM9/12/18
to Ahmed Mater, TURN Server (Open-Source project)
Wich version do you use?
I think the fix is in the master branch..
Please check out the github master. 

My plan is to release it soon..

by the way
@All 

Please help me to test the actual master branch and please report any issue you may found. 

THX,
Misi

--
You received this message because you are subscribed to the Google Groups "TURN Server (Open-Source project)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turn-server-project-rfc57...@googlegroups.com.
To post to this group, send email to turn-server-project...@googlegroups.com.
Visit this group at https://groups.google.com/group/turn-server-project-rfc5766-turn-server.
For more options, visit https://groups.google.com/d/optout.

Ahmed Mater

unread,
Sep 16, 2018, 4:08:39 AM9/16/18
to TURN Server (Open-Source project)
I'm using this version v4.5.0.6, how can i upgrade to the latest version v4.5.0.7 without interrupt the service ?

Mihály Mészáros

unread,
Sep 18, 2018, 3:25:23 AM9/18/18
to TURN Server (Open-Source project)
I don't think that you could. upgrade without restarting the service.
Only if you have multiple servers..

Ahmed Mater

unread,
Sep 24, 2018, 7:04:00 PM9/24/18
to TURN Server (Open-Source project)
Dear, could anyone advice on this error "systemd PID file /var/run/turn server.pid not readable (yet?) after start." Thanks


On Wednesday, September 12, 2018 at 8:42:40 PM UTC+2, Ahmed Mater wrote:

Mihály Mészáros

unread,
Sep 25, 2018, 5:46:01 AM9/25/18
to TURN Server (Open-Source project)
More info needed to reproduce...
OS ver, config, init script  etc..

Ahmed Mater

unread,
Sep 25, 2018, 6:00:52 AM9/25/18
to TURN Server (Open-Source project)
Hi Mihály, Here's the required info.

[root@~]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
I've installed the version from the master branch as follows:
git clone https://github.com/coturn/coturn.git
cd coturn/
yum -y install make gcc gcc-c++ openssl-devel libevent libevent-devel
./configure --prefix=/opt
make
make install
 ##Create and edit /etc/turnserver.conf or /usr/local/etc/turnserver.conf
 ##Use /usr/local/etc/turnserver.conf.default as an example

cp /opt/etc/turnserver.conf.default /etc/turnserver.conf
vim /etc/turnserver.conf
min-port=10000
max-port=20000
verbose
lt-cred-mech
server-name=vs1d.ahmed.net
user=ahmed:ahmed
user=ahmed2:ahmed2
realm=vs1d.ahmed.net
log-file=/var/log/turn.log
pidfile="/opt/turnserver/turnserver.pid"

### create service
cd /etc/systemd/system/
touch turn_new.service
vim turn_new.service
*********************************
[Unit]
Description=turnserver service
After=network.target

[Service]
Type=forking
User=root
PIDFile=/opt/turnserver/turnserver.pid
ExecStart=/opt/bin/turnserver $OPTIONS
EnvironmentFile=-/etc/sysconfig/turnserver_new
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
#IgnoreSIGPIPE=yes

[Install]
WantedBy=multi-user.target
***********************************
vim /etc/sysconfig/turnserver_new
add this line to use your custom configuration in the service startup:

OPTIONS="-c /etc/turnserver.conf -o"
***********************************
systemctl daemon-reload
systemctl start turn_new

On Wednesday, September 12, 2018 at 8:42:40 PM UTC+2, Ahmed Mater wrote:
Reply all
Reply to author
Forward
0 new messages