#!/bin/bash

NUM=$1
RHOST=127.0.0.1
RPORT=22222

[ -f /etc/sysconfig/rtpproxy_benchmark ] && . . /etc/sysconfig/rtpproxy_benchmark

for i in `seq 1 ${NUM}`
do
	HPORT=$((8080+i))
	/usr/bin/rtpproxy_monitoring -syslog=false -hport=${HPORT} -rhost="${RHOST}" -rport="${RPORT}" -ptype=8 -psize=160 -htime=60 -hsize=10 > /dev/null 2>&1 & 
done

#!/bin/bash

NUM=$1
RHOST=127.0.0.1
RPORT=22222

. /etc/sysconfig/rtpproxy_benchmark

for i in `seq 1 ${NUM}`
do
	HPORT=$((8080+i))
	/usr/bin/rtpproxy_monitoring -syslog=false -hport=${HPORT} -rhost="${RHOST}" -rport="${RPORT}" -ptype=8 -psize=160 -htime=60 -hsize=10 > /dev/null 2>&1 & 
done

--- 
+++ 
@@ -4,7 +4,7 @@
 RHOST=127.0.0.1
 RPORT=22222
 
-[ -f /etc/sysconfig/rtpproxy_benchmark ] && . . /etc/sysconfig/rtpproxy_benchmark
+. /etc/sysconfig/rtpproxy_benchmark
 
 for i in `seq 1 ${NUM}`
 do
Include config-file only if available

Signed-off-by: Peter Lemenkov <2f981fc861bda8c748898150c942841af4296212@gmail.com>
