Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jul 17, 2024
1 parent c06bdd6 commit f0e14df
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/ice_lite/rtpp_ice_lite.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ rtpp_ice_lite_worker(const struct rtpp_wthrdata *wp)
ila_c->sock->strmp_in = wip->strmp_in;
ila_c->sock->rh(&raddr, mb, ila_c->sock->rh_arg);
bool completed = iscompleted(ila_c->icem);
pthread_mutex_unlock(&ila_c->state_lock);
if (!ila_iscompleted(ila_c) && completed) {
RTPP_LOG(ila_c->sock->strmp_in->log, RTPP_LOG_INFO, "ICE completed");
CALL_SMETHOD(ila_c->sock->strmp_in, latch_setmode, RTPLM_FORCE_ON);
CALL_SMETHOD(ila_c->sock->strmp_in, latch, pkt);
atomic_store_explicit(&ila_c->completed, true, memory_order_relaxed);
}
pthread_mutex_unlock(&ila_c->state_lock);
RTPP_OBJ_DECREF(pkt);
RTPP_OBJ_DECREF(wip->strmp_in);
RTPP_OBJ_DECREF(ila_c);
Expand Down
2 changes: 1 addition & 1 deletion tests/startstop/nodebug
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ TS_LOGFILE="startstop.nodebug.rlog"
. "${BASEDIR}/startstop/startstop.sub"

test_startstop "startstop.nodebug.rout" "${RTPPROXY_PROD}" "libucl/libucl_test.nodebug.conf" \
"../modules/catch_dtmf/.libs/rtpp_catch_dtmf.so" "startstop.nodebug.output"
"catch_dtmf dtls_gw ice_lite" "startstop.nodebug.output"
10 changes: 8 additions & 2 deletions tests/startstop/startstop.sub
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,22 @@ test_startstop() {
RTPP_OUTFILE="${1}"
RTPPROXY="${2}"
RTPP_CONF="${3}"
RTPP_DSO="${4}"
RTPP_DSOS="${4}"
REF_OUTFILE="${5}"

truncate -s 0 "${TS_LOGFILE}"

myuid="`id -un`"
mygid="`id -gn`"

for dso in ${RTPP_DSOS}
do
dso_d="`echo ${dso} | sed 's|_debug||'`"
RTPP_DSO="--dso ../modules/${dso_d}/.libs/rtpp_${dso}.so ${RTPP_DSO}"
done

for rargs in "--config ${RTPP_CONF} -c fifo -L 100" \
"-c rr -u ${myuid}:${mygid} --dso ${RTPP_DSO}" ""
"-c rr -u ${myuid}:${mygid} ${RTPP_DSO}" ""
do
for sig in TERM HUP
do
Expand Down
2 changes: 1 addition & 1 deletion tests/startstop/startstop1
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ TS_LOGFILE="startstop.rlog"
. "${BASEDIR}/startstop/startstop.sub"

test_startstop "startstop.rout" "${RTPPROXY_DBG}" "libucl/libucl_test.conf" \
"../modules/catch_dtmf/.libs/rtpp_catch_dtmf_debug.so" "startstop.output"
"catch_dtmf_debug dtls_gw_debug ice_lite_debug" "startstop.output"

0 comments on commit f0e14df

Please sign in to comment.