@@ -79,7 +79,7 @@ geninput() {
7979 cat session_timeouts/stats.input
8080}
8181
82- RTPP0_ARGS="-d dbug -T10 -b -n ${RTPP_NOTIFY_SOCK_TCP} -n ${RTPP_NOTIFY_SOCK_WILD} -n ${RTPP_NOTIFY_SOCK_UNIX} "
82+ RTPP0_ARGS="-d dbug -T10 -b"
8383RTPP1_ARGS="${RTPP0_ARGS} -m 12000 -W5"
8484RTPP2_ARGS="${RTPP0_ARGS} -m 13000"
8585RTPP3_ARGS="-6 ::1 ${RTPP1_ARGS}"
@@ -143,15 +143,38 @@ run_test()
143143 else
144144 client_notify_sock="${notify_sock}"
145145 fi
146+ case "$client_notify_sock" in
147+ tcp:*)
148+ client_notify_sock1="${client_notify_sock}:0"
149+ ;;
150+ *)
151+ client_notify_sock1="${client_notify_sock}"
152+ ;;
153+ esac
146154 NSTESTS=`echo ${RTPP_TEST_SOCKETS} | wc -w`
147155 RTPP_NC_TOUT=$((${NSTESTS} * 34))
148- RTPP_NC_PID=" `${RTPP_NOTYFY_CLIENT} -D -s ${client_notify_sock} -o session_timeouts.tlog \
149- -t ${RTPP_NC_TOUT} -l session_timeouts.tout`"
156+ set -- `${RTPP_NOTYFY_CLIENT} -D -s "${client_notify_sock1}" -o session_timeouts.tlog \
157+ -t ${RTPP_NC_TOUT} -l session_timeouts.tout`
150158 RTPP_NC_RC=${?}
159+ RTPP_NC_PID="${1}"
160+ RTPP_NC_PORT="${2}"
151161 if [ -z "${RTPP_NC_PID}" ]
152162 then
153163 RTPP_NC_RC=1
154164 fi
165+ case "$client_notify_sock" in
166+ tcp:*)
167+ if [ -z "${RTPP_NC_PORT}" ]
168+ then
169+ RTPP_NC_RC=1
170+ else
171+ client_notify_sock="${client_notify_sock}:${RTPP_NC_PORT}"
172+ notify_sock="${notify_sock}:${RTPP_NC_PORT}"
173+ fi
174+ ;;
175+ *)
176+ ;;
177+ esac
155178 report_rc ${RTPP_NC_RC} "Starting rtpp_notify_client.py on ${client_notify_sock}"
156179
157180 setup_tstart
@@ -160,16 +183,16 @@ run_test()
160183 do
161184 if [ "${socket}" = "stdio:" ]
162185 then
163- run_rtpp_on_stdout "" ${j}.1 ${RTPP1_ARGS}
186+ run_rtpp_on_stdout "" ${j}.1 -n "${notify_sock}" ${RTPP1_ARGS}
164187 report "rtpproxy #${j}.1 start on ${socket}"
165188 RTPP1_PID=${RTPP_PID}
166- run_rtpp_on_stdout "" ${j}.2 ${RTPP2_ARGS}
189+ run_rtpp_on_stdout "" ${j}.2 -n "${notify_sock}" ${RTPP2_ARGS}
167190 report "rtpproxy #${j}.2 start on ${socket}"
168191 RTPP2_PID=${RTPP_PID}
169- run_rtpp_on_stdout "6" ${j}.3 ${RTPP3_ARGS}
192+ run_rtpp_on_stdout "6" ${j}.3 -n "${notify_sock}" ${RTPP3_ARGS}
170193 report "rtpproxy #${j}.3 start on ${socket}"
171194 RTPP3_PID=${RTPP_PID}
172- run_rtpp_on_stdout "6" ${j}.4 ${RTPP4_ARGS}
195+ run_rtpp_on_stdout "6" ${j}.4 -n "${notify_sock}" ${RTPP4_ARGS}
173196 report "rtpproxy #${j}.4 start on ${socket}"
174197 RTPP4_PID=${RTPP_PID}
175198 wait ${RTPP1_PID}
@@ -192,12 +215,12 @@ run_test()
192215 socket_idx=0
193216 advance_sockidx
194217 RTPP1_LOG=${RTPP_LOGFILE}
195- RTPP_SOCKFILE="${_socket}" rtpproxy_start ${RTPP1_ARGS}
218+ RTPP_SOCKFILE="${_socket}" rtpproxy_start -n "${notify_sock}" ${RTPP1_ARGS}
196219 report "rtpproxy #${j}.1 start on ${_socket}"
197220 RTPP1_PID="${TMP_PIDFILE}"
198221 advance_sockidx
199222 RTPP2_LOG=${RTPP_LOGFILE}
200- RTPP_SOCKFILE="${_socket}" rtpproxy_start ${RTPP2_ARGS}
223+ RTPP_SOCKFILE="${_socket}" rtpproxy_start -n "${notify_sock}" ${RTPP2_ARGS}
201224 RTPP2_START_RC=${?}
202225 if [ ${RTPP2_START_RC} -ne 0 ]
203226 then
@@ -207,7 +230,7 @@ run_test()
207230 RTPP2_PID="${TMP_PIDFILE}"
208231 advance_sockidx
209232 RTPP3_LOG=${RTPP_LOGFILE}
210- RTPP_SOCKFILE="${_socket}" rtpproxy_start ${RTPP3_ARGS}
233+ RTPP_SOCKFILE="${_socket}" rtpproxy_start -n "${notify_sock}" ${RTPP3_ARGS}
211234 RTPP3_START_RC=${?}
212235 if [ ${RTPP3_START_RC} -ne 0 ]
213236 then
@@ -218,7 +241,7 @@ run_test()
218241 RTPP3_PID="${TMP_PIDFILE}"
219242 advance_sockidx
220243 RTPP4_LOG=${RTPP_LOGFILE}
221- RTPP_SOCKFILE="${_socket}" rtpproxy_start ${RTPP4_ARGS}
244+ RTPP_SOCKFILE="${_socket}" rtpproxy_start -n "${notify_sock}" ${RTPP4_ARGS}
222245 RTPP4_START_RC=${?}
223246 if [ ${RTPP4_START_RC} -ne 0 ]
224247 then
0 commit comments