- byte_xasprintf(&rtp_socket, "%s/rtp", dir);
- byte_xasprintf(&rtp_log, "%s/rtp.log", dir);
+ if(uname(&uts) < 0)
+ byte_xasprintf(&base, "%s/", dir);
+ else
+ byte_xasprintf(&base, "%s/%s-", dir, uts.nodename);
+ byte_xasprintf(&rtp_socket, "%srtp", base);
+ byte_xasprintf(&rtp_log, "%srtp.log", base);